LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   read only filesystem (https://www.linuxquestions.org/questions/linux-newbie-8/read-only-filesystem-215155/)

lardino 08-08-2004 09:04 PM

read only filesystem
 
Hello All
i have a vfta partition mounted on /mnt/mydir
When i try to dlete a file on this partition , i get a strange message from rm
unable to delete file ...read only filesystem ..
Yet , the permission on this file enable me to delete it .. i am the owner ...in fact in this directory ..i can't even rename a file
An idea ..? Thanks for help

Tinkster 08-08-2004 09:23 PM

If it was mounted with ro (look at your /etc/fstab) then you
won't be able to delete it, no matter who is the owner or
what the permissions say.


Cheers,
Tink

bruno buys 08-08-2004 09:23 PM

Is vfta a file system? Never heard of it...
Anyway, post here the output of
cat /etc/fstab
and we'll try to help.

Tinkster 08-08-2004 09:35 PM

i think he means vfat ...

lardino 08-08-2004 09:38 PM

Thanks for your help
MOre Details .
I have made a mistake in my previous message : it's a vfat filesystem
How can i see if the partition is mounted with ro ...? the file /etc/fstab hasn't changed ...
thanks ..

Tinkster 08-08-2004 09:50 PM

Just type mount<enter>

That should list the status of all mounted filesystems.


Cheers,
Tink

bruno buys 08-08-2004 09:53 PM

Yes, sure...
Just look for the line where it states your partition mounted on /mnt/mydir, as you say. You should find some parameters after the "mounted on" section. "ro" is read-only and no permission is going to change that. If you find "rw" the partition is read-write, and the problem is elsewhere.

lardino 08-08-2004 09:55 PM

When i use mount command , the partition /dev/hdb.. on /mnt/mydir is mounted in rw mode ..
Yet i can't for example delete an image file on /mnt/mydir ...
Rm tells me : unable to remove file ..read only filesystem

Tinkster 08-08-2004 10:04 PM

ls -lr /mnt/mydir
Did the files you're trying to delete come from a CD
by any chance?


Cheers,
Tink

lardino 08-08-2004 10:12 PM

ls -lr tells me that i have read , write , and execute permisions on all the file

Tinkster 08-08-2004 11:41 PM

And you're positive it's vfat and not ntfs?


Cheers,
Tink

lardino 08-09-2004 12:01 AM

Thanks
No vfat filesystem ...
MOunt command tells me that :/dev/hdb4 on /mnt/mydir ( vfat ) ..rw
strange ..isn't it ?

Tinkster 08-09-2004 12:11 AM

How about the permissions on /mnt/mydir
itself?


Cheers,
Tink

lardino 08-09-2004 12:16 AM

Thanks
Here's the output given by ls -lr for /mnt/mydir
drwxr-xr-x
Full permissions for this owner of the directory ...

lardino 08-09-2004 01:43 AM

Hello All
NO more Ideas for this problem ?
Perhaps the partition is corrupted ..? because of an unexpected power off ...?


All times are GMT -5. The time now is 03:09 AM.