Ok ntfs-config was a very bad suggestion. As it turns out that only works untill you actually turn off your computer. It seems that after every cold boot the sd* values change so that doesn't work.
The fastest way to do this if you have loads of sata/scsi ntfs drives is to:
1. Install and run ntfs-config (without any of the target drives mounted). You can do this from the add/remove or
Code:
sudo apt-get install ntfs-config
2. Make an fstab backup
Code:
sudo cp /etc/fstab /etc/fstab.bak
and uninstall ntfs-config.
Unmount the drives (you might need root privileges to do that, if so it can be done by running nautilus as root as described in the next step or from terminal if you know how to).
3. I was quite happy with the folders as they were created by ntfs-config (they are created as root) so i kept them as they were. If you want to change/rename them you can do that as root in nautilus
or from the terminal using
Code:
sudo rmdir /media/mountfolder
and create new ones
Code:
sudo mkdir /media/mountfolder
I'm sure you can rename folders from terminal, but I don't know how.
4. Open a terminal and enter This will list your drives with all the info you'll need.
5. Open another terminal window and edit the fstab ntfs-config created by ntfs-config
Code:
gksu gedit /etc/fstab
Once opened replace all the sd* values in the fstab file with the uid values from blkid (for newer users: just select it with the mouse, rightclick and choose copy and paste it over the sd values) and remove the "" from the uuid. Don't touch the settings for linux filesystems or optical drives.
6. Save fstab and everything should be ok.
In my instance these were the fstab entries created by ntfs-config
Code:
/dev/sde3 /media/Moviez ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sdd2 /media/Epz ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sdc1 /media/Download ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sdb1 /media/Stuff ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sda2 /media/DVDS ntfs-3g defaults,locale=en_US.UTF-8 0 0
And this what I made of it:
Code:
UUID=6E286A1C2869E415 /media/Moviez ntfs-3g defaults,locale=en_US.UTF-8 0 0
UUID=02E09007E08FFF5B /media/Epz ntfs-3g defaults,locale=en_US.UTF-8 0 0
UUID=3C406343406302CE /media/Download ntfs-3g defaults,locale=en_US.UTF-8 0 0
UUID=A078885D78883456 /media/Stuff ntfs-3g defaults,locale=en_US.UTF-8 0 0
UUID=10F0F34141BBBDF9 /media/DVDS ntfs-3g defaults,locale=en_US.UTF-8 0 0
This is the output from blkid i get now (notice how the sd* has changed from cold booting) :
Code:
/dev/sda1: UUID="6C383ED8383EA0CE" LABEL="GAMES" TYPE="ntfs"
/dev/sda2: UUID="02E09007E08FFF5B" LABEL="Epz" TYPE="ntfs"
/dev/sdc1: UUID="2dfb4ef1-dcde-490a-9e21-40ee47a0c5e2" TYPE="ext3"
/dev/sdd1: UUID="A078885D78883456" LABEL="Stuff" TYPE="ntfs"
/dev/sda3: TYPE="swap" UUID="6dd3d793-8049-4335-8bbe-14992a4681c7"
/dev/sdb2: UUID="689074C590749AF0" LABEL="******* XP x64" TYPE="ntfs"
/dev/sdb3: UUID="6E286A1C2869E415" LABEL="Moviez" TYPE="ntfs"
/dev/sdb5: UUID="e2e49a1a-77d7-4691-a5d8-11be2eae6ecb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: UUID="10F0F34141BBBDF9" LABEL="DVDS" TYPE="ntfs"
/dev/sde1: UUID="3C406343406302CE" LABEL="Download" TYPE="ntfs"
This way my samba shares and all other permissions stayed intact.
I have no idea which events could change the uuid from a disk, but i'm sure I'll find out in time
If I opened a securityhole like this please delete this post.
If creative and ati would be so kind to either make decent binary drivers or provide the necessary information to the linux community I'd no longer have use for ntfs drives
This is meant to be a guide for noobs by a noob (obviously). This way I actually had some notion of what I was doing and could always go back a step.
Bookmarks