welshgeekboy
Posts: 24
Joined: Wed Feb 17, 2016 8:59 am
Location: Wales, Carmarthenshire

[SOLVED] Just another "SD card won't boot" post...

Sat Oct 29, 2016 7:05 pm

Hello, I have a problem with one of my Pi SD cards. I use it in a Pi A+ on my robot. My problem is that the SD card does not boot. On a Pi A+ when no SD card is plugged in, the green 'ACT' LED glows brightly when the power is plugged in. This is how the Pi responds when I power it on with the bad SD card plugged in. There is no respose at all. I have NOOBs on the card but even NOOBs doesn't load. The Pi works though- when I plug a different SD card into it, it loads the OS without any trouble. When I plug the bad SD card into my Pi Zero, it also does not boot, or respond in any way. The 'ACT' LED does not come on at all.

I have looked at the card on another Pi and there does not seem to be any obvious problem. I've used Gparted and fsck to try and solve the problem, but this hasn't worked. Here's what I get with fsck after plugging the card into the Pi A+ and trying to boot it. fsck occasionally fixes something (eg dirty bit set, not unmounted properly, fix? yes. on a partition) but generally returns with no problems on any partition.

Code: Select all

pi@raspberry:~ $ ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda5  /dev/sda6
pi@raspberry:~ $ sudo fsck -Va /dev/sda1
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda1] fsck.vfat -a /dev/sda1 
fsck.fat 3.0.27 (2014-11-12)
0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
Root contains directory ".". Dropping it.
Root contains directory "..". Dropping it.
/MMS_PDU/..
  Start (2) does not point to .. (0)
/MMS_INFO/..
  Start (2) does not point to .. (0)
/MMS_SYS/..
  Start (2) does not point to .. (0)
Reclaimed 9 unused clusters (147456 bytes) in 9 chains.
Performing changes.
/dev/sda1: 11 files, 12/62531 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda2
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/sda2] fsck.ext2 -a /dev/sda2 
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Could this be a zero-length partition?
pi@raspberry:~ $ sudo fsck -Va /dev/sda3
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda3] fsck.ext4 -a /dev/sda3 
SETTINGS: clean, 40/8192 files, 5579/32768 blocks
pi@raspberry:~ $ sudo fsck -Va /dev/sda5
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda5] fsck.vfat -a /dev/sda5 
fsck.fat 3.0.27 (2014-11-12)
/dev/sda5: 83 files, 39806/120958 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda6
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda6] fsck.ext4 -a /dev/sda6 
root: clean, 108186/416160 files, 853934/1662976 blocks
pi@raspberry:~ $


Next test, after trying to boot on the A+...


pi@raspberry:~ $ sudo fsck -Va /dev/sda1
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda1] fsck.vfat -a /dev/sda1 
fsck.fat 3.0.27 (2014-11-12)
/dev/sda1: 13 files, 12/62531 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda2
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/sda2] fsck.ext2 -a /dev/sda2 
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Could this be a zero-length partition?
pi@raspberry:~ $ sudo fsck -Va /dev/sda3
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda3] fsck.ext4 -a /dev/sda3 
SETTINGS: clean, 40/8192 files, 5579/32768 blocks
pi@raspberry:~ $ sudo fsck -Va /dev/sda5
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda5] fsck.vfat -a /dev/sda5 
fsck.fat 3.0.27 (2014-11-12)
/dev/sda5: 83 files, 39806/120958 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda6
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda6] fsck.ext4 -a /dev/sda6 
root: clean, 108186/416160 files, 853934/1662976 blocks
pi@raspberry:~ $


Next test, after trying to boot on the A+...


pi@raspberry:~ $ sudo fsck -Va /dev/sda1
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda1] fsck.vfat -a /dev/sda1 
fsck.fat 3.0.27 (2014-11-12)
/dev/sda1: 13 files, 12/62531 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda2
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/sda2] fsck.ext2 -a /dev/sda2 
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Could this be a zero-length partition?
pi@raspberry:~ $ sudo fsck -Va /dev/sda3
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda3] fsck.ext4 -a /dev/sda3 
SETTINGS: clean, 40/8192 files, 5579/32768 blocks
pi@raspberry:~ $ sudo fsck -Va /dev/sda5
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/sda5] fsck.vfat -a /dev/sda5 
fsck.fat 3.0.27 (2014-11-12)
/dev/sda5: 83 files, 39806/120958 clusters
pi@raspberry:~ $ sudo fsck -Va /dev/sda6
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/sda6] fsck.ext4 -a /dev/sda6 
root: clean, 108186/416160 files, 853934/1662976 blocks
pi@raspberry:~ $ 


And here's the last 40 lines form dmesg:


pi@raspberry:~ $ dmesg | tail -n40
[ 3642.151314] usb 1-1.5: USB disconnect, device number 15
[ 3817.510609] usb 1-1.5: new high-speed USB device number 16 using dwc_otg
[ 3817.611217] usb 1-1.5: New USB device found, idVendor=3207, idProduct=0300
[ 3817.611236] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3817.611249] usb 1-1.5: Product: 816820090226
[ 3817.611262] usb 1-1.5: Manufacturer: 816820090226
[ 3817.611274] usb 1-1.5: SerialNumber: 816820090226
[ 3817.612195] usb-storage 1-1.5:1.0: USB Mass Storage device detected
[ 3817.615673] scsi host7: usb-storage 1-1.5:1.0
[ 3818.611447] scsi 7:0:0:0: Direct-Access     FNK TECH USB CARD READER  1.00 PQ: 0 ANSI: 0 CCS
[ 3818.612906] sd 7:0:0:0: Attached scsi generic sg0 type 0
[ 3818.613105] sd 7:0:0:0: [sda] 15523840 512-byte logical blocks: (7.95 GB/7.40 GiB)
[ 3818.613335] sd 7:0:0:0: [sda] Write Protect is off
[ 3818.613353] sd 7:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 3818.613597] sd 7:0:0:0: [sda] No Caching mode page found
[ 3818.613614] sd 7:0:0:0: [sda] Assuming drive cache: write through
[ 3818.625076]  sda: sda1 sda2 < sda5 sda6 > sda3
[ 3818.628589] sd 7:0:0:0: [sda] Attached SCSI removable disk
[ 3819.141383] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 3819.303312] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[ 4045.917132] usb 1-1.5: USB disconnect, device number 16
[ 4158.803263] usb 1-1.5: new high-speed USB device number 17 using dwc_otg
[ 4158.903893] usb 1-1.5: New USB device found, idVendor=3207, idProduct=0300
[ 4158.903914] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4158.903927] usb 1-1.5: Product: 816820090226
[ 4158.903940] usb 1-1.5: Manufacturer: 816820090226
[ 4158.903952] usb 1-1.5: SerialNumber: 816820090226
[ 4158.904908] usb-storage 1-1.5:1.0: USB Mass Storage device detected
[ 4158.905225] scsi host8: usb-storage 1-1.5:1.0
[ 4159.904118] scsi 8:0:0:0: Direct-Access     FNK TECH USB CARD READER  1.00 PQ: 0 ANSI: 0 CCS
[ 4159.905436] sd 8:0:0:0: Attached scsi generic sg0 type 0
[ 4159.906542] sd 8:0:0:0: [sda] 15523840 512-byte logical blocks: (7.95 GB/7.40 GiB)
[ 4159.906785] sd 8:0:0:0: [sda] Write Protect is off
[ 4159.906803] sd 8:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 4159.907010] sd 8:0:0:0: [sda] No Caching mode page found
[ 4159.907026] sd 8:0:0:0: [sda] Assuming drive cache: write through
[ 4159.925010]  sda: sda1 sda2 < sda5 sda6 > sda3
[ 4159.927958] sd 8:0:0:0: [sda] Attached SCSI removable disk
[ 4160.439261] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 4160.471010] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
pi@raspberry:~ $ 
If anyone can help that'd be great. It would be a pity to lose the setup I have for my robot- though my files are safe (I have backups, and can also easily get the files from the SD card because the root partition can be mounted and copied from without any difficulty).

Thank you.
Last edited by welshgeekboy on Fri Nov 04, 2016 3:22 pm, edited 1 time in total.
Pi B r2, Pi Zero (no cam), Pi 3, acid yellow HDMIPi, lots of robot bits.

wh7qq
Posts: 1439
Joined: Thu Oct 09, 2014 2:50 am

Re: Just another "SD card won't boot" post...

Sat Oct 29, 2016 7:44 pm

If I understand your post correctly, your problem is just with one particular SD card. If the boot partion gets FU'd, it will behave much as you describe. If that is the case, you should salvage your files and re-partition the card. Sometimes gparted will come back with an error due to no partition table, in which case you must create a new partition table (Device>Create Partition Table). There may be no way to salvage your old config files on the bad boot partition. When you get a new card set up, clone it to still another SD card so you will have a backup, as it is easy to forget to completely power down before pulling the card or the power.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5578
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Just another "SD card won't boot" post...

Sat Oct 29, 2016 8:03 pm

welshgeekboy wrote:Hello, I have a problem with one of my Pi SD cards. I use it in a Pi A+ on my robot. My problem is that the SD card does not boot. On a Pi A+ when no SD card is plugged in, the green 'ACT' LED glows brightly when the power is plugged in. This is how the Pi responds when I power it on with the bad SD card plugged in. There is no respose at all. I have NOOBs on the card but even NOOBs doesn't load. The Pi works though- when I plug a different SD card into it, it loads the OS without any trouble. When I plug the bad SD card into my Pi Zero, it also does not boot, or respond in any way. The 'ACT' LED does not come on at all.
...
Thank you.
What versions of NOOBS + O.S. (Raspbian?) were on the card. Unless it was one created after Pi Zero's became available it cannot be expected to boot on a Pi Zero since it will not have compatible "firmware" etc.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

welshgeekboy
Posts: 24
Joined: Wed Feb 17, 2016 8:59 am
Location: Wales, Carmarthenshire

Re: Just another "SD card won't boot" post...

Mon Oct 31, 2016 9:04 pm

Hi, thanks for the replies. The card still had Wheezy on it but I had been updating occasionally. So I probably updated after the Pi Zero came out, but since I was updating from Wheezy I don't know if the OS would work with the Pi Zero / if the foundation still updates Wheezy at all. Sounds like I should probably just re-image the card then... can I not easily replaced the 'broken' bits of the boot partition? I can check, but I'm pretty sure I can even open eg /boot/config.txt
Pi B r2, Pi Zero (no cam), Pi 3, acid yellow HDMIPi, lots of robot bits.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5578
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Just another "SD card won't boot" post...

Tue Nov 01, 2016 2:27 pm

welshgeekboy wrote:Hi, thanks for the replies. The card still had Wheezy on it but I had been updating occasionally. So I probably updated after the Pi Zero came out, but since I was updating from Wheezy I don't know if the OS would work with the Pi Zero / if the foundation still updates Wheezy at all. Sounds like I should probably just re-image the card then... can I not easily replaced the 'broken' bits of the boot partition? I can check, but I'm pretty sure I can even open eg /boot/config.txt
Whilst it may have been possible (relatively easy) to update Wheezy at the time of the first version of a Pi Zero, by the time the current Pi Zero version became available (post P3B) Raspbian Jessie was (and still is) the only fully supported version of Raspbian. (It may still be possible, but "non-trivial", to "add" the "missing" files to a Wheezy build, but it's no longer "just" an "upgrade"** process)
Trev.
** as in sudo apt-get update, sudo apt-get dist-upgrade
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

welshgeekboy
Posts: 24
Joined: Wed Feb 17, 2016 8:59 am
Location: Wales, Carmarthenshire

Re: Just another "SD card won't boot" post...

Fri Nov 04, 2016 3:19 pm

Ok. Thanks for the help. I'll just rewrite the card.
Pi B r2, Pi Zero (no cam), Pi 3, acid yellow HDMIPi, lots of robot bits.

Return to “Troubleshooting”