mounting windows in the fstab permissions problem
mount /dev/sda2 /mnt/hd120
this command works just fine but I can only view that partition as root. AND i want it to auto mount in the fstab durring system boot AND be viewable by ALL users. it's an NTFS but i don't know what the code line should be in the fstab. |
I'm not exactly certain, but something like this, perhaps:
/dev/hda1 /mnt/windows ntfs ro,users 1 2 Change /dev/hda1 to the correct partition for your system. |
do little it change if you use fat and want user can write thing to the partition, use this:
/dev/hda1 /mnt/windows vfat rw,users 1 2 |
Quote:
I use the umask option. You can eighter make it Umask0222 Which would mean read,write,execute for you and read,write for anybody else. Which is probably not such a bad idea, or if you don't need to execute binaries from the ntfs disk, do umask=2222. Take a look at: http://www.opengroup.org/onlinepubs/...xcu/umask.html for more information So this is at least a working option: /dev/"your device" /mnt/hdf1 ntfs defaults,umask=0222 0 2 I have most my devices defined by their uuid, because I have exchange drives, and usb drives and an mp3 player, that might be mounted at the wrong place. If this is the case, you can mount them using the uuid, which is not complicated at all. with: $blkid you see the uuid of all connected devices, and you just exchange "/dev/whatever" with uuid=whatever --- after saving fstab, you can try the new setup doing: $sudo mount -a |
I have tried many many combinations of the options you are all giving me but it still will not automaitically mount. here is my fstab as is now:
/dev/hda2 swap swap defaults 0 0 /dev/hda1 / ext2 defaults 1 1 /dev/sda2 /mnt/hd120 ntfs rw,users 0 0 /dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 i just can not get that ntfs partition to mount. BLAST!!! |
Have you created the mount point (ie a directory) called hd120 under /mnt?
|
And make sure to add auto to that line.
|
This is my fstab, this works fine for me. BTW most of the drives are vfat apart from 2 ext3 where debian and kubuntu is installed. You might want to change the 'vfat' to 'ntfs' if you are using ntfs. Hope this was helpful.
Quote:
|
for your information linux not support ntfs well, use in your own risk. unless you use it as read only
|
True, I'd recommend NTFS only in 'ro' mode. I changed all my drives apart two to vfat for write access.
|
All times are GMT -5. The time now is 08:49 AM. |