There are a great number of Linux users who dual boot their computer with Windows. And in situation like this, one has to make different partitions to separate Windows and Linux partition. Windows usually (not always) uses NTFS file format while Linux is usually (again, not always) installed in Ext3 or Ext4 file format. While using Linux, one has to manually mount the drives. It doesn’t take time in mounting but in some situation you might prefer to have it automatically mounted at each start-up for e.g., if your Music files are on the NTFS partition and you want to use the same directory in Linux it is advisable to auto mount that drive. In this tutorial I will show you the easiest way to mount Windows NTFS partition at each start-up.
One way to automount NTFS drive is by editing fstab, but that might not be simple for beginner Linux users. An alternative way is to use a GUI tool named ntfs-config.
Open the terminal ( Ctrl+Alt+T ) and use the following command to install the tool:
sudo apt-get install ntfs-config
Alternatively, you can install it from Ubuntu Software Center.
Before using, we need to tweak the tool a bit as there is a known bug which stops the tool from working properly. It looks for a directory which needs to be created. In the terminal, use the following command to create the mentioned directory:
sudo mkdir -p /etc/hal/fdi/policy
Now we are ready to use the ntfs-config tool. Launch ntfs-config. Remember, it needs administrative rights to run the tool. When you start the tool, it lists all the partitions that are available on your computer. The interface looks like this:
As shown in the picture above, there are three NTFS drives present on my computer. Check the box adjacent to the drive you want to automount. In the place for <Enter a mount point> you can put the name which you want to use for that particular drive for e.g., windows1.
If you want all of your NTFS partition to be automounted, just click on “Auto Configure” and it will take care of the rest of the stuff.
By the way, in case you do not know which drive is numbered what (i.e. /dev/sdaX which is not similar to Windows naming convention of drives), you can use the following command in terminal to find it out.
sudo fdisk -l
which outputs (for my computer) like this:
Device Boot Start End Blocks Id System /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 215541759 107667456 7 HPFS/NTFS/exFAT /dev/sda3 215544166 625141759 204798797 f W95 Ext (LBA) /dev/sda5 215544168 420340724 102398278+ 7 HPFS/NTFS/exFAT /dev/sda6 420340788 504296414 41977813+ 7 HPFS/NTFS/exFAT /dev/sda7 535547904 545062911 4757504 82 Linux swap / Solaris /dev/sda8 545064960 625141759 40038400 83 Linux /dev/sda9 504297472 529539071 12620800 83 Linux /dev/sda10 529541120 535543807 3001344 82 Linux swap / Solaris
In the output, look for the column Blocks. This gives the size of the partition in bytes. In the example above, 102398278 bytes can roughly be estimated as 102 GB.
Once you select the mount point, it gives you option of enabling write support for the drives. Its up to you if you want this feature.
Save and close and you are done with a reboot. You will find your drive(s) automatically mounted at the start-up.
Your questions and suggestions are always welcomed. Do not forget to subscribe to the site for more helpful article to make your tech-life easier. Cheers :)
Image credit: Hard Disk Drive by Big Stock Photo