Hassbian boot problem

Hi!

My hassbian won’t boot. I put the microSD card in my macbook and checked with the linux command mount and the boot partition is mounted as:
/dev/disk3s1 on /Volumes/boot (msdos, local, nodev, nosuid, noowners)

Checking under /dev I see the fiilowing special files:
ls -l /dev/disk3*
brw-r----- 1 root operator 1, 9 7 Sep 15:59 /dev/disk3
brw-r----- 1 root operator 1, 10 7 Sep 15:59 /dev/disk3s1
brw-r----- 1 root operator 1, 11 7 Sep 15:59 /dev/disk3s2

I cannot mount /dev/disk3s2:
sudo mount -t msdos /dev/disk3s2 .
mount_msdos: Unsupported sector size (0)

I havent been able to check /dev/disk3s2 either.

Do anyone know how many partitions there should be on the SD card, and how they are mounted?
If anyone can ssh to there hassbian, can you just do the mount command to see what is maunted and how?
Anyone who knows how to fsck these partitions?

The files on the boot partiotions below.

Best regars,
Rickie Kåveby

Now the boot partiion only contains these files:
cd /Volumes/boot/; ls -la
total 44103
drwxrwxrwx@ 1 rickiekaveby staff 2560 7 Sep 15:59 .
drwxr-xr-x@ 4 root wheel 128 7 Sep 16:38 …
drwxrwxrwx 1 rickiekaveby staff 512 7 Sep 15:59 .fseventsd
-rwxrwxrwx 1 rickiekaveby staff 18693 15 Jul 09:49 COPYING.linux
-rwxrwxrwx 1 rickiekaveby staff 1494 15 Jul 09:49 LICENCE.broadcom
-rwxrwxrwx 1 rickiekaveby staff 18974 16 Mar 17:21 LICENSE.oracle
-rwxrwxrwx 1 rickiekaveby staff 22362 15 Jul 09:49 bcm2708-rpi-0-w.dtb
-rwxrwxrwx 1 rickiekaveby staff 22118 15 Jul 09:49 bcm2708-rpi-b-plus.dtb
-rwxrwxrwx 1 rickiekaveby staff 21859 15 Jul 09:49 bcm2708-rpi-b.dtb
-rwxrwxrwx 1 rickiekaveby staff 21572 15 Jul 09:49 bcm2708-rpi-cm.dtb
-rwxrwxrwx 1 rickiekaveby staff 23162 15 Jul 09:49 bcm2709-rpi-2-b.dtb
-rwxrwxrwx 1 rickiekaveby staff 24621 15 Jul 09:49 bcm2710-rpi-3-b-plus.dtb
-rwxrwxrwx 1 rickiekaveby staff 24358 15 Jul 09:49 bcm2710-rpi-3-b.dtb
-rwxrwxrwx 1 rickiekaveby staff 23070 15 Jul 09:49 bcm2710-rpi-cm3.dtb
-rwxrwxrwx 1 rickiekaveby staff 52116 15 Jul 09:49 bootcode.bin
-rwxrwxrwx 1 rickiekaveby staff 142 31 Dec 1979 cmdline.txt
-rwxrwxrwx 1 rickiekaveby staff 1590 16 Mar 17:12 config.txt
-rwxrwxrwx 1 rickiekaveby staff 6640 15 Jul 09:49 fixup.dat
-rwxrwxrwx 1 rickiekaveby staff 2609 15 Jul 09:49 fixup_cd.dat
-rwxrwxrwx 1 rickiekaveby staff 9872 15 Jul 09:49 fixup_db.dat
-rwxrwxrwx 1 rickiekaveby staff 9870 15 Jul 09:49 fixup_x.dat
-rwxrwxrwx 1 rickiekaveby staff 145 16 Mar 17:21 issue.txt
-rwxrwxrwx 1 rickiekaveby staff 4680472 15 Jul 09:49 kernel.img
-rwxrwxrwx 1 rickiekaveby staff 4927984 15 Jul 09:49 kernel7.img
drwxrwxrwx 1 rickiekaveby staff 11776 16 Mar 17:20 overlays
-rwxrwxrwx 1 rickiekaveby staff 2836420 15 Jul 09:48 start.elf
-rwxrwxrwx 1 rickiekaveby staff 675684 15 Jul 09:49 start_cd.elf
-rwxrwxrwx 1 rickiekaveby staff 5096580 15 Jul 09:49 start_db.elf
-rwxrwxrwx 1 rickiekaveby staff 4036548 15 Jul 09:49 start_x.elf

pi@hassbian:~ 
$ mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=217700k,nr_inodes=54425,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=44400k,mode=700,uid=1000,gid=1000)

but I think you are better off going to a backup or even downloading a fresh image, rather than trying to fix it.

1 Like

Thanks a lot! Stupid of me, I don’t have a backup.

Hi again Gbenton!

From you answer I could see that /dev/mmcblk0p was mounted as a ext4 filesystem. Unfortunatelly Apple OSX can’t mount ext4 filesystems, however I downloaded ext4use for OSX and could mount the SD card readonly. So I have now backed up all relevant files. I’m going to find some machine that can mount the SD card ead write and see if I can find out something. It seems that the filesystem on the SD card is OK. COuld be filled up logs or something.

Thanks a lot for your print of mount!

1 Like

If you can boot a live linux on your mac, it will mount ext4.