View previous topic :: View next topic |
Author |
Message |
gdc34 n00b
Joined: 29 Mar 2003 Posts: 12 Location: London, UK
|
Posted: Sat Sep 06, 2003 11:36 pm Post subject: Read-only? |
|
|
I've got two fat32 partitions. Here is the relevant part of my fstab
Code: |
/dev/hda5 /mnt/fat1 vfat defaults,umask=000 0 0
/dev/hdb1 /mnt/fat2 vfat defaults,umask=000 0 0
|
The umask=000 should give everyone read and write access
However, if I say try to delete a file on /dev/hda5:
e.g. rm testfile
I get:
rm: cannot remove `testfile': Read-only file system
This happens whether I'm root or not.
However, I have no such problems with /dev/hdb1 which I have set up exactly the same.
I would be really grateful for any help offered. |
|
Back to top |
|
|
pzilla n00b
Joined: 02 Sep 2003 Posts: 41 Location: Brasília - DF, Brazil
|
Posted: Sun Sep 07, 2003 4:48 am Post subject: |
|
|
Looks like it's not a question of setting umask in /etc/fstab. If you can't write in a mounted disk even when you are root, it's probably mounted as read-only. Try the command mount alone in the shell prompt. I get this in my case:
Code: | # mount
/dev/hda2 on / type reiserfs (rw,noatime)
/dev/hda7 on /mnt/backup type ext3 (rw)
/dev/hda1 on /mnt/dos type vfat (rw,umask=111,gid=0)
|
There in the /dev/hda1 entry, after the device path and name, (rw,...) stands for read-write. Check if it's (ro,...) in your case. If it is, try this command:
Code: | # mount /mnt/fat1 -o remount,rw |
This will remount the device as read-write. If you can't remount the device as read-write, maybe you should try scanning it for errors. Check if the messages during boot give you any clue. _________________ To err is to be human, don't forget to include "errno.h" in your consciousness. |
|
Back to top |
|
|
gdc34 n00b
Joined: 29 Mar 2003 Posts: 12 Location: London, UK
|
Posted: Sun Sep 07, 2003 12:38 pm Post subject: |
|
|
Great, cheers for the help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|