Raspberry Pi 3 USB SSD Boot
HTML-код
- Опубликовано: 22 июл 2024
- Booting a Raspberry Pi 3 from an SSD connected via a USB adapter. Includes demo of the Etcher image writer, which is available at: etcher.io/
Please note that the process shown in this video remains experimental and hence should be undertaken at your own risk.
Please also note that you can boot a Raspberry Pi 3 Model B+ from USB without having to go through the process shown in this video. Only the first Raspberry Pi 3 needs re-configuring for USB boot. The Pi 3 B+ is pre-configured for USB boot.
If you like this video, you may also enjoy some of my other Raspberry Pi videos including:
Raspberry Pi GPIO inputs:
• Raspberry Pi: Using GP...
Raspberry Pi 3 Overclocking:
• Raspberry Pi 3: Overcl...
Raspberry Pi Robotics #2: Zumo Robot: • Raspberry Pi Robotics ...
Raspspberry Pi Robotics #3: Keyboard Control: • Raspberry Pi Robotics ...
Raspberry Pi Robotics #5: Line Follower:
• Raspberry Pi Robotics ...
More videos on computing-related topics can be found at: / explainingcomputers
You may also like my ExplainingTheFuture channel at: / explainingthefuture Наука
You are a natural teacher...with just the right amount of levity and light-hearted banter to keep your students engaged. Thanks.
Just like to echo many of the comments on here. You're videos are excellently presented. Good relevant content and very concisely explained throughout. Keep up the good work. It is appreciated.
Very cool how the Pi just keeps getting more and more versatile.
I always enjoy, and learn something new from your videos, Christopher.
Incredibly useful tutorial! I shared a link to your vid on a group of RPi/Retro gaming enthusiasts on FB. Thank you!
A timely and, as usual, very thorough presentation. Nice upgrade for schools and those on a limited budget by allowing near desktop performance without worrying about high IO demands to the SD.
The extra little commentaries he throws into his videos always crack me up! "...unsafe mode, which is always an exciting thing to do, isn't it?...."
BTW, I just purchased a new Raspberry Pi 3 B+ (June, 2018) and the one-time programmable memory bit (program_usb_boot_mode=1) was already pre-set to 1 at the factory.
Professor, Where can I download that yellow box with the three black arrows so I can spped up my computer to ridiculous speed or is that a secret time compression prgm available only to CompSci Profs???
This is interesting to say the least I'm glad to hear etcher will verify that it went through the first time
It's not every day where I find an old EC video that I haven't seen yet. You ought to do this again with the Pi 5!
Worked first time and runs like a dream. Using a usb drive and boot time is faster. Find these videos really helpful and consider myself as a novice amateur. Thanks Chris!!!
An excellent result then! I'm glad that it worked for you. :)
thanks for that vid. i haven't been keeping up with the raspberry stuff.
i had trouble finding the LED when you were talking about it flashing. i finally found it after a few seconds. it sounds like the SD card boot is still possible too. which is nice. really liked seeing that page on your sight. not certain i have looked over your site yet. that page looks like it would be a fascinating read. that looks like it is the type of information i like.
Yes, the LEDs are hard to see! And also yes, you can still boot from the SD card (the Pi tries SD first, then USB).
I like your videos and the laid-back way you get excited.
Normal person: Yahoo Yippy Whoo hoo yeah!
This guy: Well, that's quite nice, isn't it?
"this old SSD I have lying around"
I wish I had SSDs lying around
A result of my age and occupation! :)
@@ExplainingComputers maybe someday I'll have that many
I can vouch for that. Go though your bins and pack rat kit you will end up with all sorts of hardwre just laying around.
Save your money, or go Panhandle at the Truck stop
@@TheEPROM9 yeah but all mine is from before windows 3.1 agp cards anyone?
Sir, i simply love your videos and how clear you all this stuff. On a normal pc i know how to find my way but with these little one board computers i have to learn alot. Thanks for helping me in all this. Keep up the good work !
Thank you for doing this video. I see that my goal of getting a R-Pi3 to boot in less than 2-3 seconds is an unreality!
Such great videos sir. I'm brand new to all of this, learnt to and built my gaming rig ( first build ) end of last year and I have just bought a Raspberry Pi 3 model B ( Perfect time to buy in on one! ) and you videos help so thank you, keep doing what you are doing.
Just wanted to say thanks for this! I am setting up a RACHEL-Pi for a school in Namibia and have been looking at PiDrive as an alternative to the MicroSD due to corruption and power outages. This is way better!
Cool! That was easy to understand. Thanks! I look forward to whatever you do next week!
:)
Thank you for this most informative video, Mr. Barnatt. Always a pleasure!
Thanks for your vids. Have watched many videos, always well executed and with the correct thought process. Keep it up!
Thanks.
Will this also work on the CM3? If so, it could be a great backup for when the on board EMMC fails.
What's the HDMI recorder and/or screen you used here? I want one of those too but all I came across were super expensive.
It is an Atomos Ninja, sadly no longer made/sold. Alternatives are indeed expensive hardware.
Ah, nice. They have a Ninja 2 now tho as it seems. But sadly it won't do 1080p60 else I'd buy it in an instant.
Tungsun programmable light switch.
I got one for sale.
The Pi has a habit of destroying sd cards on hard resets so it is better in terms of reliability. But what about a read only filesystem? I cant set mine to read only because something always want to have access to the card. But ive got no problems on the beaglebone black. (Logs and stuff are going into a tmpfs folder) any ideas?
Thanks for the tutorial! The mad scientist in me is going to try running RetroPie off of an SSD...stay tuned!
Do report back! :)
An instant classic. Can't wait to try this out with a spare netbook HDD I have and my Pi3. Thank you so much!
Thanks. :) Remember that a Pi will not be able to power an HDD directly.
You make excellent example and tutorial videos.
A true lesson in all forms of Pedagogy.
What is the SATA adapter you are using, and where can I find it?
I need a proper one since my current USB SATA adapter is from an external hard disk.
The one I used came "free" with a Samsung SSD some years ago. Any SATA to USB adapter should work -- the trick, if you are buying one for a Pi, is not spending too much for a USB 3.0 one (which will work, but the Pi only has USB 2.0). So something like this on Amazon (which happens to be USB 3) should be fine: www.amazon.com/Tuscom-Super-Speed-USB-3-0/dp/B01MTCMNAL/ref=sr_1_12?s=electronics&ie=UTF8&qid=1502027806&sr=1-12&keywords=usb%2B2.0%2BSATA%2Badapter&th=1 Note that if you want to connect a HDD to a Pi, rather than an SSD, that your adapter will need a means of powering the drive, as a Pi cannot power an HDD, only an SSD.
Hi Chris, Qx2 - Q1 advice on creating multiple boots for Pi 3 e.g. retropie, raspbian, others on one single USB drive? Q2 if this setup can be done for the Pi zero W? Thanks cheers Russ
Just want to say thanks. Great info as usual. Please keep up the good work.
Mister Barnatt, as usual, a great video on a terrific topic. I want to tell you that I look forward to your next postings. Now I can only wait for 2018 for the Pi 4 and hopefully, it will have not only a USB 3 but with luck something faster s well. Thank you. 73
Great video! Remember that for those of us watching on the TV, the buttons at the end of the video don't display ;)
Yes, indeed. But there are pressures on us RUclipsrs to use end screens . . . They don't work in some Android browsers either.
This was really cool! Didn't know you had to jump through any hoops to get it booting to USB though.
i cant access my rasberry os , it gives me an error saying random : crng init done , so can i do this without actually accessing the rasbian os and doing it there ?
thanks for your work, I need some help.
I want to use this ssd via usb but use mine midi usb at the same time. when I put the two usb it doesboot.
Do you think this would be as easy to do with other Rasp Pi 3 distros, or OSs? E.g. with Freebsd? Or try installing OSs from PINN onto USB SSD?
I ran the vecgencmd otp_dump | grep 17 command and the return was all ready 302.... Is USB boot now standard with Raspberry PI 3 B+ units?
It is indeed -- you only have to do this with the 3B, not the 3B+.
What a wonderful update. I tried that before and no luck. Will try again after update.
@ExplainingComputers
Could you tell me, what the power consumption of an Raspberry Pi 3 is with an attached USB stick compared to running the device without the USB stick attached?
I am wondering if it is better to buy an Raspberry Pi 3 with a bigger SDHC card (64 GB) than a small one (8 GB) + USB Stick.
Hello, just wanted to say I enjoy your videos very much, keep up the good work.
Thank you for the video, great info as always. I too look forward to RasPi having USB 3
:)
play with the new pi4 config.txt file really waiting on that video.. also my pi in the mail ! love your show.. also not this video but a week with the pi.. you showed raspbian dosent handle ntfs by default.. this drove me crazy ended up making my storage ext4. as ntfs is normally used i do a lot of swapping. thanks to your video i actually solved it googled it but got no love or good answers. love your old school pace and uk flare. respect
Thanks. I have been interested in bypassing the SD card. (I think I will wait until it is perfected though and no longer dangerous to my Pi setup.)
@ExplainingComputers I cannot figure out why mine isn't booting. it will either be a blinking dash or I get no signal and no activity from the pi.
I am using a msata to usb3 enclosure and of course a msata drive, 128gb flashed with etcher and retropie 4.5.1.
I am trying to get it working this way so I can install Pixel from within retropie as a soft dual boot of sorts.
I take it back, the 50th try to boot finally worked for a first boot, though it seems to have immediately shut itself down after the initial boot began, powered on again and got 4 blink code, start*.elf corrupted.
Wiped and started over, now won't even try, I give up at least for now.
just wondering if the memory bottleneck still stands and what would happen if you connected a 1tb SSD
Excellent! So good that we can finally boot from something other than sd!
Is it the same procedure for archlinux arm7? config.txt is way too different from the raspbian's one!
Another excellent video about small computing. Love this channel.
Hi thank you. But can't it be booted usb3 ssd with usb2 port of rpi3b+ with low speeds?
You're a knowledgeable and well spoken man.
Thanks for sharing!
Thanks.
I also wish RPi had USB3. That said, have the USB3 boot issues been resolved? Last time I checked (been a while admittedly) it wasn't possible to boot a regular Intel/AMD based PC form USB3 ...
Great video.
I am running my Raspberry 3B+ on SSD just like that.
Works great because it allows me to run server applications that would normally fail on SD cards.
Overally, however, the speeds are not that great, hundred times better than SD card, but the USB2 interface is a huge bottleneck.
This should be much less of a problem with Raspberry 4 on USB 3.0
This video was very informative. Explaines better then others on youtube. Thanks.
Was the SSD formatted as NTFS or exFAT? Would it work with both options? Can you use Berryboot on SSD?
I love your videos. You seem like a genuinely nice guy too. Didn’t have you subscribed. Didn’t realize it but the situation has been sorted!
Superb walk through Chris, thank you.
How much of the SSD storage are you able to use or are you limited by the original image size?
I've tried this method an it only seems to USB boot rasbian and no other OS, has anyone else had this issue? All other OS I've tried have the most recent kernel.
Very much enjoy your channel, always interesting, well made videos.
if you include -y on the apt (apt-get) command it won't ask it you want to proceed.
agreed on the usb3 matter. that would make an amazing difference.
I love this guy. He explains everything so WELL.
Does this only work with Raspian? Or can it boot for example retropie? Got a 64sd card in mine but i could use more =p 250gb SSD or even a 750gb hdd.
Any OS image will need to support the USB boot. I am not aware that such a Retropie image exists yet . . .
It works for me when I use my USB flash drive with the rasbberian strecth desktop, but I am trying to make it work for my SSD OCZ ARC 100 480 GB or my HDD WD blue 512GB. I mounted and remounted copied so many times, and all the kind of solutions in the internet but the boot partition on the SSD and HDD siems to be unrecognized or not initialized by the RPI. I thought that it could be a power supply problem but I have a usb adapter 2.0 with a dedicated power supply and it still don `t works . Can you help me to find what is going wrong with the ssd and HDD. I can use the Hdd as a root and boot from SD without problems but just the 8GB USB flash drive are booting directly from USB host boot mode.
Your command line history is written to the .bash_history file when you exit, so that's why it's still "in the buffer"...
Awesome selection of videos on your channel by the way--very educational and helpful stuff!
Thanks! :)
No problem. I've been working on my Linux certification and my brain is full of (seemingly) useless little factoids that occasionally come in handy. Now trying to learn sed and awk. Great tools but confusing to learn...ugh.
By the way--I also checked out some of the videos on your other channel. AMAZING how well those are, especially the ones about mining on asteroids and settling on the moon. Very impressive!
chris will this work for a mechanical 2.5 " drive thanks
I've tried it and when I get to the point of booting from the ssd, I keep getting errors. I will persist.
It does seem like an interesting prospect.
Can the Odroid XU4, which does have USB 3.0, boot from USB?
Does this only work with Raspbain or can you boot other linux distros from USB?
great ...bur if i like 2 save the command bring an error ( failed to save the document-- permission denied) what can i do ? please help ,, thx
As a suggestion, there is an awesome option of apt-get named "-y". With this option you can say Yes right on the command line not type it later when will always ask if we want to update/upgrade.
Chris, what is the model/source of the USB>SATA adapter used in this video please?
It was a generic adapter supplied by Samsung with an SSD. Any SATA/USB adapter should work.
Has the USB3 been changed to make it bootable now for the Pi4b? Would like to get my drive working with a USB3 and Raspian on my new Pi4.
Not yet. USB boot is still promised for a future firmware upgrade for the Pi 4.
Is it possible to install a Windows x86 based Operating System on the SSD and then try to boot it on the Pi ??
how do you expand the file system with a hard drive, doenst seem to work doing the normal expand file system routine.
Using the latest Raspbian this should not be necessary.
Does anyone know why i have a flashing lightning bolt in the right corner? On Raspberry pi 3
Why create bottleneck with the USB 2.0? Just seems backwards. Also, any way to disable the 5 second drive search?
It would be interesting to see how the r/w speed compares to an SD card. Natively an SSD would outperform an SD card by some margin, but restricted by USB2, I assume this is reversed?
How does the SD card reader interface with the main system bus? Is there a PCIe bus or equivalent internally that could theoretically be used to connect a high performance SSD?
Does the fact that this is only supported on RPi3 mean there is a ROM built into the CPU package responsible for POST + boot? Is the ROM code determined by the IC manufacturer and therfore not something the RPi foundation can have customised?
I hope the foundation are planning a Pi 4 for the start of next year! I think the next release will make it so much faster. I wouldn't mind if there was a slight price increase if it ment getting higher performance!
I think an external drive connected via the slow(compared to microSD connection) usb interface is best suited for a NAS project-which I am currently working on btw- rather than using it for the OS itself.
A neat way of circumventing the write cycle death of flash-based media, if one were to use an 'old fashioned' rotating rust hard drive.
Like always great videos! Thanks for your work.
Can anyone recommend a pre-built, game packed RPi unit with plug & play controllers (USB)- OR a cartridge to plug into my SMS, push power
Is there any performance gain booting from usb? Is there any value in creating a swap file on the sub drive?
Thanks,
Sk
No performance gain (unless you are using a very slow sd card) -- the constraint is the connection interface to both on the Pi.
For booting for the first time,, sd or usb required ...
my query is whether for the next time the sd card will be required for the booting or not ?
No, the SD card is not required for booting on any occasion (if you have a USB device inserted with an OS installed). What you saw int he final segment was a cold boot, without an SD card, and this is how it boots each time. :)
Amazing stuff as always!
windows 10 pro is install same mathed in RPi 3 ????? PLEASE TELL ME INSTILLATION OF DESKTOP BASED WINDOWS 10 IN RPI 3.
The Pi is ARM based, Windows in x86. Some claim to be running full Windows on a Pi, not never explain how . . .
This video came just right! I fried my first SD card 2 days ago while playing a browser game for a bit to long...
Can you boot back from an sd card with another version of Raspbian or some other OS like the LibreELEC?
Yes. The Pi will try to boot from USB first, then from SD.
Before April I was doing this by editing cmdline.txt on the SD to boot from a USB flash drive, but that no longer seems to work on a fresh install of the latest version of Jessie... I'm now booting to an SSD and running Seafile praying for more memory and USB 3 on the next iteration!
"This Old SSD I have lying around" are we here already? I am still using hard drives here...
Kuma You gotta steal them from work. I liberated a 120GB SDDUltra which had been on a spare desk in design area for weeks. £2 usb connector from RUclips and I was in business.
The word on the web is soon it will be 'I just had this old 1TB m.2 lying around' true story.
Just the usual RUclips guys stuff, "Oops, I jist found this Gtx 1080Ti lying around"
hell I still use a ata drive for a disk drive
and I just found this core i7 8700k processor lying around for a test with this pi. soon! 😅
I got the WD 1Tb PiDrive with BerryBoot, but i cannot really get it to work properly.
I don't know too much about all this, which is the problem.
I got Retropie installed, and in the Retropie menu nothign works, it starts nagging about a platform error or something. Searched around and found some things on forums, but none of the commands work at all, not even ones to check or worse set the platform etc. So i think i am missing somethign extremely basic, but i don't have a clue anymore :(
Have any idea where to go look for answers or anything ?
If not, i have a useless 1Tb WD PiDrive.
Also got the UUGEAR 7port USB Hub which seems to be annoying with power, also don't really get the problem there, constantly the Pi is nagging about power, but i have no idea anymore.
Yes, i am a noob, i just wanted a good system for a nice DarkNES (yes, puns) with enough storage for Hyperpie with videos and enough USB to support 4 controllers, and the HD, and keyboard and mouse which will likely not get much use and often will not be plugged in at all.
If you did not want to toggle the boot bit. I believe you could also change/point the boot loader on the sdcard to load Rasbian off of the SSD/USB.
I'm trying the same but with a 1TB HDD and the berryboot is taking a very very long time with the message " formatting data partition". Is this normal? How long would it generally take for this process to complete. Thanks in advance for the answer.
A 1TB partition may take a very long time indeed for BerryBoot to format (or resize).
Today I tested it with a usb2.0/sata docking station for 2.5"/3.5" Drives and a 3.5" WD Blue 160 GB hard disk. This works great.
The only problem is you can't resize the hdd with gparted after you started RPi 3 Jessie. I think it must be earlier, after fetching the image on the hdd.
The new RPi 2B v1.2 has the same SoC as the RPi 3B the BCM2837. (ARM Cortex-A53 quad-core processor 900MHz - Broadcom BCM2837).
Only the CPU speed limit has down to 900 MHz en it's now 64-bit.
Thanks for this great video, never thought it was so simple!
Thanks for this feedback, which is really useful for others here. In my tests Raspbian resized its partition on first boot. But if this does not happen, you should be able to use the Pi's preferences/setting panel to do a resize.
My wife works for a 3d fabricating company that has been using Pi. They configure them for controlling installation elements, including interactive media for their displays, like you see in museums, zoos, lobbies etc. They gave me a 3B to play with and all has gone well until I've been trying to boot from usb.
I first bought an ADATA SU650 120 gb ssd, couldn't resist at $22 on Ebay. I used Raspian's own "copy SD card" app from nthe desktop intended for cloning, which wrote to my SSD while plugged into the RPI usb. Worked great, looks good. For the moment, the ssd is being powered by an old all-in-one powered setup used for benchwork with harddrives (don't know what they're called. It works as a drive but won't even attempt to boot.
For testing, I cloned the same way to a 2nd but greater capacity sd card, via usb card reader. This cloned card works perfectly as a replacement card in the sd slot, but is problematic if I try to boot it via usb (original card has the same troubles). The attempted boot achieves varying results which I guess can happen because the read order is not consistent. There has to be a simple fix in the way of a pointer or moving file/s, but I haven't the experience to do more than keep searching.
With the cloned sd I've even gotten to fully booted only to see it die immediately. More often it freezes during post at one of 2 places. Keeping an sd internally doesn't help. I am guessing that maybe the solution of leaving the boot partition on an internal sd, pointing to root via the usb should work, but that should not be necessary. I can't find any info that might help. It was suggested that the partition order can be an issue. I was wondering if Etcher might do something different, but it doesn't make sense that the Raspian native copier wouldn't work for using a cloned disk via usb, especially with how long they've had if it needed a fix. Noting again the cloned sd does work as an internal drive replacement.
casePi is not the plus and needed the otp bit set. Does only the plus arrive with the OTP already set? If mine should have come already set, maybe that remains a problem even though I manually set it.
Good video! A bit back I used the Raspberry Pi on Berryboot with a 2.5" HDD and the card. It slowed it down while loading up but I liked the assumed reliability and terabyte storage.
However, I updated/upgraded lately, a question was asked on file ownership/login. Said "no" to keep settings. After that it never worked on reboot. I dumped the drive for the back of the TV and gone back to card only.
My non-SSD main pc has KDE Neon Linux on a nice fast pendrive with swap in ram and /home on HD. Leaves win 8.1 for dead on a cold reboot.
will this work with all USB extern harddisk? or what do i need to look out for ?
It should do, but you will need to power the drive separately, as the Pi cannot supply enough power for a HDD.
I tried this using a terabite usb drive. But the power handling was such I had to power the drive from a separate source using a modified Y splitter where the dc power lead plugged into the rpi was cut off. Do you have another solution?
That must have been a very power-hungry USB drive. Here I powered an SSD with no issues from one Pi USB 3.0 port.
How do you record the Boot process?
it's not a software recorder running on your pi, right?
is it Atomos Ninja (2 or 3)?
Sorry, give the comment before finish watch the video.
Hi
I have reasons to believe, my SD card slot is damaged as I tried everything given on internet to solve it but nothing works I mean to solve green led flashing 4 times.
I saw your youtube video which shows how you can boot from USB disk instead of SD card, which I feel could be PI saver for me otherwise unable to use it. so just wondering how can I enable USB booting instead of SD card? as I am unable to run my PI so can't run those commands which make config based changes... any idea?
Once you set the one time fuse to boot from usb can I still boot from SD card if needed ?
I'm pretty sure yes