How to Mount NTFS on Linux

0
159

I have been absent for several days because of my daily busyness. Now in this article I will share my experience on how to mount the ntfs file system in linux or how to mount external harddisk / flash on linux. This case is usually often encountered by newbie who first use linux like me. It is also quite complicated tablets for the newbie when the early use of linux.

Mount NTFS on Linux
Mount NTFS on Linux

Before you mount it, make sure you know the identity of your storage device. Do the following command:

fdisk -l

The output will look like this:

root@vps:/home/apocalypsix# fdisk -l

WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb’! The util fdisk doesn’t support GPT. Use GNU Parted.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x90909090

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   976768064   488384001   a5  FreeBSD
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e8382

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   976771071   488134657    5  Extended
/dev/sda5          501760   976771071   488134656   8e  Linux LVM

Disk /dev/mapper/name1-root: 497.7 GB, 497662558208 bytes
255 heads, 63 sectors/track, 60504 cylinders, total 971997184 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/name1-root doesn’t contain a valid partition table

Disk /dev/mapper/name1-swap_1: 2134 MB, 2134900736 bytes
255 heads, 63 sectors/track, 259 cylinders, total 4169728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/name1-swap_1 doesn’t contain a valid partition table

Disk /dev/mapper/cryptswap1: 2134 MB, 2134900736 bytes
255 heads, 63 sectors/track, 259 cylinders, total 4169728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5c311fea

Disk /dev/mapper/cryptswap1 doesn’t contain a valid partition table
root@vps:/home/apocalypsix#

Look at the section I’m giving a green color. That is the second hard drive on my server. While the blue color, it is the primary hard drive where the system.

Actually not so difficult to mount ntfs on linux or mount external harddisk / flash on linux. First we prepare and create a folder in / media / or can / mnt /. For example, the mount will be stored in the / mnt / hdd2 folder, then create a folder in / mnt /

mkdir / mnt / hdd 2

Next, to mount / dev / sdb1 to / mnt / hdd2, perform this command:

mount / dev / sdb1 / mnt / hdd2

And finished. we have successfully mounted NTFS on linux or mounting external harddisk in linux / flashdisk.

But sometimes there are some linux distro that can not read the file system ntfs with large size. I never experienced a failure when I want to mount an external hard drive in linux / flash that size 2TB. I do not know for sure what the problem is, but finally I managed to overcome the case by installing a linux tool. ie ntfs-3g. How to install ntfs-3g is not difficult, just do this command on your linux.

sudo apt-get install ntfs-3g

After installing ntfs-3g do mount command above, and you will not have any problem with this. Whatever size, you will be able to mount an external hard drive in linux / flashdisk. How to view the list of partitions on linux, including the partition with the mounted NTFS file system you can see it with this command:

df -h

On my server, the output looks like this:

imtmanager@name1:~$ df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/name1-root  463G   14G  427G   4% /
udev                      993M  4.0K  993M   1% /dev
tmpfs                     401M  308K  401M   1% /run
none                      5.0M     0  5.0M   0% /run/lock
none                     1002M  4.0K 1002M   1% /run/shm
/dev/sda1                 228M   27M  190M  13% /boot
/dev/sdb1                 459G  482M  435G   1% /mnt/hdd2

Okay, I think it’s enough for an article on mounting NTFS on linux, mounting external harddisk on linux, mounting flashdisk on linux. As always, if you are having trouble do not hesitate to ask me by writing it in the comments, I’ll be happy to help solve your difficulties.

NO COMMENTS

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.