Raspberry Pi 4 USB Boot is official! How-to
Vložit
- čas přidán 17. 09. 2020
- It's finally here! The Raspberry Pi engineers finally made USB boot on the Pi 4 official, taking it out of beta. This video shows you how to boot a Pi 4 off a USB drive for better performance and stability... or just for fun!
Check out my blog post on booting the Pi 4 via USB:
www.jeffgeerling.com/blog/202...
Also check out my two previous videos on USB drive performance on the Pi 4:
TRIM, UASP and real-world tests: • Raspberry Pi USB Boot ...
USB performance benchmarks: • What's the fastest USB...
Sponsor me on GitHub: github.com/sponsors/geerlingguy
Support me on Patreon: / geerlingguy
#RaspberryPi - Věda a technologie
It might be worth mentioning for those who don't update/upgrade regularly to perform 'sudo apt update' before 'sudo apt upgrade'. Thanks for keeping up the stream of interesting and useful videos.
True. Especially if you're like me and you sometimes have a Pi that has been running for ages (or sitting in a box for ages) and has wildly outdated apt caches.
If you want to auto-update your pi by ssh from a Windows machine, make a .bat file with the following contents:
SSH pi@theIPaddressOfYourPi "sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"
@PAUSE
@@JeffGeerling whats the minimum speed requirement for booting or using machine learning in raspberry pi 4
@@JeffGeerling do you know any rasberi 4 software which tries to emulate or even boot into a uefi bootloader / uefi manager?
Awesome news!! Great video btw
Make video on pubg mobile gameplay on rpi4
thanks a bunch jeff! I haven't updated my pi in over a year, so I didn't know how easy it is!
Thanks, I have been waiting for them to make it default supported, so good news.
Best update for the Pi! Finally!
I applaud your non-clickbait title. 👍🏻
I was watching videos reviewing my recently purchased "RasPad III" and saw a reviewer (considering) booting from USB and I had to find out how. My SD card readers have been giving me a hard time lately but no trouble with my USBs. I also noticed that there were still usable ports inside the "Pad" when it's all closed up. My thoughts went to the mouse dongels and storage USBs...
...until that review. I am so looking forward to this! Thanks for a VERY clear, straightforward explanation. I love Pi! Glanced at your video list and WILL hit "Sub"! G'day!
Thank you for all the great videos, really helpful!
Thanks Jeff, appreciate the knowledge.
Best video ever on topic. Love your work.
Jeff, you are outstanding..I, from your Dad's generation . September 7, 1954.I had a 1959 Strat and a 1069 SuperBee 440 SIX PACK. Retied IBM CE , Grumman and FEMA. i SIT AND PLAY WITH MY rASPBERRY pI'S.THANKS Bob
Nice I'm already waiting for when my Sata to USB adapters arrive so I can start making connections to my Pi.
Thank you. Mine was up to date. My Pi4/8G runs noticeably faster using a USB3 SSD than it did off even the fastest microSD I could get.
@@fightspiritual Did you watch Jeff's earlier video on getting the RaspiOS 64-bit beta to boot off a SSD?
As Ubuntu is based on Debian, and RaspiOS is a Debian with all the Raspberry Pi drivers in place, I would try following that video, and transferring the /boot files he shows to the Ubuntu /boot. Beyond that I have nothing to help with Ubuntu.
An alternative is to use the latest build of Manjaro. This is not based on Debian, but it works really well, and the latest build runs off an SSD. I swap between these two, with the occasional use of LibreELEC. So far I have not tried LibreELEC off SSD. As it is also based on Debian I would try fiddling with those files if it does not boot.
Thanks! this information is totally new for me, now I can usee USB Flash memories, cool! thanks
Jeff, great video, thank you
Cheers mate, worked like a charm
Good news, I'll use my spare M.2 SATA drive. Thanks Jeff
Great video, thank you. Just a clarification, now with this can we skip the need for the MicroSD card if we want to use BerryBoot? Can the BerryBoot bits boot from the same USB drive that the Operating Systems also reside?
Amazing!
Hey Jeff, great video. I've tried cloning my existing Micro SSD to my brand spanking new m.2 drive to try and get it to boot but it's saying on bootup that it can't find a drive to boot from. Would this work normally anyways? Before I used to clone windows boot drives all the time to other hd's and that worked. I think it might be a bootloader issue though as I followed your video but noticed that my eeprom update is on the stable channel and yours was on the critical channel, would that make a difference?
thanks, tutorial helped :)
Hey this is cool, now I can easily boot a Pi 4 off an ssd drive in an external sata to usb 3.0 case!
That's exactly what I'm doing!
I'm doing that since 3 months now
Can I plug the ssd drive (by external sata to usb 3.0 case) directly to the pi4 without external power source? Is it damage for the pi?
@@kolossarthas I appreciate. I'll give it a try. ;)
That’s great news, now I recommend my Pi user group that’s now ok to upgrade. We still had a few members that held back until it was a official update. So good bye to SD cards 🤪
I have a USB M.2 drive coming so my PI has a real boot drive. No more worrying about flash wear leveling! With luck I can get it working quickly.
I like your vides they are great ... question did i overlook to how i get the case you dont like because you can't stack ;)- and use the ssd to boot ? (i do you an 3d printable stack assist if you drop me an hint ;)- thx
You are a god
raspi-config offers boot eeprom updating also.
this video was awesome!! Can you please make a video on how to network boot the raspberry pi 3B+ using linux desktop?
Thanks for the video, actually thanks for all the videos, they are great. I wanted to set my pi up to have a booting SD card in the pi which would be ignored if a USB bootable drive was detected, but I found that if you have a USB Hub/ card reader attached but no bootable drives in it, it doesn't boot from the SD card in the pi, it seems like the hub/card reader somehow fools the pi into constantly retrying USB and not falling back to the native Micro SD, remove the hub/ card reader and it boots, a video on why this happens would be great.
Until next time he's gonna be Jeff Geerling, but better stop back again later to check if he's still gonna be Jeff Geerling. ;)
_You never know..._
Leo Battle'lions the estrogen will start to kick in soon and we’ll have Jenny Geerling before you know it.
Dang it!! I had the same thought... as I do every episode.
Alan Livingston or Jess Geerling
@@JeffGeerling Does this method work when running Twister OS 2.0 or is it only compatible for Raspberry Pi OS? Thanks in advance.
BTW, nice movies you make!!!!!Bedoelde u: btw , leuke films wat je maakt!!!!!
37 / 5.000
No apt update before the upgrade?
Btw apt without get looks nicer and has a progress bar.
@Jeff Geerling - is this not working (yet) on Ubuntu 64bit version 20.04 of the pi img? I have the SSD flashed with that version of Ubuntu that I got from the Pi's download page but it won't boot from SSD. I am running the supported firmware on the Pi4 I have so I'm good there. Just curious if this has been addressed on the Ubuntu img yet
Does this improve performance on the raapbian os? Like opening apps etc
So now I can go back to stable and have kernel headers back without a massive headache?
perfectly explained, but the latest update of my pi4 w/rasbian lite included the firmware update (but i was able to confirm it before proceeding so still useful to know) -firmware date updated to today but 'Insert SD-CARD' prompt present...
I suppose you could just upgrade/update your PI, and use the new tools present in the raspi-config program.
Thanks
do you have any videos on how to install Arch or Debian straight from a bootable usb in to an empty sd card with raspberry pi 4? This video wasn't entirely the information i was looking for
Jeff, I have an RPi4 in an Argon One m.2 case which I used completely successfully to run Home Assistant. However the load was getting high so I transferred HA to a NUC.
I am not trying to install Rasp OS on the SSD, but I cannot get it to boot. The RPi4 does boot with the SD card, and I can then plug in the SSD and I see the two boot partitions from flashing Rasp OS to the SSD.
I can get the system to boot from SD with the SSD plugged in, but it doesn't boot from the SSD, with or without the SD card plugged in. I can get it to boot from SSD when I plug in a SATA SSD with an external power source.
I realize that this is almost certainly a power issue. I upgraded the power adapter when I installed HA. Do you have recommendations for power adapter specs? Or any other suggestions?
can you please tell something about the raspberry emergency mode?
i tried your how-to and ran into this error. it also seemed that everything is much slower than before.
i tried flashing a clean buster image and the one with my minecraft server on. neither did work.
keep it up!
Hi Jeff, I have OS on ssd but boot partition is on microSD, can you make a video how to move boot partition with the latest firmware and startup raspberry without microsd? I don't want reformat my actual system.
Thanks
Woohoo!!🤩
i tried the method but my pi showed only blank screen after rebooting with ssd. It boots perfectly with sdcard, it says the bootloader is latest, after i did it, Please help me!
Awesome! Will this also work out of the box with other distros like Ubuntu LTS Server? I‘m wondering cause previously it didn’t 🤔
I was wondering the same thing but apparently, I still can't boot from SSD with this. Looks like you still have to manually do some kernel configs from the SD card over to the SSD partitons
Jeff, is it possibile to boot berryboot os or pinn os from m.2 sata?I don't want to use micro sd card anymore in Rpi 4.
how do you check / do the eeprom with ubuntu mate?... the rpi command isn't found it says
on my older 8 gig I did has to turn it on in config and it will work if the card is left in but i did out of fear pull it out
will this work with a new pi 4? or do i need to boot from sd first?
i got my raspberry pi to boot into Ubuntu 20.10 over USB after i did a firmware update it also boots into recalbox and risc OS from USB.
This is MAJOR news. If true then it can truly be used as a low power desktop replacement
Usb boot for pi 4 is available for months now so yeah it's real, this guy is just late at making this video lol
So now do one where you boot to a mirrored zfs pair of drives.
Does this mean you are required to install the RaspberryPi OS first, complete the eeprom checks, then do the USB? I suppose you can boot and do the checks from the mSD and have the USB ready?
With rpi imager using Win 10, need to partition to max size 32gb n fat 32?
can we do this with RPi 3B? (as SD card slot is damaged ) so trying to make it usable
I really enjoy your vids and0 use blend enthusiasm, pedagogic explanations, tech, testing and inpiration perfectly!
Now, I am a big fan of the Pi (got 4 so far) but one thing bothers me. The release of the 8 Mb version and the seemingly never released 64 bit version of Raspberry Pi OS. Since the beta release of May 2020 there's very little official or even visible activities around this version. The only version available to download seems to be the May 27 -20 and the Github repo for it has no activities that would indicate that there's a newer version available. Not to the public anyway.
Any insights in this topic? I tried to get my RPi4-8Gb up with SSD but failed and I believe it's due to the 64-bit version I tried to used. Could be wrong though. I'd love to upgrade my two 8Gb Pies (using the Argon 1 and love them - but I do agree on the looks you mentioned in that vid...) with SSD but so far my attempts to combine 64 bit os with SSD boot has failed.
Hello, i want to install centos os my raspberry pi using ssd. Should i update raspberry pi fiware using raspberry OS, after that install centos on ssd and plugin to raspberry pi?
@jeff is there a way to upgrade without using a SD card? somehow one of my pi 4's has just stopped reading the sd card... i can use same sd card and power/hdmi in other pi's... i'm looking for a workaround so i don't trash it :(
Thx for the info Jeff. What happens if you leave the sd card in? Does it have boot preference?
I have a project that requires remote re imaging of Pi’s this may be a possible solution.
You can actually do this-there's a boot order preference for the Pi, though I think it's hard-coded to boot off the microSD if it finds the bootcode.bin file on it-so what I've done is just format the microSD card elsewhere, or rename the bootcode.bin file, and you can still access the microSD card while booting from USB.
@@JeffGeerling This solves a longstanding issue we've had while trying to manage Pi's out in the field.
I'll do some testing to confirm, essentially downloading a new .img onto the USB and then switching boot order with bootcode.bin, then dd the new .img onto the microSD. The USB disk becomes a kind of "baseboard management controller"
And a sprinkling of Ansible to manage distribution of the images, this sounds very promising.
Thanks Jeff!
@@ZeeroGee very interresting. Make sure to post you're experiences here in the comments, or, even better: make a video about this topic. (And If you do, please post a link in this section) 😀
Hi there can you do this by instaling windows ARM on a usb drive on a pc then putting it in aPI 4 please from Fred in Uk
Good, now made the same with Ubuntu Server for RP4
How about network boot, cos i could enable networking booting for arm devices technically speaking i already have it enabled for efi and legacy, its just a matter of compiling bootloader for arm for network booting on my network and adding aditional few lines to my dnsmasq
Can we use the remaining storage on the pen drive for storage purpose
That's awesome! Would it make sense to do this with a €60 USB 3.0 Portable Hard Drive? I know it would be much slower than an SSD, but would it be slower than an SD card or similar in performance? Edit: After some googling it seems like USB HDD's are pretty slow compared to good SD cards.
They are slow for sequential copies, yes-but they are typically faster and last longer for typical Pi usage patterns. I'd give it a try and see how it works for you. Note that some USB HDDs require more power than the Pi can deliver, but in my experience most of my HDDs have worked fine (I used a Seagate 2 TB drive and a WD 1 TB drive in the past; but now I've upgraded my external drives to SSD).
Odd I recently reinstalled the latest Pi OS. Went through all of the update steps. Even followed each command you did in the video. When I attempted to reboot via USB I got a generic pi screen with a lot of data. Oddly I have a wireless keyboard dongle in one of the USB 2 slots and it attempted to install from this not the lmde 6 cinnamon I have flashed onto a USB drive.
Can I use samsung bar plus 128gb boot drive and 1tb samsung ssd for storage with 3amp power supply? Any problems ?
would this work for plasma bigscreen?
my pi just wont start with my ssd, but i cant see the screen, because my stupid hdmi adapter just broke so... I copied my os directly on the pi to my ssd with the sd card copier tool, might this be the problem?
I flashed a new copy of Raspberry Pi OS and did sudo apt update and upgrade. And after a reboot, the eeprom said the firmwire was update to date, (same numbers as shown in this video).
But its not booting off the USB, the screen says "Insert SD-CARD" and "failed to open device: 'sdcard'"
First tried using an image of my current Ubuntu-Mate, didnt work. Then downloaded a fresh Ubuntu-Mate, still doesnt work.
Any idea whats wrong? Thanks...
What do you do if the Raspberry pi imager keep delating your USB volume?
I have managed to boot from USB and using Raspberry Pi Diagnostics , the speeds are 8 to 10 times faster than microSD card...
Sequential write speed 115,583 KB/sec (target 10,000) - PASS
Random write speed 11,322 IOPS (target 500) - PASS
Random read speed 13,277 IOPS (target 1500) - PASS
But the wireless speed has dropped from 18Mbps to only 3Mbps. (Wired ethernet speed is fine).
I remember I read somewhere that the USB and the Wi-Fi are both sharing the same PCIe channel on the actual board, is that the case, or is there something else going on?
no caching mode page found
assuming drive cache: write through
???
I just use the SD Copier to copy over the SD Image to the USB-Drive, and then boot from the USB Drive when I'm done..... works great..... :)
Doest it work with Ubuntu 20.04 ??? Because havent eeprom update ? thanks Raspberian is too small for my job.
Ctrl+shift+X in the Raspberry pi imager, enjoy!
I flashed the latest Raspberry Pi OS lite (headless) on an SSD and for some reason it boots saying "resized root filesystem" but it doesn't resize at all and it keeps bootlooping. I couldn't find any info on the internet. Has anyone else found anything like that?
Obrigado
Hai Jeff , I've done the rpi's update, eeprom -a all . but i the config i got a message "no eeprom bin found" abord . yes i also have the latest version loaded . is this a problem?🙄
Hi Jeff
I burnt all USB ports on my PI 4....is there any way you can help me?
Why did you not mention that you can check your pi to see if it has the latest boot loader by looking at the date with no sd card ?
Hi do you know How to silve this issue when noite from USB,? my issue error "Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b" thanks
wow thanks for the info!
is this why ubuntu 64bit wasnt working on the pi 4 8g? time to find out after my upgrade finishes
Did you find out anything? My USB with Ubuntu 64 won't boot from SSD and the only info I've found so far are old articles from June/July about needing to mount the partitions of the Ubuntu img on the SSD within the Pi's system and copy the kernel over among a few other settings. I'm trying to avoid all of that to make it a more seamless and automated process with Ansible
@@Teedohs I haven't yet, do you just get the page with all the 'SSSSSS....'?
@@WinterSina nope, I just get the "starting USB... No working controllers found" then it tries to pxe boot and then it fails and brings me to a U-Boot> prompt
I've only got one question. Does this then mean I could boot from a USB and insert a blank Micro SD to use as storage?
yes
Doesnt work for me.
Followed the steps to update the board and write the image to the SSD.
Once I remove the SD card and have the SSD attached the activity LED blinks a few times, goes black and then does the same again.
But no output..
If I want to run the system I have running on an sd card now can I just get a USB stick that is the same size and then run "dd if=/dev/mmcblk0 of=/dev/sda" ?
Yes, and check Jeff's previous videos about optimizing SSD performance by setting trim enable and/or getting a usb-sata adapter that support uasp (scsi commands over usb 3)
Hi, is it possible to use usb to boot raspberry pi 3?
Doesnt work for me :/
When trying to boot from the USB-Flash-Drive with a HypriotOS Image i want to use, it shows multiple error messages and most of all: "usb-msd boot requires newer software"
even though i updated everything beforehand.
Trying this on a Raspi 4B.. Can anyone help a newbie out?
I watched a ton of videos and blogs but it just won't work on my side. The USB disk is recognized and I put a RPi image on it. Everything is going fine with the bootloader and all, but when I remove my SD card and only have my USB disk plugged in, it simply doesn't boot.
Thanks a lot Jeff, much more simple now. I got fine boot and speed with an USB3 Sandisk Ultra key, with little speed transfer difference on USB2 vs USB3, but with an USB3 SSD (ADATA 960Go), unable to boot on USB3 port, and it work on USB2, but transfer are 10 time slower than with the key. Any experience ?
(update)
Probably I got a problem, after making all again, all is OK, except that no possible to boot on USB3 port
what side is the usb 3.0 on the pi
@@Ninfranko the blue ports. same with every device generally.
bought Raspberry Pi 4 and or bought m.2 from 256gb and case for m.2 from orico but when the Raspberry starts with m.2 it is not detected you have to unplug it from the USB port and reattach it solution
a message on GitHub does NOT mean it is officially released, that is only true when there is an announcement on the blog, and the 2020-09--03 code is released from the official download site.
I have NOT seen an announcement on the BLOG yet!
Hi! I cannot login because I do not have a wired keyboard and the SSH does not work with me, It does not take my PW, I have rewrite the flash Drive and SD card. Is there any other way to login? thanks
We all know that sd cards fail after some time with much writing. Is usb flash driver more safe? Im sure that ssds is more stable, but i dont know about flash drives.
Most USB flash drives (like the Ultra Fit and Ultra Flair I tested) are using the same or similar chips as microSD cards, so they will have the same potential issues if you get a really cheap drive. External USB SSDs and NVMe drives, however, have much better reliability and performance. Also note that some microSD cards are built specially for better endurance or industrial applications.
I swear that Jeff sounds exactly like Steve Buscemi. Once you hear it, you can't unhear it.
You're soo right about that. 😁👍
I heard it a little bit before I saw your post. Now I can’t unhear it.
Install Kali on USB to boot on Raspberry Pi 4 next?
i followed the steps but my pi is not booting from SSD
can you help me
How do you power it on
Does USB boot also works with NOOBS or only with Raspbery Pi OS?
hmm, just tried this and not working :| have the same version as you as well.
Hey there,
Can you power on raspberry pi 4 with a Q.C 3.0 charger?
quick charge / power delivery won't work on rpi