Files locked on FAT card in Slackware


joachim

Member
Joined
May 22, 2013
Messages
404
Somehow I changed the permission of the complete SD card in Slackware (this is a FAT card) and all files / dirs show a lock sign. Some apps cant save their data (TVBrowser I guess).

What can I do ? Thanks for help.
 

Elw3

ƐʍlƎ
Joined
Aug 10, 2010
Messages
1,409
Huh? Does fat even support permission managing? 

Anyway have you checked the write protect lever first? 
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,531
No symbolic links too.

Btw, this thread would have suited better in the Other OS section.
 

joachim

Member
Joined
May 22, 2013
Messages
404
Ok , problem solved after reboot all back to normal. The FAT card is my 2nd card with all pnds not Slackware (ext2) and when I tried to delete a file I got the Info " not allowed , file system is read-only". So all is ok now, but how could this come ?
 

WizardStan

Mega GP Mania
Joined
May 24, 2008
Messages
16,733
Run a chkdsk or fdisk.  That occurs when Linux encounters an error (any error) on a FAT file system.  Rather than risk screwing up the disk further it just makes it read-only.  It's almost certainly a single file or directory that's causing the problem, like one PND has gotten corrupted or something.
 

dimag0g

Very Active Member
Joined
Jan 12, 2011
Messages
608
Location
Strasbourg, France
Yeah, the only way to make FAT32 files read-only is to mount the filesystem as such. Next time it happens, you should check dmesg|grep mount for clues. An FS issue could cause this, but it normally wouldn't go away by rebooting. I bet the wrong mount script got executed or someting. 
 

WizardStan

Mega GP Mania
Joined
May 24, 2008
Messages
16,733
It only remounts as read-only when it encounters the corrupted file.  Rebooting will reset the flag and everything will appear normal until next time it encounters a corrupted file.
 

TrashyMG

Sarcasm Dispenser
Staff member
Joined
Jan 18, 2010
Messages
10,786
Dumb question is the the SD card's lock switch enabled? that would make it read only.
 

WizardStan

Mega GP Mania
Joined
May 24, 2008
Messages
16,733
The Pandora doesn't respect the lock switch, unless that's a new feature that Notaz slipped in recently.
 

TrashyMG

Sarcasm Dispenser
Staff member
Joined
Jan 18, 2010
Messages
10,786
The Pandora doesn't respect the lock switch, unless that's a new feature that Notaz slipped in recently.
Hmm, you're right.. I always assumed the lock switch was being utilized..
 
Last edited by a moderator:
Top