Results 1 to 3 of 3
Hi, guys.
few days ago I mentioned that I can't write to my SD-card because of this error:
"Read-only file system"
tried to remount, but -no way.
Code:
$ sudo ...
- 10-15-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 3
[SOLVED] "Read-only file system" and "expunged" folder.
Hi, guys.
few days ago I mentioned that I can't write to my SD-card because of this error:
"Read-only file system"
tried to remount, but -no way.
Code:$ sudo umount -v /sd /dev/sdc1 umounted $ sudo mount -v /sd /dev/sdc1 on /sd type vfat (rw,noexec,nosuid,nodev,noatime,nodiratime,uid=1000,gid=1000,iocharset=utf8) $
/var/log/messages when i unmounted and plugged off then plugged in again my SD-card:Code:$ cat /etc/fstab|grep "/sd" /dev/sdc1 /sd vfat auto,rw,users,noatime,nodiratime,uid=drey,gid=drey,iocharset=utf8 0 0
and still can't write.Code:tail -f /var/log/messages # unmount # plug off Oct 14 08:51:04 testhost kernel: [48896.640266] usb 5-5: USB disconnect, address 2 # plug in again Oct 14 08:51:11 testhost kernel: [48903.600100] usb 5-5: new high speed USB device using ehci_hcd and address 6 Oct 14 08:51:11 testhost kernel: [48903.734778] usb 5-5: configuration #1 chosen from 1 choice Oct 14 08:51:11 testhost kernel: [48903.735488] scsi4 : SCSI emulation for USB Mass Storage devices # auto mount worked Oct 14 08:51:16 testhost kernel: [48908.733051] scsi 4:0:0:0: Direct-Access Single Flash Reader 1.00 PQ: 0 ANSI: 0 Oct 14 08:51:17 testhost kernel: [48909.198632] sd 4:0:0:0: [sdc] 32235520 512-byte hardware sectors: (16.5 GB/15.3 GiB) Oct 14 08:51:17 testhost kernel: [48909.199525] sd 4:0:0:0: [sdc] Write Protect is off Oct 14 08:51:17 testhost kernel: [48909.203225] sd 4:0:0:0: [sdc] 32235520 512-byte hardware sectors: (16.5 GB/15.3 GiB) Oct 14 08:51:17 testhost kernel: [48909.203977] sd 4:0:0:0: [sdc] Write Protect is off Oct 14 08:51:17 testhost kernel: [48909.204050] sdc: sdc1 Oct 14 08:51:17 testhost kernel: [48909.207460] sd 4:0:0:0: [sdc] Attached SCSI removable disk Oct 14 08:51:17 testhost kernel: [48909.207606] sd 4:0:0:0: Attached scsi generic sg2 type 0
Mentioned also some strange folders like "expunged":
$ sudo chmod 777 /sdCode:ll /sd ls: cannot access /sd/expunged: Input/output error total 68K drwxr-xr-x 10 drey drey 8.0K 1970-01-01 08:00 ./ drwxr-xr-x 22 root root 4.0K 2010-07-27 16:32 ../ drwxr-xr-x 2 drey drey 8.0K 2009-06-19 12:53 .disk/ drwxr-xr-x 2 drey drey 8.0K 2010-09-29 10:02 downloads/ d????????? ? ? ? ? ? expunged/ drwxr-xr-x 7 drey drey 8.0K 2010-09-16 05:57 music/ drwxr-xr-x 10 drey drey 8.0K 2010-08-26 19:11 photos/ drwxr-xr-x 2 drey drey 8.0K 2010-09-13 13:47 torrents/ drwxr-xr-x 5 drey drey 8.0K 2010-09-29 10:05 .Trash-1000/ drwxr-xr-x 3 drey drey 8.0K 2010-10-07 09:53 video/
btw, sudo fisdk -l |grep -A99 "sdd"Code:chown: changing ownership of '/sd': Read-only file system
and mount|grep sddCode:Disk /dev/sdd: 16.5 GB, 16504586240 bytes 255 heads, 63 sectors/track, 2006 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0d410d40 Device Boot Start End Blocks Id System /dev/sdd1 * 1 2007 16113664 c W95 FAT32 (LBA)
Even windows can't mount this SD-card properly (it doesn't even see it in administration->computer->hard disk drives, when plugged in).Code:/dev/sdd1 on /sd type vfat (rw,noexec,nosuid,nodev,noatime,nodiratime,uid=1000,gid=1000,iocharset=utf8)
How I can mount this disk RW to erase "expunged" (I think it will do the trick)?
- 10-15-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
Standard full size SD flash cards have a write-protect sliding lock. Check to see if it is engaged or not. I have had issues in the past with the lock getting engaged when inserting the card into a reader.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-18-2010 #3Just Joined!
- Join Date
- Oct 2010
- Posts
- 3
Thanks!
After I switched this lock and tried to mount I've immediately got read-only FS (after mount). dismounted, switched lock back and mounted RW finally. After it I had to format this drive to remove "expunged". After formatting I have no problems.


