Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Read-only?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gdc34
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: London, UK

PostPosted: Sat Sep 06, 2003 11:36 pm    Post subject: Read-only? Reply with quote

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
View user's profile Send private message
pzilla
n00b
n00b


Joined: 02 Sep 2003
Posts: 41
Location: Brasília - DF, Brazil

PostPosted: Sun Sep 07, 2003 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message
gdc34
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: London, UK

PostPosted: Sun Sep 07, 2003 12:38 pm    Post subject: Reply with quote

Great, cheers for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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