Did you make it executable with?:
Code: Select all
chmod +x usb-boot
To return booting to the SD card, you simply restore the SD card's cmdline.txt to its original contents:
Code: Select all
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Your work is much appreciated ! The Zram script was handy as well ! Thanks.RonR wrote: ↑Tue Jul 30, 2019 4:13 amusb-boot has been updated to allow using the native USB boot capability of a Raspberry Pi 3B+ or a Raspberry Pi 3B that has its OTP bit set. Booting USB devices using an SD card is still the most reliable way to run Raspbian on a USB device (including the Raspberry Pi 3B/3B+).
See the original post for complete details and to download:
https://www.raspberrypi.org/forums/view ... 2#p1230182
Thanks for the feedback. I'm pleased to hear you found them useful.itsmedoofer wrote: ↑Tue Jul 30, 2019 11:20 amYour work is much appreciated ! The Zram script was handy as well ! Thanks.
Brad Q wrote: ↑Sun Aug 18, 2019 6:14 am"[email protected]:~/Holding $ sudo ./usb-boot-test
sed: can't read /tmp/usb-boot-mnt/cmdline.txt: No such file or directory
SD card must remain in place to boot the USB device"
To me it looks like it is trying to edit the one on the usb flash drive. Does it not want to edit the one on the micro sd card?
Brad Q wrote: ↑Sun Aug 18, 2019 5:12 pm#dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=9a9f084e-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles"
I copied and pasted in the second line and changed the root= part on the "active" line. Beyond that it is the stock as installed line.
Brad Q wrote: ↑Sun Aug 18, 2019 5:12 pmFrom the USb drive cmdline.txt
"dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=9a9f084e-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles"
This was generated by the script when it copied the data (cloned) from the sd card.
Brad Q wrote: ↑Sun Aug 18, 2019 5:20 pmmount command:
"/dev/mmcblk0p7 on /media/fred/root type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)"
"/dev/mmcblk0p6 on /media/fred/boot type vfat (rw,nosuid,nodev,relatime,uid=1001,gid=1001,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)"
"/dev/sda2 on / type ext4 (rw,noatime)"
"/dev/sda1 on /media/fred/C799-0C57 type vfat (rw,nosuid,nodev,relatime,uid=1001,gid=1001,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)"