Tuesday, December 20, 2016

Rasperry Pi 2 - boot from USB

Change boot device in cmdline.txt to /dev/sda2:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline fsck.repair=yes fsck.mode=force rootwait

Still boots from SD Card first, but USB is supposedly faster.  Nice article here on the full procedure:

https://www.stewright.me/2013/05/install-and-run-raspbian-from-a-usb-flash-drive/

To write image to usb drive, use this command from within linux VM:

> $ sudo dd if=raspbx-22-09-2016.img of=/dev/sdb

7626752+0 records in
7626752+0 records out
3904897024 bytes (3.9 GB) copied, 1875.02 s, 2.1 MB/s


1 comment:

  1. linux VM could not fix corrupt USB flash drive. Had to switch to windows - imagewriter to write image.

    ReplyDelete