#312 Boot a Raspberry Pi4 with an SSD to make it reliable and fast

#312 Boot a Raspberry Pi4 with an SSD to make it reliable and fast

Andreas Spiess

4 года назад

600,659 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Colin de Silva
Colin de Silva - 19.08.2023 14:32

Grüezi, Herr Spiess. I know this is old now, but did you ever do any power consumption measurements with the SSD? I am trying to figure out a mobile solution with SSD, camera and sense hat.

Ответить
Josh Farley
Josh Farley - 21.02.2023 11:30

I did this with my Raspberry Pi 4 because it's constantly running with my PiHole Server on and a Micro SD Card would've probably failed eventually from it being on basically all the time unless I do Maintenance or Updates on it. I bought a Silicon Power 512GB M.2 SSD SATA III it was cheap and only $25.00 Dollars on Amazon it's not as good as some of the other top Brand SSD's but I haven't had any problem's with it going on about two to three Months and I don't need anything too fast or powerful since all it's basically doing is running the PiHole Server. I also have a Backup PiHole Server which is used with my Raspberry Pi 3 but that doesn't have the 3.0 USB Ports like the Raspberry Pi 4 has so I just use a cheap Silicon Power 512GB Micro SD Card in that since it's not constantly running. So far I've been a big fan of Silicon Power they seem to make cheap but quality stuff and they have a pretty decent Warranty of 3 Years you can't beat that kind of Warranty for a cheaper SSD I highly recommend checking out Silicon Power stuff.

Ответить
Wilfred Swinkels
Wilfred Swinkels - 12.01.2023 15:22

is there someone else who saw d34db33f as deadbeef??

Ответить
Jérôme Rioublanc
Jérôme Rioublanc - 04.11.2022 10:06

Even after a couple of years this video is still useful, thanks.

Ответить
Ylan Sthlm
Ylan Sthlm - 24.08.2022 23:36

I run a NexcloudPi installation on a Raspberry Pi 4b, booting from SSD. Works great, also with passive cooling.

Humbly, Ylan

Ответить
Awesome Dee
Awesome Dee - 22.02.2022 08:17

You do know what 0xd34db33f is right? It is not necessary.

Ответить
Hfil66
Hfil66 - 28.12.2021 15:17

I am still not sure I would want to boot off an SSD.

I totally understand what you mean about losing your 'valuable data', but where my data is that valuable then I would also want to keep it on an encrypted drive. On my desktop, Linux is quite happy booting on an encrypted root partition, but I am not sure how you would achieve that on a Raspberry Pi (especially a headless Raspberry Pi). For that reason I would be tempted to keep the root partition on a rarely written to, and unencrypted, SD card; and keep the regularly updated (and more valuable) data on an encrypted SSD.

Until now I have not used my Raspberry Pi for anything that needs lots of written data, so I just have the SD card (which is occasionally imaged to me PC, so if the card does get corrupted I can easily create a new image of the card); but looking to the future, when I may be putting other services on a Pi, I am still considering leaving the root partition on the SD card.

Ответить
Augusto Alcalde
Augusto Alcalde - 23.12.2021 06:45

there is an update of this video ?

Ответить
Joelynn Carter
Joelynn Carter - 15.12.2021 17:00

I've corrupted too many SD cards to trust them. On the other hand, I've never had an issue with a well maintained SSD/HDD.

Ответить
calvinton
calvinton - 02.12.2021 20:01

Thank you, direct to the point and worked the first time.!!!!!

Ответить
Mat Dakin
Mat Dakin - 26.11.2021 18:58

Thanks for the video. Over wifi SSH I get to the point where i successfully edit /boot/cmdline.txt (i repeat to check its been updated), then reboot, but at that point i cant reconnect as the device doesnt connect to my router. Both sdcard and ssd (Samsung T7) have the same wifi settings. If i plug into a router ethernet port, the device still isnt recognised :-( I booted up the Pi with the SD on the latest recommended built (Bullseye 32) in advance to check i could get to the desktop - all ok.

Ответить
wclintdavis
wclintdavis - 30.10.2021 15:50

Thank you, Sir. This works unlike many other videos out there. You've saved me, once again!

Ответить
ryancsumner
ryancsumner - 23.10.2021 02:00

I agree: it’s best to be humble

Ответить
chris cauwelier
chris cauwelier - 06.10.2021 19:25

d34db33f or deadbeef, easter egg?

Ответить
MrFurano
MrFurano - 03.10.2021 07:33

Hi, great video! Although Raspberry Pi 4 supports USB boot natively now, it only works with Raspian. It doesn't support Ubuntu. Can you do a video for Ubuntu? Thanks!

Ответить
Mikko Rantalainen
Mikko Rantalainen - 16.09.2021 16:44

I'd recommend A-Data Premier A1 cards for the boot drive because boot usually needs to read small file fragments from the card and that card has the best random access latency out of all SD cards. Be sure to get the A1 variant because A2 version is worse. For mass storage that card is not the fastest available, more like the most stable performance for all cases (that is, usage pattern matters less for this card but the max optimal pattern is slower than high end Samsung, Kingston or Sandisk cards).

Ответить
MegaScott
MegaScott - 10.09.2021 06:34

Since its 2021 and new versions of Rasbian OS are out with native SSD support, this process is much easier. Now If only SSD's came self powered instead of USB powered, things would be perfect. but my SSD keeps getting corrupted due to the low power RPI4 USB ports. I guess I'll have to make my own self powered USB 3.0 cable!

Ответить
Torfinn Sørnes
Torfinn Sørnes - 26.08.2021 12:13

Legendary comment. 😀

Ответить
Revan
Revan - 16.08.2021 20:37

why did my pi4 just natively work with usb boot out of box? Its been running plex stable for a week, no issues at all? Also the only thing I did before hand was use the pi imager to flash a usb boot firmware(green screen process). Will I run into any issues?

Ответить
Maria Giakoumi
Maria Giakoumi - 31.07.2021 15:40

it works today? shou i try it?

Ответить
chucknorrispka
chucknorrispka - 13.04.2021 01:02

After doing this can you remove the SD card forever?

Ответить
wegi
wegi - 08.04.2021 01:59

great!

Ответить
George Kasapoglou
George Kasapoglou - 06.03.2021 17:57

after the burning of ssd card, I cannot see the ssd on my pc, how I can fix this to setup the wifi?

Ответить
kipsta1993
kipsta1993 - 18.02.2021 00:17

I did it once, then before changing cmdline.txt my pi frooze and now it is not booting from the ssd.

I am now trying to reflash the ssd using balenaEtcher on Windows but it fails everytime.

Someone had the same problem?

Ответить
JoFie
JoFie - 04.02.2021 13:37

KingSpec is BIGGEST CRAP ON EARTH!
I used a KingSpec Z3 with a RPi 4 running Home Assistant using Docker. It was "in production" for roughly 3 months before it died, albeit in read-only mode to allow data retrieval.
Will now pay that extra dollar and go for a trusted brand.

Ответить
will2see
will2see - 03.02.2021 18:20

It is quite painful to listen to you.

Ответить
Paul Göttgens
Paul Göttgens - 30.01.2021 11:52

Hi Andreas,
Is this also possible with Hassio? Because I already lost a few sd cards the last years with the raspberry pi.

Ответить
Hannah Y
Hannah Y - 05.01.2021 19:36

Well, it boots, but can't get access to root for some reason even though I did everything as you demonstrated here. So can't get INTO the system. I'm not techy enough to figure it out.

Ответить
Kattie florence
Kattie florence - 05.01.2021 14:52

All thank to @darkphi on telegram he help with bitcoin flips and fresh cc and it work I don't no what I will do x cxxxxx XXp bab. B C V V u ....you are the real deal 💯

Ответить
Timmy
Timmy - 02.01.2021 05:44

Wow!!!!! This is amazing!!! Thank you!!!! 🔥 🔥 🔥

Ответить
ap
ap - 07.12.2020 19:11

can i wait for pi5 or buy pi4

Ответить
Balaji Narasimhan
Balaji Narasimhan - 06.12.2020 15:49

usb booting is worse than emmc , sd card

Ответить
tablatronix
tablatronix - 03.12.2020 17:40

I bought a jmicron nvme adapter, JMC583, useless doesn't work with raspi at all. Suck

Ответить
Javier Salazar Castro
Javier Salazar Castro - 30.11.2020 20:45

Thanks Andreas, I did learn too much about many thing in this special video.

Ответить
Maris Kurens
Maris Kurens - 30.11.2020 01:14

Fails with Samsung 860EVO 1TB. OS : 2020-08-20-raspios-buster-armhf.
Timed out waiting for device /dev/serial1
Dependency failed for Configure Bluetooth Modems connected by UART
Timed out waiting for device /dev/disk/by-portuuid/58ce116e-01
Dependency failed for /boot
Major bummer.

Ответить
Ralph
Ralph - 27.11.2020 02:15

has anything changed since this video?

Ответить
AHMAD KHUSAINI
AHMAD KHUSAINI - 24.11.2020 20:57

Give me please this rasberry pi

Ответить
Jense Arntz
Jense Arntz - 14.11.2020 00:06

Hi Andreas,
I copied the ssh file and wpa_supplicant.conf file to boot directory of the SSD on my PC. When I rebooted the Pi after I edited the cmdline.txt, the SSD LED blinked. However, I also can't access to the Pi. Why can't I access to the Pi? What should I do?

Ответить
Jense Arntz
Jense Arntz - 13.11.2020 14:00

Hi Andreas,

I tried to follow your guild on my Raspberry Pi4. I used 1T SSD.
I have a problem. After I installed the Raspbian on the SSD using balenaEtcher(or rpi-imgaer), I couldn't see my SSD on my pc(Windows 10). It was really plugged in to the pc and recognized by Windows OS. (I checked it in device manager) However, I couldn't the SSD on my computer directory. So I couldn't copy a ssh and a wpa_supplicant.conf file to the boot directory of my SSD. I copied them to the SD card only.
Instead, I copied them to the SSD on the Pi. For that, I mounted the SSD to /mnt/mydisk and copied two files to the boot directory of the SSD manually. The weird thing is when I open the boot directory of SSD, it is empty. Anyway, I copied two files there. And then, I unmounted the SSD again.

I changed the partUUID of the SSD as you advice and replaced /boot/cmdline.txt file with the changed ssd partuuid. And then, I rebooted the Pi. After that, I couldn't access to my Pi anymore.
I think it's because of using of ssh file and wpa_supplicant file. How can I fix it?
I have already installed Raspbian on my SSD manytimes, but I can't find the SSD on my windows OS.

I hope you'll get back to you with the best solution.
Thanks.
jense

Ответить
DixieDawg71
DixieDawg71 - 02.11.2020 22:13

Lol the little pointer with a glove!

Ответить
Stig B. Sivertsen
Stig B. Sivertsen - 17.10.2020 11:22

I guess you know by now but on my Raspberry PI 4 8GB I just installed 64bit version of Raspberry PI OS, updated the bootloader, changed the boot order to SSD and it works great. No need to fart around anymore to get SSD boot to work :-)

Ответить
plflorence
plflorence - 12.10.2020 18:29

I’m sorry your tiny hand made me crack up so much that I had to rewatch a good part of the video lmao

Ответить
Brian’s Brain
Brian’s Brain - 09.10.2020 05:08

And it’s still cheaper than a “good” chrome book

Ответить
nathanas64
nathanas64 - 03.10.2020 06:34

very helpful!

Ответить
Gordon Hall
Gordon Hall - 30.09.2020 04:25

Very cool video, Thank You for sharing.

Ответить
Hexx Bombastus
Hexx Bombastus - 29.09.2020 06:50

The newest firmware for the pi4b has usb boot enabled by default.

Ответить
Andy P
Andy P - 26.09.2020 17:11

dead beef

Ответить