Click to See Complete Forum and Search --> : even the user root doesn't has access to /mnt/windows/ ?


Ludootje
12-28-2001, 02:31 PM
no user nor the root has access to /mnt/windows/, how can i fix this?

slapNUT
12-28-2001, 03:13 PM
/dev/hda1 /mnt/windows vfat default 0 0
Does your /etc/fstab look something like that.

Ludootje
12-28-2001, 03:15 PM
instead of default it has user

bdl
12-28-2001, 04:02 PM
I find it strange that even root doesnt have access to the drive, but I would definitely change the fstab entry to something like this:

/dev/hda1 /mnt/windows vfat rw,user,uid=1000,gid=1000.umask=027 0 0

Substitute your UID/GID for the ones given, this way you'll have absolute control over the mountpoint from the beginning. Please keep in mind that 'chmod' and 'chown' doesnt work on vfat filesystems so if you want real access to the drive, make sure you mount it appropriately in the first place.

Ludootje
12-28-2001, 04:06 PM
Originally posted by bdl:
<STRONG>I find it strange that even root doesnt have access to the drive, but I would definitely change the fstab entry to something like this:

/dev/hda1 /mnt/windows vfat rw,user,uid=1000,gid=1000.umask=027 0 0

Substitute your UID/GID for the ones given, this way you'll have absolute control over the mountpoint from the beginning. Please keep in mind that 'chmod' and 'chown' doesnt work on vfat filesystems so if you want real access to the drive, make sure you mount it appropriately in the first place.</STRONG>
erm.. i tried all possible things for chmod and chown.. i spend +/-10minutes on that :( :(
what do you mean with substitute them? do i have to put something else on it?

Ludootje
12-28-2001, 04:10 PM
i replaced the line i had by the one you gave.. now, do i have to restart? or isn't there a cmd to unmount /mnt/ and then simply do mount /mnt/ ?

when i type (as root) "mount /mnt/windows/" it says:
mount: block device /dev/hda1 is write-protected, mounting read-only
mount: cannot mount block device /dev/hda1 read-only

[ 28 December 2001: Message edited by: Ludootje ]

slapNUT
12-28-2001, 04:56 PM
Yes umount /dev/hda1 should un-mount the partition.

It's interesting that you said the only option in your /etc/fstab was user and root still could not mount...?? What do you get if you type:
ls -l /dev/hda1

Can you still boot into windows?

bdl
12-28-2001, 05:08 PM
Originally posted by Ludootje:
<STRONG>
erm.. i tried all possible things for chmod and chown.. i spend +/-10minutes on that :( :(
what do you mean with substitute them? do i have to put something else on it?</STRONG>

Well, you can see first hand that chmod nad chown dont work with vfat filesystems; what I mean by substitute them is change the UID/GID I've given(1000/1000) to your own UID/GID. You can find these out easily enough by just listing the contents of your home dir.

prompt:/home/ludootje $ ls -aln

Ludootje
12-28-2001, 06:05 PM
Originally posted by slapNUT:
<STRONG>Yes umount /dev/hda1 should un-mount the partition.

It's interesting that you said the only option in your /etc/fstab was user and root still could not mount...?? What do you get if you type:
ls -l /dev/hda1

Can you still boot into windows?</STRONG>
erm.. i'm not going to type that cmd if you ask if after that i still can boot windows ;)

anyways, it's still not working..

Linuxcool
12-29-2001, 04:19 AM
Try the line again, but with a comma instead of a period between 1000 and umask.

/dev/hda1 /mnt/windows vfat rw,user,uid=1000,gid=1000,umask=027 0 0

slapNUT
12-29-2001, 08:17 PM
erm.. i'm not going to type that cmd if you ask if after that i still can boot windows

I didn't mean it to sound that way.
I'm asking if you can boot into windows? And the cmd:
ls -l /dev/hda1
will show a long listing of the dev with permissions and ownerships and such. It will do nothing bad to your windows partition.

bdl
12-29-2001, 09:32 PM
Originally posted by Linuxcool:
<STRONG>Try the line again, but with a comma instead of a period between 1000 and umask.

/dev/hda1 /mnt/windows vfat rw,user,uid=1000,gid=1000,umask=027 0 0</STRONG>

Whoops, typo, didnt catch that... ;)