Click to See Complete Forum and Search --> : small q; please help to let me copy a file to /mnt/windows/


Ludootje
01-01-2002, 12:06 PM
I want to copy /home/suse7.3liveeval.iso to /mnt/windows.
Though, /mnt/windows is read-only, EVEN for root. How do I fix this?

undef
01-01-2002, 12:17 PM
check your /etc/fstab file for an entry for your windows partition. if you see something like "ro" change it to "rw"
or if you're mounting the windows partition manually specify the mode that you want it to mount it in either read only or read write. do "man mount" for more info.

vee-eye
01-01-2002, 01:42 PM
mount -o rw -t vfat /dev/hda1 /mnt/windows

The -o is the option parameter, and the rw is a parameter to the option parameter that specifies read-write capability. ;)

Ludootje
01-01-2002, 02:24 PM
Originally posted by vee-eye:
<STRONG>mount -o rw -t vfat /dev/hda1 /mnt/windows

The -o is the option parameter, and the rw is a parameter to the option parameter that specifies read-write capability. ;)</STRONG>
THANKS!

Ludootje
01-01-2002, 02:29 PM
this isn't fun anymore :(
in fact, i already had the option "rw" in my /etc/fstab, but i supposed there was an error in it.. anyways now it says (when i mount it manually):
mount: block device /dev/hda1 is write-protected, moounting read-only
mount: cannot mount block device /dev/hda1 read-only

i suppose chmod my /dev/hda1 wont help as it's a vfat partition :(
anyone ideas?

slapNUT
01-01-2002, 03:50 PM
mount -t vfat -o remount,rw /dev/hda1 /mnt/windows

camelrider
01-01-2002, 04:21 PM
What kind of Windows fs is it? (fat32, NTFS?) Does Linux write to NTFS?

Ludootje
01-01-2002, 05:12 PM
Originally posted by slapNUT:
<STRONG>mount -t vfat -o remount,rw /dev/hda1 /mnt/windows</STRONG>
nope, cmd not working

bdl
01-01-2002, 06:31 PM
Can you please post the output of 'mount' (the command alone with no parameters passed to it), the output of 'lsmod' (again, the command with no parms) and your fstab?? Posting the same problem over and over is getting nowhere...

For CAMELRIDER - the current kernel does have the option for RO NTFS or RW NTFS, with the disclaimer that RW is experimental. I've used the RO module and it works fine, RW I haven't messed with.

Which makes me wonder if there isn't a problem with the kernel supporting FAT/FAT32 filesystems or maybe the partition table that the FAT32 partition is on is screwy...

thor4linux
01-01-2002, 06:33 PM
THis might be to simple, but have you looked at the file permisions for you windows directory?
If you are useing Drake, i beleive that windows is under /mnt. "cd /mnt" at the comand line and type "ll" ** enter it should show you the file permisions such as,

dr xr xr x ........ windows

If root, which is the first set of three posible rwx doesn't say rw , you can type
"chmod 666 windows" this will give read write permision to everyone. you will also need to do the same comand for every directory you want access to.

**Note: if ll does not show you you file permissions then type "ls -alh"
For more info on ls see "man ls"

bdl
01-01-2002, 06:48 PM
Originally posted by thor4linux:
<STRONG>If root, which is the first set of three posible rwx doesn't say rw , you can type
"chmod 666 windows" this will give read write permision to everyone. you will also need to do the same comand for every directory you want access to.

</STRONG>

No you can't. Vfat does not support chmod or chown. You must mount the vfat partitions with the exact UID/GID and UMASK in order to get the permissions the way you want.

Ludootje
01-02-2002, 08:41 AM
and even if i could, i don't think that if root can't write, not even read at the moment, it could chmod it :(
anyways i'm not my mandrake ATM, but i suppose i'll just let it like that.. i have hundreds of problems with my mandrake, so i can better just leave it like that and switch to another distro where i can tinker a little more without breaking it :D