mount windoze partition for user automatically
I've got a 40GB drive and the first 20GB contains Windoze XP. I can
mount this manually fine. I can mount it automatically too. But if I
try to access it as non-root I get:
$ cd /windoze
bash: cd: /windoze: Permission denied
Permissions on my /windoze directory are:
dr-x------ 1 root root 8192 2007-07-29 17:49 windoze
If I umount /windoze and change the permissions they seem to revert back
to the above after I reboot. Accessing it as root works fine, but I
would like to access it as a regular user. Aside: I read in some tux
documentation that for Windows 2000 and Windows XP you can change the
type to vfat and get read/write access to the partition. This would be
great but I am sceptical that it is dangerous to mount rw under ntfs
type but okay under vfat.
My fstab file is:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 /windoze ntfs user,auto,noexec,ro 0 0
/dev/sda2 / ext3 defaults,errors=remount-ro 0
1
/dev/sda8 /home ext3 defaults 0 2
/dev/sda7 /tmp ext3 defaults 0 2
/dev/sda5 /usr ext3 defaults 0 2
/dev/sda6 /var ext3 defaults 0 2
/dev/sda3 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
$ fdisk -l
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 7 HPFS/NTFS
/dev/sda2 2433 2493 489982+ 83 Linux
/dev/sda3 4621 4863 1951897+ 82 Linux swap /
Solaris
/dev/sda4 2494 4620 17085127+ 5 Extended
/dev/sda5 2494 3101 4883728+ 83 Linux
/dev/sda6 3102 3466 2931831 83 Linux
/dev/sda7 3467 3527 489951 83 Linux
/dev/sda8 3528 4620 8779491 83 Linux
Partition table entries are not in disk order
$
Any help is appreciated.
Phill
Reply to: