The way that I usually do it is as follows:
First I like to use the UUID of all drives in fstab in order to prevent any issues down the road with partitioning. To get that, you can run:
So, for one of my NTFS drives, I get this:
Code:
/dev/sde1: LABEL="Windows Drive" UUID="9E68AD6368AD3B43" TYPE="ntfs"
Now, I add an entry to fstab (I usually like to backup the current fstab to something like fstab.bak in case I really hose something):
Code:
# Windows Drive Mount
UUID=9E68AD6368AD3B43 /media/Windows\040Drive ntfs defaults 0 0
In this entry, there are a couple things to note:
- I'm using the UUID as the drive identifier rather than something like /dev/sde.
- Since there's a space in the drive label, I need to add the '\040' octal code to the entry. Adding a space or anything like that will cause an error, and you need to use the octal escape code for a space in the name.
- For me all the default parameters are good enough, and I don't need to worry about setting permission masks or anything like that.
Now that I have my fstab entry, I head over to /media, and create a directory for the drive to mount to:
Code:
sudo mkdir /media/Windows\ Drive && sudo chown $USER:$USER /media/Windows\ Drive
That code will create the new directory in /media that we referenced in the fstab entry, and change the ownership to your user name. By default, the directory will have root privileges and unless you chown it, you won't have rw access.
That's about it. Now when you reboot, your NTFS drive will mount to the mountpoint you specified in fstab and you should be able to access it all the time. Hope that helps. Post back if you still have questions.
Bookmarks