View previous topic :: View next topic |
Author |
Message |
RlC Guru
Joined: 30 Jul 2005 Posts: 358 Location: austria
|
Posted: Sun Feb 26, 2006 12:28 pm Post subject: vfat: fs corruption or permission problem? |
|
|
hi
i have a problem with my vfat partition:
Code: |
ric@ric /mnt/hdb5 $ ls -ld .
drwxr-x--- 15 ric users 32768 Feb 26 13:
ric@ric /mnt/hdb5 $ ls -ld games/
drwxr-x--- 3 ric users 32768 Feb 26 13:08 games/
ric@ric /mnt/hdb5 $ ls -ld bilder/
dr-xr-x--- 20 ric users 32768 Dec 25 16:52 bilder/ #you see here i don´t have the write flag
|
so i am not able to create/delete/move files in the "bilder" directory, but in all other folders i can. (as root i can also in "bilder")
Code: | ric@ric /mnt/hdb5 $ grep hdb5 /etc/fstab
/dev/hdb5 /mnt/hdb5 vfat uid=ric,gid=users,umask=0027 0 0 |
however, i don´t think its a problem with fstab, i did a fsck.vfat:
Code: | ric dev # fsck.vfat hdb5
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
3:2b/4d, 4:45/53, 5:27/57, 6:63/49, 7:6f/4e, 8:49/34, 9:48/2e, 10:43/31
, 71:20/00, 72:20/00, 73:20/00, 74:20/00, 75:20/00, 76:20/00, 77:20/00
, 78:20/00, 79:20/00, 80:20/00, 81:20/00
1) Copy original to backup
2) Copy backup to original
3) No action
? 3
hdb5: 52638 files, 2704179/3502066 clusters |
what does this mean? is this related to my problem? what should i do? 1 or 2?
thanks, ric |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Sun Feb 26, 2006 12:59 pm Post subject: Re: vfat: fs corruption or permission problem? |
|
|
Don't know if that matters, but shouldn't this be 027?
Anyway, it's normal and happens to files that are marked as 'read only' from windows or directories with a particular icon associated with them (at least to me it happens so).
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
RlC Guru
Joined: 30 Jul 2005 Posts: 358 Location: austria
|
Posted: Sun Feb 26, 2006 1:07 pm Post subject: |
|
|
gentoo wiki sais the "0" before marks it as octal http://gentoo-wiki.com/HOWTO_Mount_Windows_partitions_%28DOS%2C_FAT%2CNTFS%29#umask:_octal_file_permissions
however, i was able to write at least some weeks ago, and i don´t even have a windoze installed
edit:
this also might be interesting:
the files *in* this folder have the right permissions:
Code: | ric@ric ~/hdb5/bilder $ ls -l schwammal.jpg
-rwxr-x--- 1 ric users 26931 Aug 8 2002 schwammal.jpg |
nevertheless they can´t be moved etc. |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Sun Feb 26, 2006 1:56 pm Post subject: |
|
|
RlC wrote: | gentoo wiki sais the "0" before marks it as octal |
Wow, that's the first time I ever heard of that ; in my system I never needed it, I have 'dmask=027,fmask=137' and it works just fine.
RlC wrote: | however, i was able to write at least some weeks ago, and i don´t even have a windoze installed |
Then it could really be some fs problem; don't you have any log about it?
What if you create another directory, copy all the files in it and then remove bilder?
RlC wrote: | nevertheless they can´t be moved etc. |
To move or remove a file you need to have the write flag on the directory, since the inode needs to be removed from the directory.
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
RlC Guru
Joined: 30 Jul 2005 Posts: 358 Location: austria
|
Posted: Sun Feb 26, 2006 2:45 pm Post subject: |
|
|
Ferdinando wrote: | What if you create another directory, copy all the files in it and then remove bilder? |
yes, this works. thank you!
but the error with fsck.vfat still remains. i have no idea what it means, that "There are differences between boot sector and its backup."
btw: what is dmask and fmask? could not found an explanation for this in the wiki |
|
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
|
|