Raspberry Pi booting from USB/SSD
Вставка
- Опубліковано 22 гру 2021
- Today we will configure a #RaspberryPi to #boot from an #SSD/#HDD and copying your existing SD image to the SSD/HDD and extending the volume to use that whole SSD/HDD. It really speeds up your Pi's disk access.
It was a great idea by Retro Arcade Music Man, who wants to have his RetroPie running solely from USB storage. - Навчання та стиль
Thank you very much! Your method worked the first time, exactly like in the video. I had to spend the whole day until I found your video in the search
million thanks ....... you really made up my day....i was deep to my ears to do it...once more million thanks
Thank you for taking the time to comment and thank me, that means a lot! Have fun with it!
Hi Ray, i just finished following your instructions and it works like a charm! Thank you very much for this great video with nice background music. Cheers and have a nice 'oudejaarsdag'. Greetings from the eastern part of the Netherlands.
Gaaf man! Dank je voor je comment, altijd leuk als iemand je tutorial volgt :) En uiteraard ook een veilig uiteinde en een super goed 2022 gewenst.
Thank You for this video, I was stuck - but you cleared everything up with your excellent explanation and detail!
Cool to hear! Thanks for taking the time to comment.
Great video! Thanks! Very useful! Merry Christmas!
Thanks Wolfgang! Same to you and your family!
Thank you! A tutorial fast simply and it work!
This is perfect; all other tutorials explain it with a graphical interface, and something that takes on the lite step by step is really what I need as a novice running lite os.
I presume from the slight accent and your name that you are a fellow dutchman?
I will try this later today, thanks!
Greetings from Zwolle
Hoi!! Inderdaad een andere Nederlander hier! Ik ben blij dat je er iets aan gehad hebt. Fijne feestdagen uit een grauw en grijs Nieuwegein.
That's a really good idea!👍
Thank @Retro Arcade Music Man for the idea ;)
Merry Christmas 🎁
@@CallousCoder Merry Christmas 🎅 Awesome guys 👍
Thank you for a very clear tutorial on how to boot from USB on Raspberry Pi OS Lite. I've seen ones for the GUI version but this is exactly what I need. I have a small Raspberry Pi NAS currently booting from SD card and would like to boot from USB. thanks very much I really great tutorial 👍
Thank you for your kind words!
NICE VIDEO....
Thank a lot
Thanks you for watching and commenting
Great video, Im having difficulties when copying with dd it takes for ever to copy, does it take too long or show any sign of progress ? I'm trying to install a lite version.
Update.- I guess I was so desperate to get it going, long story short, I watched tv and came back to check on the process and it was finally done, it took around 10 or so for a 64gb SD card but got it done, again thank you so much for this tutorial I was pulling my hair trying to make it work with another tutorials but yours just was so easy, thank you again.
Awsome video
Thanks Paul!
@@CallousCoder your welcome
Thank you. I was able to get Ubuntu-Mate installed onto my m.2 drive using your video. I did have an issue with corruption of the drive after the files stem was expanded. This was sorted by running this cmd "fsck /dev/sda1 -y" on the initramfs screen.
This not work for Ubuntu mate
Thanks for this video. Maybe mention how to format the usb drive (exfat?)
If you don’t clone yourself SD drive, like we did here. Then you want ext4 you are running Linux. Or whatever file system your OS prefers. It’s no different from your SD card.
Hello thank you for the video. Would you also be so kind to explain or even better, create a video explaining, how we can use an SSD with NTFS file format to boot and install OS on?
As far as I know the imager currently converts the main boot partition to FAT32. I really would like to set my first pi on an SSD which is using NTFS or at least ExFat at the very least.
Would really appreciate any help or guidance from you.
Thank you for the video! I am setting this all up, and am formatting my SSD. What file system does the Raspberry Pi prefer the SSD to be in?
It’s not the po that has a preference it’s the OS. And you probably already rub on an SD card and this process copies that SD card, all you need to do is extend that new filesystem. And if you like to know ext4 is the most likely candidate for most distros
Alrighty! Thank you so much for the help!
Great tutorial... quick question.. is raspbian already setup to boot from USB automatically if no SD card is inserted??? because I didn't see if you changed the boot order in the configuration menuof raspbian
That is the first step in this video, where we make an SD card with the boot order.
Flashing the eeprom seems to be a pi 4 or later with the imager. I been trying to do it with a pi 3 B+ and I can get the SD to boot with the USB adapter but not my usb drive.
That could be. I don’t know because I don’t have a Pi3.
What did Google say about this? Just curious.
To avoid formatting the external drive, can I shrink the existing partition, create a new partition and copy over the the sd card to that new partition to then boot from it? e.g. instead of copying over the whole device /dev/sda it would be the partition /dev/sda2 and /dev/sda3 (one for the boot partition and the other for the root)
Theoretically that should work but you will need to install a boot manager to tell what to boot.
how long should it take to copy? its been a little while and this is my second go at it, not sure if im impatient or if its not working for some reason?
Depends on the size really. And whether you have set bs= parameter.
As long as both drives are flashing it’s working. I copy 32GB on about 5 minutes.
And did you connect to the USB2.0’ports (the blue one) that’s the fast usb.
Hi, dank voor je goed te volgen tutorial, echter werkt dit niet voor Kali Linux. Ik kreeg nog een beetje hoop om de USB bootloader eerst te laden wat je liet zien en dat gaat ook zonder problemen. Maar ik krijg het niet voor elkaar om Kali Linux te laten booten van SSD. En dan bedoel ik na de image van me SD card.
Dank je wel voor je reply. In principe zou Kali ook moeten werken aangezien die bios gewoon de USB driver bevat na het vertellen dat je van USB wilt starten.
Ik ken Kali niet (goed genoeg) om enigzins te suggereren waar het mis kon gaan.
Can I use samsung bar plus 128gb boot drive and 1tb samsung ssd for storage with 3amp power supply? Any problems ?
You will have to see what the disks use as power. SSDs usually don’t draw much. But the power draw is limited by the USB ports anyways. So if they attach to usb and have no external power feature they’ll work on your pi.
Because the USB spec dictates how much current at 5V can be drawn.
You have clarified the procedure for the eeprom update for usb booting, but I'm not using RaspberryPi OS. How can I do the file system expansion on the new USB drive while using Ubuntu Mate?
In Ubuntu you need to install gparted and there you’ll find an option to extend fs
@@CallousCoder Thank you! That was what I suspected.
one minor point, the "music", why do technical videos need music ?
Because it adds some ambience otherwise the dead space makes it boring.
How do it for Ubuntu on rpi4 ???
Same process except for expanding file system. There’s a comment below where I answered that question too.
A bit long winded. From you pi desktop open imager select the SD card to copy from select your SSD to copy to when done shut down remove SD card and switch on the pi. Job done.
We need to pleasure the algorithm.
Why not using terminal run the ``sudo raspi-config`` command to bring up the configuration tool
To do what?
Hey there I do get a small glitch:
as you can see it seems to copy went down correctly:
xxx@raspberrypi:~ $ sudo dd if=/dev/mmcblk0 of=/dev/sda bs=1024k
15080+0 records in
15080+0 records out
15812526080 bytes (16 GB, 15 GiB) copied, 372.832 s, 42.4 MB/s
xxx@raspberrypi:~ $ sudo shutdown now"
But then after reboot I get:
Connection to raspberrypi closed by remote host.
Connection to raspberrypi closed.
C:\Users\xxx>ssh xxx@raspberrypi
ssh: connect to host raspberrypi port 22: Connection timed out
I did notice the following this when throwing around the dmsg command:
[ 336.789265] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 336.789290] GPT:1953525165 != 1953525167
[ 336.789306] GPT:Alternate GPT header not at the end of the disk.
[ 336.789314] GPT:1953525165 != 1953525167
[ 336.789324] GPT: Use GNU Parted to correct GPT errors.
[ 336.789363] sda: sda1 sda2 sda3 sda4
[ 336.792337] sd 0:0:0:0: [sda] Attached SCSI disk
What does that mean, was my SSD not configured correctly?
Thanks working now. I have 1 other issue, after booting from USB when the screen saver blanks the screen I cannot reopen the desktop without rebooting.
That you need to Google, I don’t use the UI.
That shouldn’t happen, xscreensaver reads the keyboard. But yeah, there’s a 1000 things that can be wrong. Google is your friend :)
per the text file within the bootloader directory, this is for the Pi 4 and not the Pi 3/3b/3b+. It did not work for me on a Pi3B+.
Thanks for the comment. I indeed did not use a Pi3, I don't have one.
Pi3b+ has native USB boot…
For that matter, Pi4 after the initial run also have native USB boot.