Manual mounting of NTFS partition may add an extra layer of security but for most this can be more of an annoyance than a necessity .Generally dual booters of Ubuntu and windows maintain most of their files in NTFS partitions which are accessible from both operating systems . In such a scenario auto-mounting these drives during boot time can make life so much more comfortable .
There are many ways through which this can be done and having tested quite a few i found this particular method to be the simplest and most reliable (less prone to errors).
Step 1: Install ntfs-3g . ntfs-3g comes installed by default in most recent versions of Ubuntu .
If you are using an older version install ntfs-3g
Step 2: Identify your NTFS drives
you should get an output similar to this
Note that sda1, sda2 and sda3 are the NTFS drives i am going to automount .
Step 3: Create the folder in which the disks are going to be mounted
Step 4: BackUp fstab
Step 5: Open up /etc/fstab as root:
step 6: Add the following lines at the bottom .Put a tab between each section rather than a space except between 0 0 at the end.
Step 6: Save and exit
Step 7: To mount them immediately
Step 8:Reboot computer the NTFS partitions should automount during start-up
Step 9: If you want to revert back to manual mounting just restore your old settings which were backed up
and reboot
There are many ways through which this can be done and having tested quite a few i found this particular method to be the simplest and most reliable (less prone to errors).
Step 1: Install ntfs-3g . ntfs-3g comes installed by default in most recent versions of Ubuntu .
If you are using an older version install ntfs-3g
Code:
sudo apt-get install ntfs-3g
Code:
sudo fdisk -l
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xxxxxxxxx
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 8654 38796975 7 HPFS/NTFS
/dev/sda3 10352 19457 73143945 7 HPFS/NTFS
/dev/sda4 8655 10351 13631152+ 5 Extended
/dev/sda5 8655 10274 13012618+ 83 Linux
/dev/sda6 10275 10351 618471 82 Linux swap / Solaris
Step 3: Create the folder in which the disks are going to be mounted
Code:
cd /media
mkdir volume-A volume-B volume-C
Code:
sudo cp /etc/fstab /etc/fstab.backup
Code:
gksu gedit /etc/fstab
Code:
/dev/sda1 /media/volume-A ntfs-3g defaults 0 0
/dev/sda2 /media/volume-B ntfs-3g defaults 0 0
/dev/sda3 /media/volume-C ntfs-3g defaults 0 0
Step 7: To mount them immediately
Code:
sudo mount -a
Step 9: If you want to revert back to manual mounting just restore your old settings which were backed up
Code:
mv /etc/fstab.backup /etc/fstab