[Ubuntu] Automatically mount the NTFS partition when booting Ubuntu

Update: 09/06/2014: Claim with ext4 partition

When installing Ubuntu alongside Windows surely you for your partitions are NTFS for both Ubuntu and Windows threads are easily accessible. However, Ubuntu does not automatically mount the NTFS partition. So here's how to make them easy Ubuntu automatically mount:

Step 1: View the partition you run the command: sudo blkid

Then we will see the following information:
/dev / sda1: LABEL=”System Reserved” UUID=”B622D89522D85C45″ TYPE=”ntfs”
/dev / sda2: LABEL=”WINDOWS” UUID=”C452E2BE52E2B478″ TYPE=”ntfs”
/dev / sda4: UUID=”54a2b8c3-81bf-4b74-9cad-31301d638562″ TYPE=”ext4″
/dev / sda5: LABEL=”DATA” UUID=”C89641BB9641AB30″ TYPE=”ntfs”
/dev / hda6: LABEL=”SETUP” UUID=”467A50BD7A50AC05″ TYPE=”ntfs”
/dev / sda7: UUID=”14f8b96c-775d-4415-ae6f-90c8ce54deaf” TYPE=”swap”

You see that our NTFS partitions include: System Reserved, WINDOWS, DATA, SETUP and we will make Ubuntu mount them manually (System Reserved and are not needed because it does not contain the data that we need that only the boot windows).
Step 2: Run the following command to open and edit fstab file: sudo gedit /etc/fstab

With your file will add 3 the following:

UUID=C452E2BE52E2B478 /media/nguyenvanquan7826/WINDOWS ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=C89641BB9641AB30 /media/nguyenvanquan7826/DATA ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=467A50BD7A50AC05 /media/nguyenvanquan7826/SETUP ntfs-3g defaults,locale=en_US.utf8 0 0

In that (VD with partition DATA):

  • After the “UUID=” UUID code corresponding DATA partition, which can be obtained from the partition information in step 1.
  • In his case, the DATA partition UUID code is C89641BB9641AB30.
  • This was followed by the path to the folder you want to mount partitions. In his case there is “/media/nguyenvanquan7826/DATA “.
  • Similar to other cases just replace UUID and directory path corresponding partition is.
  • Save the fstab file! Then reboot!

If the partition you have to switch to ext4 (I transferred out to ext4) then do the following:

UUID=c4c2a070-a949-4cf2-add1-9e1ca5949a30 /media/nguyenvanquan7826/Data ext4 errors=remount-ro 0 1
UUID=b02522bc-7514-4769-888b-e528c0dbda54 /media/nguyenvanquan7826/Setup ext4 errors=remount-ro 0 1
UUID=70df6755-1f91-45a7-ad3b-05e2f044eb1f /media/nguyenvanquan7826/Linux ext4 errors=remount-ro 0 1

Source & refer in: ubuntu-vn.org,