Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[?] USB Boot coming natively to RPi4 (rpi-update) #3542

Closed
Hukuma1 opened this issue May 16, 2020 · 5 comments
Closed

[?] USB Boot coming natively to RPi4 (rpi-update) #3542

Hukuma1 opened this issue May 16, 2020 · 5 comments

Comments

@Hukuma1
Copy link

Hukuma1 commented May 16, 2020

Didn't know how to ask, so apologies.

Yesterday a beta firmware was uploaded by RPi team (https://github.com/raspberrypi/rpi-eeprom/) to enable USB booting on RPi4. I currently use USB booting with the help of DietPi's Drive Manager. Is there anything to do in the coming weeks if I wanted to switch to official USB boot support? (no sd card) Trying to avoid starting fresh with my NVME mount. ;)

@Hukuma1 Hukuma1 changed the title [?] USB Boot coming natively (rpi-update) [?] USB Boot coming natively to RPi4 (rpi-update) May 16, 2020
@Joulinar
Copy link
Collaborator

Hi,

many thanks for your message. Well DietPi's Drive Manager doesn't do anything special as it's managing mount options within /etc/fstab. Best to my knowledge, USB boot is managed/enabled via /boot/cmdline.txt.

@Hukuma1
Copy link
Author

Hukuma1 commented May 16, 2020

Cool! Will there be a guide possibly to convert it to the native USB boot once it is released? I am not sure how I would migrate from /etc/fstab to /boot/cmdline.txt method I mean. Or do you mean I can continue using DietPi solution and simply update cmdline.txt later to skip SD card altogether?

@Joulinar
Copy link
Collaborator

I guess we misunderstood. There is no DietPi solution. DietPi for Raspberry Pi is based on Raspbian Lite. Means all features and kernel functions are same because it's still as Raspbian Lite.

Regarding the USB boot, this is currently enabled via /boot/cmdline.txt as this is the workaround on RPi4. This is not a DietPi specific.

/etc/fstab on the other hand is managing all your mounts on your device. But not really something dedicated to USB boot and there is nothing to migrate.

depending on how USB boot will work on RPi4, you maybe need to adjust /boot/cmdline.txt later on. Once available it will be described at Raspberry web site.

https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md

@MichaIng MichaIng added the RPi4 label May 17, 2020
@MichaIng
Copy link
Owner

@Hukuma1
Many thanks for this information, that is great that RPi4 finally gets USB boot, something I was waiting for before even considering to buy one.

DietPi-Drive_Manager allows to move the root file system only, not the boot file system for now. Especially when the external drive does already contain the root file system, moving the boot file system + bootloader requires some repartitioning and manually cloning the bootloader bits, as it is located outside of the partition. I don't even know a command line tool that allows moving a partition together with contained data, but gparted only, which is an interactive GUI util.

Long story short, if you want to boot from USB drive without manual tinkering, flash a fresh DietPi image onto it, that is much safer and cleaner 🙂. In theory you could recover a dietpi-backup to quickly re-apply your old data (move the backup to the exact same location on the new system), rerun dietpi-drive_manager or remove the obsolete /boot mount from /etc/fstab manually then. bootloader and EEPROM are not covered by dietpi-backup, and it does not case about partitions/mounts either, so that should not cause problems.

@Hukuma1
Copy link
Author

Hukuma1 commented May 17, 2020

Ah thank you! Yes, I was wondering the procedure if I did not want to start fresh. I think I started fresh like 6 times now with all the stuff I tinkered with over the past few months. 🤣 Using Drive_Manager has been incredible to move it to USB drive. So, so much faster than the SD card. Will close this out as it's been 'solved.' Thanks all!

@Hukuma1 Hukuma1 closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants