I have set up my Raspberry Pi 2 Model B to boot from a USB flash drive like in this article. Basically, I have burned the Raspbian image to a USB drive, then copied the boot partition to my SD card, and edited cmdline.txt in the following way:

Modified root=/dev/mmcblk0p2 to root=/dev/sda2

Whenever I try and boot my Raspberry, I get the following message:

Checking file system...fsck from util-linux 2.20.1
open: No such file or directory
dosfsck 3.0.13, 30 Jun 2012, FAT32, LFM
fsck died with exit status 6
fsck died with exit code 6
[FAIL] File system check failed. 
[warn] A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot 

When I try fsck in the maintenance shell, I get the following error:

No such file or directory while trying to open /dev/mmcblk0p2

When I control-d uit of the shell, the system boots normally.

Why does this error take place and what can I do about it?

  • @hoedjes didz you try to switch the usb to another slotz? – Mehdi Nellen Feb 10 '15 at 10:43
  • 5
    Is the old root device /dev/mmcblk0p2 still mentioned in /etc/fstab ? – Frepa Feb 10 '15 at 10:46
  • How did you copy the boot partition, exactly? – Bex Feb 10 '15 at 13:42
  • @Frepa Yup. Should I comment out that line since /dev/sda is already mounted? – Maarten Feb 10 '15 at 19:41
  • 1
    @Maarten I'd say just change the line to point to the new root partition, replace /dev/mmcblk0p2 by /dev/sda2 (I assume sda2 is your new root partition). – Frepa Feb 10 '15 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.