“Here is the guy with the Swiss accent.” I immediately knew i was in the right place. Loved the video, thank you sir!!!
@AndreasSpiess
4 жыл бұрын
You are welcome!
@AtvAppock
4 жыл бұрын
Your methodical approach and clear instructions that don't assume previous knowledge is very refreshing! Excellent video!
@AndreasSpiess
4 жыл бұрын
Thank you!
@TodorKatsarski
4 жыл бұрын
Quote of the day: "I lost too much of my lifetime searching for undefined errors"
@AndreasSpiess
4 жыл бұрын
:-)
@lunsj
4 жыл бұрын
Apparently what I needed today was a Swiss man showing me his "pimped raspberry". Subscribed!
@nickshavermatson
4 жыл бұрын
It had a strong contender with "df -h shows us what we always wanted... a huuge diske"
@kennethfribert6074
4 жыл бұрын
Yesterday I went from RPi4 with SD card and hassio, to RPi4 with SSD drive and raspbian, and supervised ha, works perfectly so far! Thankyou very much for the run-down of this.
@AndreasSpiess
4 жыл бұрын
Good to hear that hassio also works!
@jamse22
4 жыл бұрын
I never thought of the limitations and of the risk implied by the use of a SD card with my PI. I just ordered one USB adapter. Thanks :-D
@AndreasSpiess
4 жыл бұрын
If you had no problems, maybe your usage patterns were not deadly for your SD cards...
@buzzdx
4 жыл бұрын
while technically it is true that micro sd cards are not made for this, in many, if not all, cases it will not matter. current sd cards use a mechanism to distribute write operations across all free card space. so if you don't use up all the space it has plenty of it to use. i've been running a pi2 for years (at least 2 years) without any issues, still using that same card in a pi3 now. just turn off the swap partition as an additional step in reducing writes.
@EinzigfreierName
4 жыл бұрын
SD cards are so cheap nowadays. Just keep a backup and replace the SD card if it fails :). Depending on your application, you could make the SD card read-only to completely avoid this problems. But this would require tweaking the LINUX installation a bit, like making things like /var/log and /tmp a RAM filesystem.
@iflnr978
4 жыл бұрын
This is good to know because I am collecting parts to get a pi 4b going but that’s because I didn’t know the pine rockpro64 does this better utilizing PCIe x4 with either an NVNe m.2 or 2 SATA ssds, as I understand it. Search: Linux Unplugged episode 349 Arm: a new hope. The cost is a little more for the rockpro64 and for the NVMe. Pine has a community, not as big as Rb Pi, but Linux Unplugged also has a community on telegram, mumble and discord
@OggieDoggie
4 жыл бұрын
Thanks @iflnr34 I was looking at a pine phone but didn't look at their sbc's I will have to go back and look. I have fallen in love with sbc's and while I don't use them for anything critical yet I love building different things with them. Nas, game emulation, tv Plex server etc
@fino5014
4 жыл бұрын
Danke Andreas! Endlich läuft mein Pi auch auf Warpgeschwindigkeit. Einfach und verständlich - weiter so!
@AndreasSpiess
4 жыл бұрын
Danke!
@realbss1
4 жыл бұрын
Again a great video with a lot of research in the backgroud ! As I read so many bad news ( bad wifi on high HDMI resolution, design flaw on the USB-C port that causes wrong detection of the device and getting too less power ) about the pi4 I'm curious about your experiance in a long term, maybe something for a future video !? :). For the video itself just a little note from my side ... : First and most important is not really the SD card you are using, it's more the OS that you are running having the lifetime dependency. The more write cycles it performs for whatever reasen to more "wear" the flash memory will have. I'm running an Rapi ( no adddition, it's really the initial one ) on the same SD card for many years now. It's not running debian as I'm not really a friend of that game, I installed pidora ( mainly an raspberry adapted fork of fedora 20 ) on that thing which is mainly playing an interface role in my network ( networkserial interface for my video projector ). In the meantime two power supplys gave up but not the SD card. A second RasPi is acting as an interface between 4 (grid) power meters with modbus interfaces to network for home automation and car charging control, running as well 24x7 for nearly 4 years now. This one did in fact kill an SD card already ( cheapo noname thing ) Second and not even less important is the fact that wear leaveling is mainly dependant on a function called "trimming". Trimming does basically telling the flash controller that an erased block is free for reusage as the flash controller is not aware/does not care about the installed filesystem. So trimming is a must for increased lifetime of an flash storage as only that way the flash memory controller is able to use "less used" blocks for the next write operation. For example is you write a fresh disk from beginning to the end with whatever you want wear leveling is basically not working any more ! That's the reason "SSD drivers" are needed on older OS versions to add the trimming function and have wear leveling working properly. Additionally you always need free space on the disk to have it properly working, as a rule of thumb max. 75% fill of the disk ... And finally : ANY flash storage device is having wear leveling technology, might be better or worse from case but it's there. No matter if it's 24c02 chip memory or 1TB SATA SSD. The question is always how many write cycles does the vendor specify for each individual storage block ( they are not working on a bit/byte level ) with what data retention period ( most times 10 years ). To overcome such physical limitations there is always a "intelligent" controller to take care about the devices health and increase lifetime/reliability. For example Tesla's infotainment system is having a tiny but important software bug - a not disabled debug logging ... That causes the flash storage to fail already after 2-3 years in the worst case. To overcome all these flahs memory issues you might consider a network boot for the Raspi and have it using a network drive to store data ... (ok, not really possible with my old Pi's ) I guess you'll have a NAS anywhere aroud anyway, additional benefit : A reboot will set the device back to the engineered state, bad time for hackers. Downside is bad maintainability for the OS ... As a hint : You do not need any special tool for cloning/setting up a raspi boot device if you already run Linux ... dd might be your (best?) friend for that task.
@AndreasSpiess
4 жыл бұрын
Unfortunately my Raspbery is the only device which operates 23/7. So I needed a solution without network storage. And I do a lot of logging which dreates small junks of data which have to be written to the disk. So my usage pattern is probably not very typical. I once made a video about SD cards and then did not find any trusted information on the behavior of SD cards in a RPi. The only thing was: The manufacturers wrote: Do not use it for such situations!
@realbss1
4 жыл бұрын
@@AndreasSpiess I think (just guessing) the main concern in such conditions might be temperature and derived from that lifetime along with reliability. Computers usually demand reliably "disk space" - funny as you for sure will always choose to keep the holiday recodings on you camera ... In addition with missing trimming ( flash memory controller not knowing about free space ) it might lead to kind of worst case use case scenario ... But as you state : Logging (aka write cycles) is the thing causing the problems, especially if the data to be written is smaller than the smalles writable memory block for the memory controller. In such cases the memory controller modifies the data and writes the whole block again, as long as it continues on the next block ... (and writing causes a bit of heat, more writing more heat) An other option could be to have automated (encrypted) backups to online storage to keep the valuable part of the data on your disk. So seperating the data into "could be lost" ( like OS itself ) and "never loose it" like programs, configuration, pictures, ... . That way you'll just backup a part instead of all, in case of failure you'll have some backup ready to recover to a new (local) storage.
@AndreasSpiess
4 жыл бұрын
Concerning backup: Maybe you did not (yet) watch my Docker video ;-)
@Average_Geo
4 жыл бұрын
Woohoo! Thanks for the clear explanation! I look forward to upgrading some of my Pi4s :)
@AndreasSpiess
4 жыл бұрын
Thank you! I thought, a bit of an overwiew helps. I first struggled a bit till I saw how simple it is.
@Average_Geo
4 жыл бұрын
@@AndreasSpiess Wow! A spare 256GB NVMe with a QNine NVMe to USB adapter yielded a 9008 speed. I like it! On to upgrading other Pi4 systems! Thanks again!
@AndreasSpiess
4 жыл бұрын
So you have the "fastest horse in the stable"! Cool.
@Average_Geo
4 жыл бұрын
Only for the moment until the USB SSDs arrive later today. I don’t believe they will be as fast, but they will be much faster and more reliable than the SD card!
@Average_Geo
4 жыл бұрын
Wow! Off brand THU SSD USB3.1 from Amazon got 81xx score. That’s amazing! Why haven’t I done this sooner?!
@roysigurdkarlsbakk3842
4 жыл бұрын
"This SSD will last forever" famous last words…
@cpcnw
4 жыл бұрын
No one will need more than 640Kb of RAM !!! Yeah, I know it's an urban myth but it's a good one!
@CarneSagrado
4 жыл бұрын
HAHAHA! the part UUID is "DEADBEEF" !!!! nice touch, James!
@AnthonyNutting
3 жыл бұрын
Also noticed that.... Classic!
@privatepreviewer9167
4 жыл бұрын
I turned 24 today. . . I know I am getting old. But I am excited, because you are a good inspiration for me. 60 years old and still having fun learning. and I thought the phrase " you can't teach an old dog new tricks" is for real. " and you are a perfect example that the phrase is a lie. :D Thank you
@siku5it
4 жыл бұрын
Followed this and all worked. Thank You - With a Kingston 120GB and Orico Enclosure got a score of 8196 . :)
@AndreasSpiess
4 жыл бұрын
Thank you for sharing your experience!
@johncrawford1242
4 жыл бұрын
Andreas Spiess Thank you very much for this video, I have ordered an SSD, but just for practice I have just used a USB3 HDD and it works fine.
@AndreasSpiess
4 жыл бұрын
Good to know. The RPi4 has more power on the USB connectors, if I remember right.
@wclintdavis
3 жыл бұрын
Thank you, Sir. This works unlike many other videos out there. You've saved me, once again!
@AndreasSpiess
3 жыл бұрын
This is an older video. Today, Raspberry OS has native support of SSD boot. You just have to upgrade to the newest version and select USB boot. Much easier...
@wclintdavis
3 жыл бұрын
Thank you, @@AndreasSpiess, I have the newer OS and couldn’t get it to work originally but have since learned that was from a bad USB cable. Since it boots just fine using this method from the SSD with the SD card, I shouldn’t have an issue if I just go to raspi-Config and choose boot from USB and restart, should I? Then I can remove the flash?
@notofinterest
4 жыл бұрын
Nice to see hassio as a container in a docker! I use same for my homeautomation and its great!
@springwoodcottage4248
4 жыл бұрын
When I first became aware of USB pen driver, what seems like yesterday, but which was many years ago, I bought a 1 giga byte for £54 & was delighted with it & thought these would make great hard drives. I asked an industry expert who told me that they were too un-reliable & too expensive & would never happen. Not the first or last time an expert has told me stuff that proved inaccurate! Thanks for sharing!
@AndreasSpiess
4 жыл бұрын
You are welcome. We all remember Steve Ballmer's remark about the then new iPhone ;-)
@firstorderexperiment6297
4 жыл бұрын
Great video, as always. Could you possibly add data on total boot time for the SSD vs the SD card? Or I'd love to see a side-by-side comparison between slow SD, fast SD, and SSD.
@graemeottey
4 жыл бұрын
Love the strong hand demonstrating the sd card
@AndreasSpiess
4 жыл бұрын
:-)
@asiw
4 жыл бұрын
Excellent, thank you. Pity it's so complicated but as usual a very clear and helpful video explanation. Bye the way, happy birthday.
@AndreasSpiess
4 жыл бұрын
I can assure you, it is simpler than you think. Just a few very simple steps, if you stick to the commands given in hte blog. Maybe I will do another video on Thursday with a simpler method (from some comments)
@planschmuh
4 жыл бұрын
As a non unix user, I was able to boot my RPI 4 from ssd. Thank you!
@AndreasSpiess
4 жыл бұрын
You are welcome!
@thomashvnmusic
4 жыл бұрын
Linux is not UNIX.
@AndrewAHayes
4 жыл бұрын
everything to do with Pi4 seems to take a long time compared to 3B+, I am also waiting for an optimised version of Retropie. I love the channel +1 SUBS
@RicardoNapoli
4 жыл бұрын
Happy Birthday Andreas !!! Buy yourself tons of great gadgets !!! We love your videos !!!
@AndreasSpiess
4 жыл бұрын
Thank you. This year‘s Gadgets will probably have a longer journey from China :-(
@mattsaxey529
4 жыл бұрын
Just saying "I liked this," to help with algorithms...
@AndreasSpiess
4 жыл бұрын
Thank you!
@pulesjet
4 жыл бұрын
It would seem the Squeaky Wheel does get the oil ? The lower Baud Rate Narration and Audio Delivery was much appreciated. See ? Painless for you and a joy for me. Good Stuff from you Sir. Watching your video's will be much less stressful on my end. I'll no long need to rewind over and over and over again to gain the TOP SHELF information your conveying . You seem to have become quite the expert on these Raspberry Pi devices. The Solutions your coming up with are simply not available from any other sources I know of. Thank You Yet Again.
@AndreasSpiess
4 жыл бұрын
Thank you for your nice words. We KZitemrs always try to be a little "special" ;-)
@ravenvg
4 жыл бұрын
Your used UUID... "Dead Beef" string is normaly used by memory corruption tools to initialise memory checked for boundry errors.
@AndreasSpiess
4 жыл бұрын
Maybe James' dayjob is related to something like that...
@ravenvg
4 жыл бұрын
@Graham R shure :). We always used b44df00d for stack corruptions and the stack traps and the b33f for heap.
@dieSpinnt
4 жыл бұрын
@Graham R Yes, 0xBAADF00D is used by Microsoft's debug HeapAlloc() to mark uninitialized allocated heap memory
@Spiderelectron
4 жыл бұрын
@Graham R b00b135
@norsk54472
4 жыл бұрын
I like DEADC0ED myself
@MarkDuman
4 жыл бұрын
Perfect timing! Was able to follow the step and get my SSD drive working. However half way through my ssh stop working. Late here will figure it out another day. Thanks from a long term subscriber...
@AndreasSpiess
4 жыл бұрын
Glad to read it. Maybe you did not copy ssh to the SSD. Then it stops. I mentioned it in the video because it happened to me, too.
@MarkDuman
4 жыл бұрын
Andreas Spiess, resolved! From pi terminal type sudo rasp-config. Select 5 Interface Options. Select F2 Enable SSH. Select Yes. Exit Config and reboot. Now I can remote in with putty. While in the config also setup time zone.
@robmckennie4203
4 жыл бұрын
d34db33f works well, I also sometimes use b16b00b5 depending on the situation
@Electronieks
4 жыл бұрын
Rob Mckennie big boobs
@AndreasSpiess
4 жыл бұрын
We better do not tell the children what it means ;-)
@enjibkk6850
4 жыл бұрын
@@AndreasSpiess Aren't we the fools for beliving they do not already know ? 😁
@BroodPitt
4 жыл бұрын
Don't forget the c0cac01a
@kiowablue2862
4 жыл бұрын
@@BroodPitt Or the badcafe
@beatarnet4822
4 жыл бұрын
Thanks Andreas for the very useful video and all the comments from other users. Therefore I used the "tweet length" abbreviation and everything went well (on the SD card there is a full docker installation with Mosquitto, Node-red, InfluxDB and Grafana) according to your video #295. After the reboot the speedtest ended up with 7900 points (5 times faster as with the SD-card). The only thing I had to change after the reboot was the IP-address for the influx-database but thanks to portainer, the new ip-address was easily found and changed.
@AndreasSpiess
4 жыл бұрын
You should be able to use influxdb:8086 from Grafana. Then you are independent from the IP address.
@beatarnet4822
4 жыл бұрын
@@AndreasSpiess Merci Andreas. The same with Mosquitto in Node-red: mosquitto:1883
@bradquinn4161
4 жыл бұрын
If you use the usb-boot.zip utility from the official raspberry forum it will do this automatically. I have been using my Pi4-4GB this way since August.
@kwinzman
4 жыл бұрын
Yes what is shown in the video is nothing new. Still what I want to see from Raspberry is actual bootloader USB support. I remember the bootloader github showing that they were working on network boot first.
@bradquinn4161
4 жыл бұрын
@@kwinzman Yeah, I am not sure if PXE boot is done yet or not, but either way I would not expect direct USB boot for the Pi4 before July(just a guess).
@kwinzman
4 жыл бұрын
@@bradquinn4161 Thanks! I found the link (PXE is at least in beta): github.com/raspberrypi/rpi-eeprom/blob/master/firmware/raspberry_pi4_network_boot_beta.md
@kwinzman
4 жыл бұрын
from the same git repo: "2019-11-18 - Git b6a7593d6 (BETA) RC1 First release candidate before this beta is moved to a stable release series.[...] * Various internal refactorings to prepare for *USB MSD storage boot* in the next beta-series.[...]"
@AndreasSpiess
4 жыл бұрын
I know that this is not new. That is why I am frustrated. As said in the beginning of the video, I waited (too long) to do it, also because I feared it a little. This is why I did the video. And the views show, that I was probably not the only with this problem...
@pulporock
4 жыл бұрын
Finally I can use a raspberry pi for some commercial applications; I always hated the SD card. And now subscribed.
@AndreasSpiess
4 жыл бұрын
Welcome aboard the channel!
@flintham
4 жыл бұрын
Great video as usual - Thank you. Can you confirm how, if any this decreases the risk of corruption if the power is removed without shutdown? Is there still a high chance of corruption and being unable to boot and still the best way is either R/O FS or fitting a UPS? Would be great to get peoples comments.
@lorandjanosi4760
4 жыл бұрын
Tested and works well with another type of SSD to USB adapter also: Unitek USB3.0 to SATA6G (with UASP Function!). Great tutorial based on James description, thank you, indeed my RPI4 got speed! Recommendation for other users: after changing the PARTUUID in /boot/cmdline.txt + reboot double check if the change is still there. In may case I had to repeat this step to boot correctly from SSD.
@AndreasSpiess
4 жыл бұрын
Thank you for sharing your experience!
@lorandjanosi4760
4 жыл бұрын
About the UASP function that makes the speed difference: www.jeffgeerling.com/blog/2020/uasp-makes-raspberry-pi-4-disk-io-50-faster
@G6EJD
4 жыл бұрын
Very useful, thank you for the information, I now have my RPi4 booting from SSD, like you I have been waiting for the RPi Foundation to implement their solution, but I give up waiting.
@AndreasSpiess
4 жыл бұрын
Their blog says it is still months away. So I gave up waiting ;-)
@cbmamiga5239
4 жыл бұрын
Loved the video, my friend. I've had my Raspberry Pi 4 (4gb) on a shelf for the longest waiting for software to mature for it.
@AndreasSpiess
4 жыл бұрын
It is now my „work horse“. The software I use works now :-)
@Evilkingus
4 жыл бұрын
I know what you mean. I bought two of them around release, thinking that stuff would happen soon. Nothing has happened - it is still unusable for Kodi, for instance, you cannot boot to ssd. I kinda feel rpi 4 is somewhat of a letdown - everybody knows it, but noone wants to admit it.
@jamess1787
4 жыл бұрын
I remember doing something similar for a Linksys WRT54G. 😂. Pivot from 2MB eMMC/flash to SD card, and remount as R/O. 😝
@AndreasSpiess
4 жыл бұрын
I think this is a "Linux thing". So it might work for others, too
@jamess1787
4 жыл бұрын
I hope the data pixies are on your side, may your data be untarnished and remain safely accessible indefinitely. 😜. Never jynx data loss!
@petelynch9468
4 жыл бұрын
This is great news. I have many pi's that are embedded in devices. The worst aspect is the unreliability of SD cards. They seem to die between 6 and 12 months after installation. Even though most of the fast changing data is in RAMDISK. This will be a great help. Thanks.
@AJB2K3
4 жыл бұрын
d34db33f = Dead Beef?
@JohanLofgren
4 жыл бұрын
I saw that too! Who is the joker?
@jensgoerke3819
4 жыл бұрын
@@JohanLofgren Someone at IBM, back in the early days of computers, decided to fill unused memory with this easily recognizable value.
@captainnerd6452
4 жыл бұрын
Jens Goerke I think someone generated all the words that can be made from hexadecimal A-F, DEADBEEF is the easiest, and a good one for filler.
@parishna4882
4 жыл бұрын
Ludicrous Gibbs that's good lol
@cyrylthewolf
4 жыл бұрын
We use that as a dummy MAC address in the data centers, too. They used it because the letters A-F are all hex friendly. DE:AD:BE:EF:DE:AD
@0dyss3us51
4 жыл бұрын
I can tell you are a pro since you use the Flirc case! Ha just I already knew that love your vids! You are right we need SSD native support
@AndreasSpiess
4 жыл бұрын
I was one of the first with a Flirc video...
@martin2250
4 жыл бұрын
Hi Andreas, I have a technical question: does the Pi 4 with USB-SATA adapter support the TRIM command? (try 'sudo fstrim' in the root directory of the SSD) Back when I did this to my Pi 3 with a USB-SATA adapter, the fstrim command would fail. I've traced this back to a USB transfer type that wasn't supported by the Pi 3's USB controller. (The same adapter on my PC supports fstrim just fine) To anyone else reading this: this problem can be avoided if you use a proper USB SSD instead of a SATA SSD with an adapter. fstrim works fine on USB drives and SD cards.
@bewolfzr9969
4 жыл бұрын
martin2250 good to know
@AndreasSpiess
4 жыл бұрын
I did it and it came back after a while without a message.
@absurdengineering
4 жыл бұрын
Uh, “unsupported USB transfer type” - whaaat? There are 3 USB transfer types and any host not supporting them all would be useless, unless for a very limited/special application. What you’ve ran into was the USB-SATA bridge not supporting the encapsulated trim command properly. There’s some brain dead firmware in many of those bridges and it acts this way…
@martin2250
4 жыл бұрын
@@absurdengineering/videos I'm not sure on the terminology, you're right the three transfer types should be supported. Anyways, whatever it was that prevents fstrim from working is disabled via a kernel config option in the official raspberry pi kernel. I've tried building my own kernel with it enabled, but turns out the hardware doesn't support it.
@martin2250
4 жыл бұрын
@@AndreasSpiess/videos Thanks!
@jrioublanc
Жыл бұрын
Even after a couple of years this video is still useful, thanks.
@AndreasSpiess
Жыл бұрын
The Raspberry Pi 4 have now USB boot buitl-in. So it became much easier to get the needed speed.
@DumahBrazorf
4 жыл бұрын
Andreas, were you trying to remove and recreate the partition where the os you were using resided?
@AndreasSpiess
4 жыл бұрын
No. I recreated partition 2
@joealtona2532
4 жыл бұрын
Andreas, exactly, the root partition is number 2. Have you tried sudo raspi-config -> expand_rootfs ?
@AndreasSpiess
4 жыл бұрын
No. I just followed James' instructions. And it worked.
@GerardHammond
4 жыл бұрын
I love the micro pointing hand! Very nice touch
@AndreasSpiess
4 жыл бұрын
Thank you. I got it from my wife!
@Tony770jr
4 жыл бұрын
I wonder why they didn't add an eMMC slot like other SBC's especially for the Pi4?
@AndreasSpiess
4 жыл бұрын
You have to ask them. Maybe price?
@JasperJanssen
4 жыл бұрын
Because they already had the USB boot option.
@charlesgodwin
4 жыл бұрын
I suspect we'll get something like that soon. They have released stuff before at the end of February. Maybe M.2. a Pi 4+? The USB boot is a good solution but uses a port and leaves cables hanging out. I'd like built in storage. But we have to remember the Pi mission is not to satisfy all we techies, but to teach.
@Sarge92
4 жыл бұрын
price price price as much as i love some of the other brands they listen to all the insane stuff there customers want and the prices get out of hand you want emmc? ok oh now you want sata too? alright then oh now youd like it to use a intel x86 cpu? fine i guess oh now your wanting onboard wifi bt and usb 3 ? well i mean i guess that alright introducing the new sbc 9001 retailing for 120 dollars as for other sbcs they technically dont have emmc and do at the same time they use emmc but they run it via the sd card which will grant a speed performance over sd due to emmc being a faster memory type but will only go to the max speed of the sd bus
@Sarge92
4 жыл бұрын
@@charlesgodwin i can say no not likley i can find you the link but ebens been verry verry clear on the foundations goals they dont want to nor plan to release hardware constantly and there previous track history has shown this pi 3b+ ONLY got released because they came into a supply of really really good priced chips that made sense to offer the upgrade they had no other plans to upgrade as the pi3b+ met there current needs for the foundation (getting kids into coding) they love that we use them for the projects we do but there primary focus is getting theese into the hands of school kids pi4 will most likleybe like the pi3 and will be aimed at lasting them 4 years however they could MAYBE release a model with a slightly better clockspeed in the future if they get a good deal on some cpus but most likley i anticipate there next releases to be focused on the zero line the cm3 (cm4?) line of products as well as expanding there current offerings of hardware accesories
@etk4257
4 жыл бұрын
This procedure worked also for my old RPi 2 version 1.1 and a Samsung Portable SSD T5 having 500Gb. Great! Thanks!
@AndreasSpiess
4 жыл бұрын
You are welcome. But I am not sure if it is needed. At least the Pi3 has native USB boot.
@meteor8076
4 жыл бұрын
Would be great to make a RAID 1 array and see how it works on Raspberry Pi
@AndreasSpiess
4 жыл бұрын
So far I had no need for that. Maybe somebody else did it already?
@Loachie90
4 жыл бұрын
I don’t know who you are but I’m subscribing after reading the comments
@AndreasSpiess
4 жыл бұрын
Welcome aboard the channel!
@dougle03
4 жыл бұрын
Does anyone know of a tutorial to migrate a HASSIO installation from SD to SSD? I don't think this method will work as HASSIO is a complete iso based on docker....? Thasnks
@AndreasSpiess
4 жыл бұрын
I do not know HASSIO. My Docker containers were migrated in minutes: Install docker and run the docker-compose file and restore the data. But I used IOTstack from the previous video where all data is in one location.
@Average_Geo
4 жыл бұрын
Migrating my HassIO installation is on my plans in the next couple days. I’ll try to remember to let you know how it goes.
@dougle03
4 жыл бұрын
@@Average_Geo Would be good to get a tutorial going. Thanks
@dougle03
4 жыл бұрын
@@AndreasSpiess Thanks for responding Andreas. I'll do some more digging. I've moved NodeRed to a Docker container on my Synology Nas to lift the load a little on my Nas, but of course the main DB is still running from an SD card so impending doom is sure to follow!
@cybermaus
4 жыл бұрын
Works, perfectly. Thumbs up. (you get those anyway, even if I do not repeat the build).
@AndreasSpiess
4 жыл бұрын
Thank you for your support!
@alschimmi
4 жыл бұрын
Grüzi Andreas, thanks allot for this grate video! As I like to run Ubuntu Server on my RaspberryPI 4 on an SSD I've tried this hack and sadly it will not work with Ubuntu Pi... The boot process will no longer take use of the PARTUUID. It will search for the partition label instead. There are two labels used 'writeable' and 'system-boot'. The system-boot partition of the /dev/sda1 will automatically being detected and mount to /boot/firmware from the SSD. But the root partition still points to the SD... But there is a little trick: The procedure is similar to yours. 1. Just put the same Ubuntu Pi image on the SD card and on the SSD. 2. Plug in both at the same time and boot the Raspberry Pi 4. 3. Login as normal with default credentials. 4. Then change the label of the root partition of the SD card with the following command: 'e2label /dev/mmcblk0p2 root'. 5. reboot and you are done (Using the default credentials again). I've tried it with Ubuntu Server 19.10, but I guess it will work with Ubuntu Server 18.04 LTS as well... Uf Wiederluege, Jürgen
@AndreasSpiess
4 жыл бұрын
Thank you for the info. Maybe it will help sumebody with Ubunto on the RPI.
@Conta_Google
4 жыл бұрын
it worked for me. thanks a lot!!
@KunouJS
4 жыл бұрын
No way! With just 'sudo e2label /dev/mmcblk0p2 root', it actually worked right away after reboot! I was very skeptical but gave it a go. Wow. Thank you!! From an SD Class 4, the score was 163. With an SSD, it's 6955! I'm on Ubuntu Server 20.04 w/Desktopify.
@dl8cy
4 жыл бұрын
Well done Andreas! My sunday morning habits are in the right place again!
@AndreasSpiess
4 жыл бұрын
VEry good. Mine also. I missed the many comments last week. It was a very quiet Sunday ;-)
@WJCarpenter
4 жыл бұрын
I have that same Orico USB drive case. (I like it because I have a bunch of USB drives, and the clear case makes it easy to know which is which.) It didn't work for me, alas, so I switched to another USB drive case. I noticed in previous adventures with RPi that some USB dongles did not work directly with the RPi USB ports, but they did work when connected through a cheap USB-powered USB hub. Since my USB hub is super cheap (I think a vendor gave it to me at a trade show a long time ago), performance probably suffers. It didn't matter for what I was doing then, but it would probably matter for using an SSD drive. Even though USB seems to work pretty well everywhere for everything, it looks like the RPi might be a little bit fussy. I don't know if that is a problem with the RPi or with the USB devices. Thanks for another great video.
@AndreasSpiess
4 жыл бұрын
We should get native USB boot in the next weeks. So things might change again...
@stu110
4 жыл бұрын
Thanks, I have same orico case I brought for this same purpose, I will do this now 😁
@maxpenfold8699
4 жыл бұрын
Super merci Ändu! Wirklich ein super Video ging alles auf anhieb. Jetzt 7 mal Schneller, Thank you.
@AndreasSpiess
4 жыл бұрын
Bitte, gern geschehen!
@leongor4734
4 жыл бұрын
Amazing! So thanks. It works for me with b16b00b5! Like a charm. Love the video so much!
@AndreasSpiess
4 жыл бұрын
Some people like it dead, others alive ;-)
@therealjackfisher
4 жыл бұрын
Interesting little device. Some people use this as Midi host, others, as audio interface, and some use it as portable DAW. This micro computer is trully powerful.
@AndreasSpiess
4 жыл бұрын
Yes, you are right.
@javiersalazarcastro9188
3 жыл бұрын
Thanks Andreas, I did learn too much about many thing in this special video.
@AndreasSpiess
3 жыл бұрын
Glad it was helpful!
@errlan
4 жыл бұрын
Fantastic video! I followed along with and my NVMe to USB stick works as advertised. Benchmark score = 8830.
@AndreasSpiess
4 жыл бұрын
Good score!
@stevesfascinations1516
4 жыл бұрын
Thank you Andreas, great content, excellent editing as always! Thank you from Canada!
@AndreasSpiess
4 жыл бұрын
You are welcome!
@StigBSivertsen
4 жыл бұрын
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 :-)
@AndreasSpiess
4 жыл бұрын
You are right. They finally included it in their standard update process. The newer boards will probably come with the new bootloader and this topic is done...
@tinkmarshino
4 жыл бұрын
Great.. I wanted to put an ssd on my "4" like I did for my 3b.. it was given me a case of the red ass.. but now.. you boys from the mountain tops have done it again.. well done! carry on!
@AndreasSpiess
4 жыл бұрын
We try our best ;-)
@tinkmarshino
4 жыл бұрын
@@AndreasSpiess and a very good best it is to!
@PhG1961
4 жыл бұрын
Of course I gave a 'thumbs up' ! What a really interesting and usefull video. Sure we like these kinds of video's !
@AndreasSpiess
4 жыл бұрын
Thank you for your continued support! You are a constant on this channel.
@PhG1961
4 жыл бұрын
@@AndreasSpiess Well your videos are great infotainment to me. They're well structured and well explained. We share the same interest and are more or less the same age. I guess that does it.
@sameerbaya6465
4 жыл бұрын
Your videos are very entertaining and educational. Subscribed. One suggestion to do the same thing in a faster way for RPi 4. There is a pre-installed program on raspbian called SD card copier - I just copied the image from the SD card onto an SSD. then used the partition blkid (e.g. root=/dev/sda3) for the root tagging in cmdline.txt. rebooted, then changed the same in /etc/fstab and rebooted again. everything works. one advantage is that the sd card copier extends the last partition automatically to fill up the disk space. one thing that needs to be ensured is to keep the root and data folder at the end on the SD card (which is normally the case, but should be confirmed). The other advantage would be that once the Raspberry pi team develop USB booting, all the partitions will already exist on the SSD.
@AndreasSpiess
4 жыл бұрын
Thanks for the tip. AFAIK we do not need these workarounds for long. This week we should get the official boot support for the RPi.
@Jhinsydney
4 жыл бұрын
Super cool and useful, as usual. Love it !
@AndreasSpiess
4 жыл бұрын
:-)
@RinksRides
4 жыл бұрын
excellent work Andreas! I just recently discovered uSD cards bearing the PRO label. Much better for high I/O usage like action cams, dash cams, and R Pi's.
@AndreasSpiess
4 жыл бұрын
Can you run the speed test? Then we can compare them with Jame's other cards. Or maybe it is already there?
@RinksRides
4 жыл бұрын
@@AndreasSpiess with an old 850 EVO and the Orico usb 3.0 SATA adapter, a Pi 3B+ will average a score of 2733
@ehallam08
4 жыл бұрын
Great Channel, I just discovered it! Front row!
@AndreasSpiess
4 жыл бұрын
Welcome aboard the channel!
@Fanears
4 жыл бұрын
Finally, the search is over. Now, I just need to do something similar with the graphics.
@JoelSolomonivoriesablaze
4 жыл бұрын
Here's to hoping for an eventual USB-C with thunderbolt support.
@AndreasSpiess
4 жыл бұрын
We can assume a Pi5 will come and solve some of the open wishes ;-)
@gaborungvari784
4 жыл бұрын
cool trick, I will probably try it! thanks for the video.
@AndreasSpiess
4 жыл бұрын
You are welcome!
@temyraverdana6421
4 жыл бұрын
Great video Mr. Andreas! Thank you very much.
@sunhillman63
4 жыл бұрын
Thanks for the video and info - now I will also update my Raspi 4 homeserver using a SSD drive 👍
@AndreasSpiess
4 жыл бұрын
Sounds like a good project! Enjoy.
@Ownedyou
4 жыл бұрын
James sent me here to tell you LEGENDARY TECH BLOG is, in fact, an understatement!
@unlokia
4 жыл бұрын
"James" needs to understand that blowing one's own trumpet is very crass.
@vrnclackers
2 жыл бұрын
Thank you, direct to the point and worked the first time.!!!!!
@AndreasSpiess
2 жыл бұрын
Very good. The New Raspberry OS also has the support built-in and should do it more-or less automatically when you do an upgrade.
@enjibkk6850
4 жыл бұрын
Great video, and happy to find that your overall view of the pi 4 is much more positive than earlier :). I do not mind that you are late on this topic since I had put the 'getting a pi4' on hold (based on previous review). Will probably do that now. However I would have a question: after configuring my pi3 for ssd boot, boot time has been much slower (twice as long). I do not know if this is the SSD, the USB adapter, or some limitation on the pi3 itlsef. Would you let us know how the boot time is impacted in your various setup?
@AndreasSpiess
4 жыл бұрын
The Pi3 only has USB2 which is not made for disks. Very slow.
@tobmaster1985
4 жыл бұрын
You don't have to copy both partitions to the SD and SSD. In this setup you only need the boot partition (FAT32) on the SD and the root partition (ext4) on the SSD. Change the bootline.cmd and the fstab before booting and you're done.
@AndreasSpiess
4 жыл бұрын
You are right. But then you cannot use the normal Raspian install process, I think.
@ErnestGWilsonII
4 жыл бұрын
First, thumbs up and thanks for making this video! QUESTION: Is /boot still on the SD card? (Can we pull out the SD card out and keep in on the shelf or must it stay in the Pi?)
@carlpetersen3128
4 жыл бұрын
No, you're booting from the SD card and running from the SSD.
@ErnestGWilsonII
4 жыл бұрын
@@carlpetersen3128 thank you for the clarification
@anthonyd4238
4 жыл бұрын
Awesome video, I was able to use this to add Ubuntu 20.04 LTS headlessly on a SSD for my Pi4. Steps are almost identical, except Ubuntu doesn’t have a /dev/root folder. It uses /dev/sda2 instead. Ubuntu’s cmdline.txt file is in /boot/firmware instead of /boot/etc and finally, the partition name in Ubuntu is LOCAL=writable instead of PARTUUID=#######. Other than those differences, Ubuntu is flying well on my Pi. My benchmark score was: 8,181.
@AndreasSpiess
4 жыл бұрын
Glad it helped!
@ernestuz
4 жыл бұрын
I did more or less the same during Christmas. I used a small 2GB SD card holding the boot environment, including the initial ramdisk and the kernel image, the rest is in on the SSD. I did everything using a Linux PC, apart of the original install, that was made in a 32GB SD card, my Raspberry Pi 4 only saw the final result.
@AndreasSpiess
4 жыл бұрын
This procedure only uses the SD card for the references. So it should not have any slow access to the SSD other than reading these references.
@jeffjefferson2676
4 жыл бұрын
Well, i didnt know there were different speeds for SD cards. Thats new for me. If i get a raspberry pi, I will keep that in mind, and maybe i will add a 25 euro SSD. I want to make a CNC controller with it to drive closed loop stepper motors so they will do their job on a milling machine (after fitting new ball screws that is). So it has got to perform so i wont ruin the machine and the tools and the parts up for milling. Great video! Thank you. Greetings, Jeff
@AndreasSpiess
4 жыл бұрын
Nice project. Lot of things to consider...
@jeffjefferson2676
4 жыл бұрын
@@AndreasSpiess I am taking my time, so im doing it right when im doing it. It involves hall sensors too. Ive never worked with a lot of these components that go onto a CNC machine. I am first finishing this other project im working on before going to another. For now im working on an arduino controlled heat treating oven, with R-type thermocouples and solid state relays. They are on their way to me. I want to be able to harden my steels. So i can make tooling myself etc. etc.
@RichardT2112
4 жыл бұрын
Brilliant as always!
@AndreasSpiess
4 жыл бұрын
Thank you!
@ylanstockholm
2 жыл бұрын
I run a NexcloudPi installation on a Raspberry Pi 4b, booting from SSD. Works great, also with passive cooling. Humbly, Ylan
@AndreasSpiess
2 жыл бұрын
Thank you for sharing your experience. Indeed, things became much better since this video. The Pi supports now SSD boot
@ylanstockholm
2 жыл бұрын
@@AndreasSpiess No, thank YOU for your excellent content! :) Humbly, Ylan
@deangawler9727
4 жыл бұрын
Andreas, we should make you an honarary Australian with your comment "...first, we have to make this bloody Pi4 boot from an SSD" - that's the sort of thing we would say :-) Absolutely hilarious!
@AndreasSpiess
4 жыл бұрын
I for sure did not learn it in Australia, because I was never there. A mistake, I think which has to be corrected one day. But maybe I picked it up from an Austrralian...
@wora1111
4 жыл бұрын
I had some problems trying this: 1) Monitor was not recogniced, fixed that in config.txt by uncommenting hdmisafe 2) ssh/supplicant.conf only worked when booting from SD-Card. No fix found, had to reactivate via desktop after switching to SSD (and yes, both files were installed on the ssd as well) But now I'm happy :-)
@AndreasSpiess
4 жыл бұрын
Strange... Thank you for the info.
@smugmug_nod476
4 жыл бұрын
Danke für das informative Video :)
@AndreasSpiess
4 жыл бұрын
Bitte, gern geschehen
@northshorepx
4 жыл бұрын
super-useful!!!! thanks Andreas!
@AndreasSpiess
4 жыл бұрын
You are welcome! I thought, it is time now. Maybe they will deliver the native boot next week. Then my timing was not very good...
@Iceteavanill
4 жыл бұрын
Nice video as always. For a home nas would you store the files directly on the boot drive or ad an aditional hdd?
@AndreasSpiess
4 жыл бұрын
I would not care too much as long as you backup all data. Create a new boot disk was a piece of cake for me. Then I added all data to it. Performance is probably a little smaller on a combined disk. But I anyway would not use an RPI for a performance NAS
@Zhixalom
4 жыл бұрын
Most definitely thumbs up... simply awesome-sauce!
@AndreasSpiess
4 жыл бұрын
Thanks a bunch!
@Sui778
4 жыл бұрын
Tried doing the SSD boot this way - scored a 8539 on the benchmarks. Very nice.
@AndreasSpiess
4 жыл бұрын
Great to hear!
@Sui778
4 жыл бұрын
@@AndreasSpiess Once I overclocked the board it was into the mid 9000's.
@zvpunry1971
4 жыл бұрын
The Samsung 840 EVO is "well known" for some problems that resulted in poor read-performance. The least used sectors get really slow over time. This results in a very unpredictable performance. Samsung fixed this problem twice. First with a function of their own Magician tool that rewrites the data and later with a firmware update that probably changed the wear leveling. Samsung also offers a bootable cdrom image to update the firmware, so there is no need to have a windows system with their Magician software installed. Make sure to have the latest firmware installed on this SSD. *Firmware updates may result in data loss. Overwriting is guaranteed data loss. Always backup your data.* Story telling time: I replaced a 250GB 840 EVO that caused those unpredictable performance problems. Just imagine how frustrating it is to debug random slow I/O but when you benchmark just a part of the SSD it is fast. It was only discovered by a complete read of the disk while graphing read-speed vs. position. It was a up and down between 5MB/s and 490MB/s. I thought that this was a sign of a dying SSD with good SMART selftest results, which was a bit alarming. Then I searched a bit and found out that it seems to be a well known problem of the 840 EVO series. I tried to fix it with that Magician software, but this was a nightmare on its own. First there is only a windows version. Second, it doesn't work with a USB-SATA adapter. No Linux binary or source available and I didn't want to dig up and open the only available windows-PC that is buried under a pile of different PC's (Think of it as Testsystem-Mountain or a random e-Waste cluster), so I gave up the idea to use their crappy software. The same evening I thought about that their first fix was rewriting the slow regions. I decided to rewrite it too, but I expected them to have implemented some tricks like not writing if the written data is zeroes or the same content that is already stored. I also wanted to check that the data I read back is the same that I have written. So I used a known pseudo-random sequence, which sounds complicated but is extremely easy: Just run "cryptsetup open --type plain /dev/sdX sdX_crypt" with an easy password (it's not about security, so 123456 is perfectly fine). Then copy /dev/zero to /dev/mapper/sdX_crypt in 1MiB blocks: "dd if=/dev/zero of=/dev/mapper/sdX_crypt bs=1M status=progress" and wait. After this treatment the slow regions were gone. Its speed is now 300MB/s, which is very likely limited by the USB-SATA adapter! The read-test was just "dd if=/dev/mapper/sde_crypt of=/dev/null bs=1M status=progress". Overwriting the disk is just a temporary fix, the firmware update is still needed as permanent fix. Also the SMART values are still OK, only 66088696154 LBAs (31 TiB) written and only 23000 power-on hours.
@AndreasSpiess
4 жыл бұрын
Thank you for your info! I did not know when I used it as my main drive. Now it is just a spare drive with little bit of data on it. So I am not sure I will do all the hassle you described.
@zvpunry1971
4 жыл бұрын
I still haven't upgraded the firmware. In theory it should be as easy as clicking this link downloadcenter.samsung.com/content/FM/201403/20140312152113468/Samsung_SSD_840_EVO_EXT0BB6Q.iso (3MB direct download), burning it on a CD and booting from it. But to do this, I have to find such an ancient optical data storage device and an empty disk. Unfortunately it isn't enough to write it on an USB-Stick, because this iso is a real ISO 9660 CD-ROM filesystem and nothing else. Maybe I'll try to extract the btdsk.img from the iso and try to load it with memdisk or put its content on a FreeDOS USB-Stick. Or I just forget that SSD and its defect.
@beauregardslim1914
4 жыл бұрын
To be clear, you are still booting from SD, and your kernel is loading from there. Only your root partition is on the SSD. This is an important distinction because if you are mounting your SSD's boot partition in your fstab, the kernel image on your SD card won't get updated.
@beargun42
4 жыл бұрын
I too was wondering how you’d go about keeping the SD updated.
@AndreasSpiess
4 жыл бұрын
I am a Linux noob. But the SSD clearly was used during the boot process with an empty root partition. And the update/upgrade worked fine
@beauregardslim1914
4 жыл бұрын
@@beargun42 Much like you changed the UUID on the root partition as Andreas outlined, you change the UUID of the boot partition so that the right one gets mounted in your fstab. You will want to mount your SD version so it gets updates. Later, when true USB booting becomes available, you will want to be sure to copy those files to your SSD boot partition and change your fstab to point there.
@TheNewton
4 жыл бұрын
Thumbnail game on point!
@AndreasSpiess
4 жыл бұрын
The thumbnail is very important ;-)
@Electronieks
4 жыл бұрын
yes!!!!!!!!!!!!!!! 200% usefull !! i subscibed , and then i clicked the subscribe-button a second time !! just to be sure i 'm on the first row to see new videos
@AndreasSpiess
4 жыл бұрын
Welcome aboard the channel!
@HelmutTschemernjak
4 жыл бұрын
Great Video, thank you. Instead of a PI, I use an Intel NUC Core i3, 16 GB RAM with an 240 GB SSD and an 1TB regular disk (all less than 400 €). The NUC runs VMware ESX server with multiple VMs. This is a much more powerful solution and I have no fiddling around with cooling, housing and power supplies and external disks. Maybe an good alternative solution for many users. Regards from Hannover, Helmut
@AndreasSpiess
4 жыл бұрын
I know from comments that your solution (or similar) is used by quite a few other viewers. So far I like my Raspberries and they are big enough for me. It forces me also to learn Linux, which is a secret plan. And Docker is really nice, so I do not miss VMs too much. I still could reanimate my windows server with VMs if needed... I am still Microsoft partner with all needed licenses.
@kissingfrogs
4 жыл бұрын
Nice vid. Can I assume that the SD card is still required to be inserted or is the dependency removed .
@AndreasSpiess
4 жыл бұрын
It still has to be there because it has the references to the SSD. Only the RPI team can change that :-(
@max10eb
4 жыл бұрын
Very cool video, Thank You for sharing.
@AndreasSpiess
4 жыл бұрын
Glad you enjoyed it
@thedosiusdreamtwister1546
4 жыл бұрын
Great video. Just out of curiosity, what kind of boot times are you getting on these SSDs?
@AndreasSpiess
4 жыл бұрын
Nothing different. The RPI still boots from SSD
@dave_lawrence
4 жыл бұрын
A question, is the SSD portable to other RPis in the same way as taking the SD card out and plugging it into another RPi was? If yes, is it limited to RPi 4s only? Great video and thanks 😁
@AndreasSpiess
4 жыл бұрын
The concept is portable, I think. But of course, all he numbers have to be right. I did not try it on a Pi3 because there I have native SSD support.
@WizardNumberNext
4 жыл бұрын
Writing zero filed files to SSD have very different effect from writing zero files files to SD card or Hard Disk Drive. On SSD you actually tell SSD to trim blocks (unmap blocks). This is as fast as interface allows (on SATA-III 560MB/s, on USB it will be around 450MB/s on SAS3 it will be close to 1.1GB/s on NVME it will be as fast as controller is able to deliver up to roughly 4GB/s)
@AndreasSpiess
4 жыл бұрын
Interesting. I do not care too much about these things as long as they work. And this was not always the case with the (destroyed) nSD cards.
@tonybell1597
4 жыл бұрын
Fantastic Andreas, thanks. Time to turbo charge my 4!
@AndreasSpiess
4 жыл бұрын
And make it safer!
@FrancescoVannini
4 жыл бұрын
Nice video, really clear and detailed. Thanks.
@AndreasSpiess
4 жыл бұрын
You are welcome!
@dieSpinnt
4 жыл бұрын
Thanks for the video and the hard work, i imagine that jumping through all these rabbit holes was a pesky job. SD-Cards can really be fragile. We all know that. The underlying technology of an SSD is not much different. Yes, orders of magnitudes better in terms of MTBF and there is a great pool of myths around it out there. Lets assume we have a 2,000 to 3,000 write cycle range for flash cells and through some controller magic algorithms we get a "lifetime" of 10 years out of it. In fact, this can mean 1 year or 20 years to a failure. A failure you don't even recognize or one that catches you the hard way. But the probabilities are there. I think one way (maybe not the right in your case) is to handle your file-system correct. There are ways under Linux, where the system is mounted read-only or to make it secure, that changes to the root file-system can only be done in a case, when it is necessary. The small writes, you describe are then done on a /tmpfs mounted RAM based file system(logging, temporary stuff, etc.). Such a topology is often used in embedded systems for set-top boxes, routers or smart-TV's. Have you seen the interesting stuff that Christopher "ExplainingComputers" does with various sorts of SBC's? Including video editing and benchmarks in the 500MB/s for SSD's. But we have to ask us: Why is there no native PCI based or SATA connection out of the box on these little systems? And if available, isn't it all theoretical? Can this system do anything with that kind of data rate? Just try it out. Compare video editing on your desktop between that on your SBC. Not all what is possible will make you lucky in the end. I would be definitely happy to a follow-up and usability report about this project. What does it matter to hang in there for another year of work? Thank you:)
@rikthefrog
4 жыл бұрын
Great video I will install an SSD on my raspberry pi 4 today. Danke.
@AndreasSpiess
4 жыл бұрын
I hope it worked...
@rikthefrog
4 жыл бұрын
Andreas Spiess nope the power switch doesn’t look to be working 😞.
@rikthefrog
4 жыл бұрын
@@AndreasSpiess With my Flirc case it worked. I'm very happy thank you Andreas.
Пікірлер: 1,1 М.