Wednesday, February 19, 2014

Automatically mount NFTS partition

In order to automatically mount an NTFS partition on Ubuntu/Mint you just need to know where it is located on the file system: to do that, open "Disk utility" from the Menu, select the hard disk containing the desired partition, select the partition and look what is written near the label "Device", usually it's something like /dev/sdaN with a number instead of N.

Assume it is for example /dev/sda4, and that you want to mount it in a folder named "Files", then:

  • type  sudo gedit /etc/fstab  in a Terminal (CTRL+ALT+T) and insert your password
  • at the end of the file add two lines as follows:
    # My automatically mounted partition
    /dev/sda4 /media/Files ntfs defaults,uid=1000,gid=1000 0 1
  • save and close
The next time you'll reboot, it will be automatically mounted! =)

No comments:

Post a Comment