OSMC on Rasberry Pi Model b hangs on boot

Hi there,

actually I’m enjoying OSMC quite well since the first stable release. But today I ran into an problem:
The pi is always-on and after I turned on the TV today, it presented me nothing but a black screen. After a hard-reboot (unplug USB energy) the device seems to hang up at boot with the following lines:

Does anyone know what to do?
The only hardware, that is connected is a 720p-TV via HDMI, IR-receiver, and an USB stick (for USB-boot, which worked well the last weeks since installing OSMC).

Nils

Thanks for your answer ActionA!
Unfortunately the fsck.repair did not resolve the problem. My “cmdline.txt” looks like this now:

root=/dev/sda1 rootfstype=ext4 rootwait quiet osmcdev=rbp1 fsck.repair=yes

The system messages seem not change at all:

Do you have another linux system handy that you can use to fsck the USB with?

After trying to fsck the USB with a Linux Mint VM (which didn’t work because VMware can’t pass non-mounted devices through to VM) I installed a Linux Mint partition on my Mac… Everything to end up in still not being able to mount the USB. I’ll attach regarding outputs:

dmesg “sees” the USB stick after plugging in:

[   55.106258] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[   55.239960] usb 3-1: New USB device found, idVendor=0951, idProduct=1642
[   55.239963] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   55.239965] usb 3-1: Product: DT 101 G2
[   55.239966] usb 3-1: Manufacturer: Kingston
[   55.239968] usb 3-1: SerialNumber: 001CC0EC348DBC31E64501F9
[   55.247420] usb-storage 3-1:1.0: USB Mass Storage device detected
[   55.247530] scsi6 : usb-storage 3-1:1.0
[   55.247622] usbcore: registered new interface driver usb-storage
[   55.249142] usbcore: registered new interface driver uas
[   56.284168] scsi 6:0:0:0: Direct-Access     Kingston DT 101 G2        PMAP PQ: 0 ANSI: 0 CCS
[   56.284586] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   57.333955] sd 6:0:0:0: [sdb] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB)
[   57.335912] sd 6:0:0:0: [sdb] Write Protect is off
[   57.335930] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[   57.337805] sd 6:0:0:0: [sdb] No Caching mode page found
[   57.337808] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[   57.367227]  sdb: sdb1
[   57.367247] sdb: p1 start 4096 is beyond EOD, enabling native capacity
[   57.372904]  sdb: sdb1
[   57.372907] sdb: p1 start 4096 is beyond EOD, truncated
[   57.377700] sd 6:0:0:0: [sdb] Attached SCSI removable disk

This results in the typical “blob” sound for plugging devices in the USB port, but it’s not going to be mounted:
mount -l

[   55.106258] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[   55.239960] usb 3-1: New USB device found, idVendor=0951, idProduct=1642
[   55.239963] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   55.239965] usb 3-1: Product: DT 101 G2
[   55.239966] usb 3-1: Manufacturer: Kingston
[   55.239968] usb 3-1: SerialNumber: 001CC0EC348DBC31E64501F9
[   55.247420] usb-storage 3-1:1.0: USB Mass Storage device detected
[   55.247530] scsi6 : usb-storage 3-1:1.0
[   55.247622] usbcore: registered new interface driver usb-storage
[   55.249142] usbcore: registered new interface driver uas
[   56.284168] scsi 6:0:0:0: Direct-Access     Kingston DT 101 G2        PMAP PQ: 0 ANSI: 0 CCS
[   56.284586] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   57.333955] sd 6:0:0:0: [sdb] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB)
[   57.335912] sd 6:0:0:0: [sdb] Write Protect is off
[   57.335930] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[   57.337805] sd 6:0:0:0: [sdb] No Caching mode page found
[   57.337808] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[   57.367227]  sdb: sdb1
[   57.367247] sdb: p1 start 4096 is beyond EOD, enabling native capacity
[   57.372904]  sdb: sdb1
[   57.372907] sdb: p1 start 4096 is beyond EOD, truncated
[   57.377700] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Sorry, no Linux genius here.

You don’t want the partition mounted in order to fsck it. The fact that the partition is corrupted is probably why you can’t mount it.

fsck while a partition being mounted is not a good idea - that’s right at all. But AFAIK I have to mount the partition first, so I can use the old mount point (after unmounting) as parameter for fsck.

So my question is: How do I reference to the partition if it was never mounted?

fsck sdb1

…did not work.

fsck /dev/sdb1

?

Well, that’s the same problem:

fsck von util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
fsck.ext2: Datei oder Verzeichnis nicht gefunden beim Versuch, /dev/sdb1 zu öffnen
Ist das Gerät möglicherweise nicht vorhanden?

Sorry - German console. It’s the default “file or directory not found (…) Is the device maybe not present?” error message.

That’s why I thought the device has first to be mounted and unmounted.

No, you do not need to mount a device before running fsck, it is enough that the block device (/dev/sdb1) exists. After booting up with the drive connected please provide the output of dmesg:

dmesg | paste-log

Also

sudo parted -s /dev/sdb print

May need to sudo apt-get install parted.

What concerns me is p1 > eod. That means the partition is expected to start further than the number of sectors that the disk has.

Sam

Okay - thanks for the explanation.
The “paste-log” command is not found on my machine. So I was just able to create an output after booting w/ connected device via “dmesg”. Because it’s a really long output, I uploaded it as txt on dropbox (didn’t want my post to explode, as I can see no spoiler-option in the forum-SW).
Dropbox - Error

Sam, many thanks go also to you for your effort!
parted was already installed on my machine - but your command results in an empty output (so just a new line waiting for the next command). I also tried “sudo parted -s /dev/sdb1”, which says, that the file or directory was not found.

paste-log is a command on OSMC systems. @DBMandrake was asking you to run it after booting the Pi with the drive connected.

Our official Pastebin is at http://paste.osmc.io. If you use paste-log on the Pi, you will get a paste.osmc.io URL automatically.

Sam

Oh okay - that was bad googling by me.

As my OSMC isn’t able to boot atm, I’m performing the Linuxcommands on my MacBook w/ Linux Mint installed on it… That’s why the OSMC specific command didn’t work :wink:

I transferred the txt to the official pastebin, so no one needs to click the Dropbox link.
http://paste.osmc.io/dequkuwago.vhdl

Hi

Is Linux Mint running on the MacBook natively? Or under a virtual machine?

[ 5.100916] sdb: sdb1
[ 5.100920] sdb: p1 start 4096 is beyond EOD, enabling native capacity
[ 5.106001] sdb: sdb1
[ 5.106005] sdb: p1 start 4096 is beyond EOD, truncated
[ 5.110419] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Does not look good. If parted is not giving you output, it may not be detecting a partition table. Try fdisk /dev/sdb as a last shot. Othewise, the USB seems to have corrupted.

Sam

Okay… I made a mistake yesterday - I’m sorry (it was late…). I forgot the “print”-parameter for “parted -s”.

I corrected that: “sudo parted -s /dev/sdb print” gives following output:

Error: Can't have a partition outside the disk!

I also used fdisk. It goes to interactive mode if I use “sudo fdisk /dev/sdb”. So to get an output for you I tried “sudo fdisk -l /dev/sdb”. Here’s the output:

Disk /dev/sdb: 2 MB, 2097152 bytes
186 heads, 19 sectors/track, 1 cylinders, total 4096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00049ab8

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            4096     7819263     3907584   83  Linux

Hope that helps.
Nils

edit: Linux Mint runs natively on the MacBook.

The partition table is broken. You will probably not have much luck here. We can try and reconstruct the partition layout, but I can’t guarantee the end of the partition.

*** No support. Use at own risk ***

Download my partition layout I have created for you here:

http://collaborate.osmc.tv/index.php/s/IxNPIxWnvWjOHsZ.

Run the following command:

sudo dd if=playout.img of=/dev/sdb bs=512 count=1

Sam

Hi Sam,
unfortunately this didn’t work. I copied the image on my USB stick successfully, but it’s still not working. I’m going to set up OSMC new for now. I hope the problem doesn’t appear again.