After trying plenty other ways, your description to copy to the ssd and test the speed was great and successful. Now my pi 4 is running with 224mb/s, thanks.
THANK you sooooo so much! There are plenty of guides out there. None of them worked. I was so damn depressed that I watched everything I found on YT.... including your video. I throught I give it a try and man.. what can I say. You explained it perfectly and it finally worked for me! You the best
If it will not boot up from SSD drive. Power off. Put the SD card back. Power on. Boot up. Open the terminal (command line). Type: cd /media/pi And you can check with ls command that it contains two directories. The directory with shorter name (some random string) contains this config.txt file So edit this config.txt file in the directory /media/pi/A9282-1HJ23 Add the below line at the end of the config.txt file: program_usb_boot_mode=1 Save. Exit. Poweroff. Remove SD card. Power on -> put the power cord back. It will boot up.
I tried using the -l option on the rpi-clone command on a RPi3. After booting, everything worked fine, except that I could only boot from the SSD with the SD card inserted. I edited the /boot/config.txt file on the SD card to add the line 'program_usb_boot_mode=1'. After a new reboot, everything worked fine. Thank you very much for your video explanation. I really appreciate it.
Worth mentioning: the SSD should be connected to a powered hub if using a Pi 3b+. If you have a thumb drive and a 3.0 SSD connected at the same time, it could exceed that power draw for the RP usb ports.
Thx for the tutorial. Used it couple of months ago to succesfully convert my Pi4 from SD to SSD. Today was doing the same with Pi3 B+, but had few hurdles. Mostly cause I did not read rpi-clone GitHub manual and examples :D First need to check that USB booting OTP bit is enabled on your Pi3 with command: " vcgencmd otp_dump | grep 17: " Output should read: " 17:3020000a " Then the rpi-clone command you have to use is (given sda is your target drive): " rpi-clone -l sda " -l is needed, because script has to swap PARTUUID of SD and SSD around on few files.
Thanks for sharing the information. It’s little bit odd…I’ve cloned on one my pi3 without th e -l parameter and it worked anyway. But good to know. Thanks. Always check the documentation :)
Thank you so much! After simply copying the image from the sd card onto the ssd with Rpi Imager My pi didn't boot! I would've tried everything else first but then you saved me with your comment on usb3.0 and uas!! Thank you!
Thank you very much! This was exactly the information I needed. I had also to do the last step (with quirks) to get this working but now my RPI boots from a 128GB SSD and has also an extra 2TB SSD for backups. This all running just on the RPI power supply.
I was amazed at the low prices for SSDs, I was out of touch and thought they were high end, when even a 1TB by Seagate is 60GBP, and I got a 250GB and a USB3->SATA lead for less than £20 as I'm on a tight budget.
It worked and it was really easy! Thank you, I'm now using an SSD with my rpi 4. I also appreciated the tip about getting the correct cable, it worked without a hitch. If I could make a request, do you have any good method of automatically backing up FoundryVTT and how to restore backups in case an update or upgrade messes up a world? Thank you so much for the clear tutorials, looking forward to more.
Hi, sorry for the late reply. I'm glad to hear, that everything works for you. Well the question is how often would you like to make those backups, how long do you need to keep history and where do you want to store your backups (locally, different device, nas, or cloud). Personally I would use simple Ansible script to backup your FoundryVTT data somewhere safe (off the actual device).
@@helpingninja no worries at all, you are doing this for free and helping everyone tremendously! I'll look for your suggestion and try to set something up- I'm intending to back up my foundries in the cloud like you say, off the actual device. I want to make sure because I'm new to RPI and self hosting things that I don't accidentally ruin me and my friends' work and creativity 🤣
Just used the guide and its funny I had the same issue with a cheap sata to usb enclosure and the vendor id you had was the same as mine. My enclosure is a sabrent. Thanks a ton this made the process way easier.
Weird comment but yeah, you look exactly like my Italian cousin. Thank you so much for this tutorial, I needed this solid ssd pi base for my home system
Well done! The quirks tip was one I have not read about before. I was curious to know about the benefit to using rpi-clone over a dd copy? I really appreciated the speed test measurement tip, too.
Thank you very much! Regarding the rpi-clone and dd...well, you can't really compare those two. rpi-clone utilizes the dd command to work but is building much more around it. Various checks, partition resizing, setting up rpi to boot from USB, and many other things. The script alone has almost 2000 lines of code that you don't need to reinvent. If you want to, you can go through it. github.com/billw2/rpi-clone/blob/master/rpi-clone Have a great day!
@@helpingninja Thanks for the reply. I have two NVMe drives in USB3 enclosures and the smaller one is bootable. I want to clone the smaller one to the larger and it seems rpi-clone will do the job. However, I have encountered an oddity. Booting with USB3 is great and I have write speeds of about 300MB/s. However as soon as I plug in the larger, destination drive, commands are not recognized, menus are incomplete and wrong. It seems the OS is corrupt (done several times). Power off is required to exit. Repeating the process under USB2 IS successful and SDB is recognized as destination but my I/O speeds are 30 (a factor of 10 slower, as expected). Ouch. The copy is underway; I'll let you know how it turns out tomorrow, LOL. Why won't this work for USB3 to USB3? I did not enable quirks, it didn't seem necessary. As a side question, if I chose another enclosure could that give 600MB/s I/O? If I read your comments correctly, it seems possible. Are you aware of an enclosure for NVMe that will do that?
Hi Eric, my bet here would be that, Rpi doesn't provide enough power to support the bigger nvme drive or both at once. The standard RPi4 adapter provides 15,3W of power and up to 3A of current. As oddly it may sound sometimes ssds or nvmes has higher power consumption than old hdd drives. I would point you to this article ssdsphere.com/ssd-power-consumption-comparison/ which explains a lot about power consumption. I presume your disk drives do not have their external powersupplies. Considering that RPi needs some of those watts and ampers to run itself I guess there isn't enough room to power two nvme drives or one bigger. To cite part of that article about m.2 nvme ssd drives: "Most of the NVMe drives will need 10 to 12 volts to run effectively. Because they have faster speed, the total current drawn can reach up to 2 Ampere. In general, an NVMe SSD will require 8 to 10 watts of total power." So those oddities you encountered may be very well related to RPi struggling with power.
To add here: USB2 provides 0,5A, whereas USB3 provides up to 0,9A ... this could be the difference why it does work on usb2 and not on usb3. Lower speeds, lower powerconsumption which rpi can still support.
Apparently the rpi-clone script does not work for RPi4 installations based on NOOBS. I had my EEPROM updated and everything, but the Pi still complained "USB-MSB boot requires newer software." I still don't know why exactly. So I found a thread on the raspberrypi forum that advertised a "usb-boot" script. Many people praised it so I tried it and it worked!!! The script asks easy questions through a console menus, and also clones the SD card. No more SD card needed after the clone is complete! Now I'm sure my comment would get deleted if I post a direct link so just google for "Running Raspbian from USB Devices : Made Easy". The first post of the long thread is kept up to date.
My klipper printer boot up very slow with raspberry pi SDcard..will this work with 3D printer too? I see your speed difference is so much does it mean it boot up fast as well? Thanks for sharing ❤
Well...it's hard to tell. You should do a few tests to tell what slows down your boot process. Raspberry Pi with SSD drive can boot in few seconds (like 10)...and that's whole OS. So anything slower should be looked into. But I can't know without any further exploration.
if i clone SF card to ssd before old one use BR automation pc now i use Gigabyte GA-J1800M-D3P motherboard after this msg came 1.The system may not support the PCI bus 2.The PCI adapter may not be properly installed in a slot Some of the PCI adapter resources in configuration space may be invalid
Modifying the cmdline.txt file and added this at the beginning of it: usb-storage.quirks=152d:0578:u still doesn’t work for me. Yes I triple check that the value is correct. Ssd usb drive boot into usb 2.0 port fine, though but speed is only around 30Mps, which isn’t much difference. Do you have any idea how to works around this? Appreciated bro, still your tut is great.
Hmm, well one thing that is often the problem might be power issues. The powerdraw at higher speeds via usb3 is somewhat bigger than usb2. Does your usb case for ssd drive have separate powersource? Do you have anything else attached to the pi? Like other usb devices etc? There’s a powerlimit that Raspberry Pi can support via usb ports. You can find the value by quick google search. I’ve also posted link to someoneelses comment to blogpost that talked about power consumption limits on rpis. That is often the problem. Nothing else comes to mind right now.
Hello Well to top off your holiday I worked it out. I loaded astroberry os on micro SD. I installed pi imager and copied the zip RPI on a USB. Opened PI imager but it would not load so I copied it to the desktop. I opened pi imager again selected file selected destination WDC 480gb SSD. Shutdown pi os and removed micro SD. Rebooted into vanilla freebsd. I will thank you for the lead to astroberry. I will do a speedtest and let you know how fast it is. I have an argon m.2 case. I think the pi will need a fan? Thanks again. Leigh Horton
Damn something I did finally worked the first time and fast. I went from running microsd for pi OS and write speed was 15mb/s, using critial SSD 1 TB now booting from SSD and getting 248mb/s!
@@eeandersen Raspbian OS 64 bit, on Raspberry Pi 4 B 8 GB, install via microsd - samsung evo pro and used this methos to move it over and only booting from a SSD which is a critical 1tb via USB 3.0 port (blue one)
Seems like your file system is broken and needs to be fixed. Check out this advice with fsck askubuntu.com/questions/910078/structure-needs-cleaning-error-cannot-mount-partition
EDIT : Turned out using the USB2.0 port solved all issues. And I should have watched the whole video before diving in the deep ;) Thanks for your lightning fast reply. Of course I tried fsck, but it ran for over 24 hours with the same error : Inode 133805, i_blocks is 131072, should be 0. Fix? yes Inode 133806, i_size is 562949953552384, should be 0. Fix? yes Inode 133806, i_blocks is 131072, should be 0. Fix? yes Inode 133807, i_size is 562949953552384, should be 0. Fix? yes etc etc. Odd thing is, this is a new T7 ssd and she works a charm in a Windows environment. I'll have a go with another SSD I guess. Keep up the good work sir!
Hmm, that's odd, I don't think you need to buy new SSD if it works elsewhere. The root problem should be somewhere else. I'd suggest trying few things first: 1) Do the fsck on the SD card itself first - to check if there isn't a problem on the source drive (SD card). 2) Does that SSD case have separate power source? If it does not, that could (with high probability imo) be a potential problem. Highspeed SSDs have significat powerdrain and RPi can support "only so much" - I don't know the number from the top of my head right now, but I've googled it like 10 times already - what I want to say...I've encountered it many times - RPi acting "funny" because on higher speeds it could not support the SSD drainage. One way to test this is to attach that SSD to USB2 and try it that way. It has lower power consumption due to lower "transport" speeds.
I just bought a new DeskPi Pro (version 2) case and a Netac 2.5"SATAIII 6Gb/s 3D Nand 512GB SSD. I followed your helpful instructions because on the case manual they only show how to copy the microSD via GUI. Since I use the headless Raspian 64-bit OS, your explantation helped me a lot. I'm getting 260 MB/s speed. Is it right? Shouldn't it be faster since it can reach 540 MB/s? Anyway, very nice video.
Hi there, thanks for the kind words. I would say that those are very good results (260). "Almost" hitting RPi capabilities. If you want to look deeper into this, look at this @JeffGeerling 's benchmark blog post www.jeffgeerling.com/blog/2020/fastest-usb-storage-options-raspberry-pi
Sorry to hear that. Which hat do you use for nvme? Is there any specific error? Check out this @JeffGeerling blogpost to boot from nvme www.jeffgeerling.com/blog/2023/nvme-ssd-boot-raspberry-pi-5
@@helpingninja Thanks for the reply. I purchased the Geekworm X1001 PCIe M.2 Key-M NVMe SSD PIP PCIe Peripheral Board for Raspberry Pi 5. Did all the steps, but no success with boot. I will have to redo them to see if there were error messages. Don’t remember now. I just kept using the SD by now.
@@patrickkoerner6959 You're welcome. Keep in mind that this tutorial was made in 2022 for Rpi4 and SSD connected to it via USB. This probably won't work for you. To boot from nvme on rpi5 there will be different steps. Check the blogpost I've mentioned in previous comment.
Big problems on a BTT CB1, ~$ dd if=/dev/zero of=/tmp/test3.img bs=20M count=5 oflag=direct dd: failed to open '/tmp/test3.img': Invalid argument :~$ sudo rpi-clone sda Command not found: column Package required: bsdmainutils Do you want to apt-get install the packages? (yes/no): Destination disk sda is the booted disk. Cannot clone! Probably I have a bad version of bsdmainutils, please, could you show me which bsdutils version, link, are you using?
Hi, well the script was made for Raspberry Pi and Raspberry OS. I'm not surprised it doesn't work for everything. Where is your /tmp mounted? Maybe it's only in ram for such a small device?
This seems to have bricked my Pi. Luckily it is on a test unit but not a good start. Cannot SSH into box after removing SD card, nor can I with it in either.
Hi there. Sorry to hear that, but this shouldn't brick your Rpi in any way. It only changes the contents of the SD card or other drive. If you flash new image to the SD card from the rpi imager you should be very much ok. Do you try this on rpi4 or rpi5? This tutorial was made for rpi4 in 2022 when rpi5 was not released yet. And I think I saw an information online, that for the rpi5 there's a newer script. Try google to search for that updated script.
I am using an RPI4 with an SD card and trying to move to a USB stick. Followed your directions exactly. It gets stuck in an endless waiting for root loop. Following someone elses directions at the moment.@@helpingninja
I'm not sure I follow. This tutorial is for migrating SD card to SSD drive. You can install Raspberry Pi OS to your SSD drive, create as many partitions as you need. If you need to preserve data in one partition and install RpiOS to another I think there isn't an easy solution for that.
so I followed the usb thumb drive instructions for the ssd accidentally and it worked just fine in a direct migrate, I do get a message though "controller never released inhibit bit(s)" otherwise it boots up just fine
As it should have. The step in the middle with USB thumb drive is just for demonstrating purpose. Ofc the migration from SD card to SSD drive should work also just fine. Nonetheless, I'm glad everything worked just fine for you.
@@helpingninja fun bit of info, this is a portable build with a 30k mAh batter, 65w max output and 13.3 screen, running power to screen and battery separate so a 1tb portable ssd works just fine without taxing the power draw on a rpi 4b 4gb setup
So this should work for any SD card running Pi OS? I have an Octoprint setup that I want to migrate to SSD. I have a bunch of stuff added to it so it don't want to have to do it from scratch again.
Yep, If your running rpi os you should be able to clone the sd card to to SSD drive. You can always test it - it won't damage your SD card (if used right).
@Helping Ninja: Wow! Thank you. Another fine video. Much appreciated! Has anyone ever asked about your terminal setup? I like the arrow prompts AND the #s and timestamps on the right!! How did you do that? Please share! :) I have not yet looked, but if you have other videos instructing on the aesthetics of the desktop and/or programs (such as your mods/preferences for the terminal in this video), I'd be very interested to watch those videos and learn!
Thank you so much, comments like these make me smile every time! Nobody asked me yet about my terminal configuration, glad you did. I'll make sure to add this to the list of future videos. But not to let you wait. If you are really interested in it - go check out "zsh" (zeeshell) and "oh-my-zsh" framework with loads of its own pluging.
I'm in a process of creating series on raspberry linux server "from scratch to ready homelab server for beginners". One of the chapters will most certainly be "tools I use/recommend"...where this most certainly belongs.
I have a nvme case with nvme drive. Drive is having 2 partition, 1 with windows installed and 1 basically for storage. Do I have to reformat the os partition (as I want rpi clone in that drive) to fat32 or some other format?
I'm having trouble replicating your process: After I issue the "sudo rpi-clone sdb" and once it gets to rsync // /mnt/clone with-root-exlides... my raspberr pi 4 reboots. I'm running the last version of rapsberry (bullseye) lite and openmediavault in a headless configuration. Any help will be appreciated
It’s hard to tell what went wrong from your description. It could be power issues…are you trying to migrate to ssd drive or another sd/usb flash drive?
This doesn't seem to work for me on my RPi3 with Raspbian Buster. rpi-clone advises to increase the bootpartition to enlarge to 256M, but if I add "-p 256M" I get an "overlapping partition"-error. Update: rpi-clone doesn't support a NOOBS-installation!!
Hi there, yes it's an intermediate step, you don't have to move to USB-flash. Check out this link: tech.scargill.net/raspberry-pi-buster-issue/ There is/was issue with size of the boot partition in Buster.
@@helpingninja: thanks for the quick response. You gave my a ton of information to read, but no succes yet. I do have a rpi buster originally upgraded from stretch with a 69M boot partition. My installation also has a few extra partitions for recovery and Windows IoT. All partitions are in an extended partition on an MBR-disc. I don't use it, but I also don't want to loose years of work on my Pi. Until now rpi-clone keeps throwing errors whatever I try. rpi-clone -l f2 sda ->Changing destination Disk ID ...Error: Invalid partition table on /dev/sda -- wrong signature 0. ->Mount failure of /dev/sda7 on /mnt/clone. rpi-clone -l -f -p 256M sda -> some invalid type error in scriptline 1420 etc. (if rpi-clone is so widely used, then I must me alone here...)
Not working for, the clone is succeed. But my raspberry pi 4b doesnt boot. It shows me, failed to open device sdcard. Usb2 connected, last sentence is firmware not found
I’d suggest checking if filesystem isn’t corrupt on the sd card. And than check the documentation of the rpi-clone script on github. Generally speaking it still works.
Thank you sir, Let me read that. I am pretty sure that the file system on the sdcard isnt corrupt. I tried with another sdcard where kali is installed aswell, but both didnt both from usd ssd. (Sandisk Portable SSD). .
Well, I think that might be the problem. See the documentation: github.com/billw2/rpi-clone It’s not designed to clone whatever distro. It clones specifically Raspberry Pi OS. The author states, that he uses it to clone his Debian also, but there are too many possibilities how the system can be configured, so he doesn’t officially support anything else. See that part in the docs and parts on the rpi-clone-setup script…if you want to try to clone your Kali.
On my rpi4, I've successfully cloned Devuan/sway from SD card to SSD, void-linux/sway from SD card to SD card but void-linux/sway to SSD produces a drive that only boots with a helper SD card in the slot, and then not to sway desktop. My procedure has been the same . In addition, it has cloned my ext4 root partition to an ext2 root partition which is weird... Any ideas, before I give up and just virgin install onto the SSD? The SATA-USB adapter is a StarTech which shouldn't need quirks.
@@helpingninja Thanks, I found the solution to be to take start4.elf and fixup4.dat from the /boot partition of a piOS and put them into Void /boot partition. Now I'm happy! Void/sway is great!
Hmmm...can you try to mount that drive to another computer and verify, that the cloning process was successful and all the files are there? Also did you check the "quirks" issue and perhaps power issues? Does your ssd drive have Independent power supply? If your drive have all the files it needs with no power issues it should boot up fine.
@@helpingninja My mistake, looks like I was too excited and therefore impatient. The very first boot took a bit long, but finally after it booted up, the following reboots were much quicker. Thank's a lot for your video it was really helpful !!! What do you suggest, would it make sense to plug another USB, and clone from one USB to the secound USB, and put it somwhere safe, to have an instant usable backup in case the first USB goes down ?
Well it's not specifically designed to do that. But you can most certainly try. Author of the rpi-clone script states that it works for his Debian OS. So you might as well try it. No harm done. It won't alter your sd card in any way. Check out authors github page: github.com/billw2/rpi-clone especially the part "On other OS". I haven't tried it myself yet.
This was my experience with a pi 3 b+ and a sabrent USB TYPE-C TOOL FREE-ENCLOSURE FOR M.2 PCIe NVMe AND SATA SSDs . Stopped pi hole and unifi network controller. Ran clone script but process was showing files not found for Spotlight-V100 files and after 12 hours I killed the script. Ran sudo touch /forcefsck and rebooted. Re-ran clone process and it was successful! After removing the sdcard the NVMe wouldn’t boot . Booted from sdcard again. Ran lsusb with NVMe attached and with it unattached to get the external closure IDs. Thanks Janez Zupan Edited the config.txt file at /media/usb0/config.txt on the NVMe to add my quirks line which was usb-storage.quirks=0bda:9210:u Now running on NVMe getting 29MB/s versus 6 on the sdcard :) Thanks all
Well I wouldn't recommend that. It's not designed to do that . If you want to clone an entire sd card try using something simple like "dd" command in linux or win32 disk imager on windows.
@@cryptohacker2829 its hard to believe that actually happened. Are you sure you downloaded data to the medium you currently using. Like downloaded to SD card but booted from M2. Or vice versa?
@@helpingninja SD card is out, Raspi4 boots off m.2 now& loads OS, I login everything from SD is there loaded onto m.2. I go to git clone something. Reboot and it doesn't show. Back in the business of making compact BTC nodes so trying to see what works what doesn't with newer stuff.
Hi there, Freebsd is not the same thing as Raspberry OS. So I don't think this is the best idea to approach this. Also why are you running freebsd on raspberry? It has it's own designated OS. Just wondering. I guess the best way to do this on any linux is to create backup image of the sd card a then "burn it" to new SSD drive. "dd" command will be your friend.
Great to get a reply. Well freebsd is the OS we use on our desktop PC. I really like your approach to this. I can copy pi OS to the M.2 ssd using SD copier.and it works. I can load and run freebsd RPI and it works perfectly but the copy function won't work in freebsd. I'm Seeing if the DD command will work in freebsd. Perhaps you can investigate this? Leigh
@@leighhorton2806 I most certainly can investigate this, but unfortunately I'm on vacation right now and I have no reasonable way to access my home lab. Will be back in a week if that will be still an issue.
@@helpingninja hi enjoy your holiday. DD test today after using gpart to format the ssd. It worked but won't boot from the ssd. Let's talk when you return home. Leigh
@@leighhorton2806 I would propose something like this: 1) DD rpi SD card to img file. "sudo dd bs=4194304 if=/souce/disk of=/destination/backupsd.img". 2) Then use Balena Etcher or DD again to burn this image to SSD drive. 3) Then use gpart to expand the partition to its full size. Here's an article helpingninja.link/ep0 from 2020 stating that "FreeBSD 13-current" at that time didn't support USB boot, but that guy went somehow around it. Dunno if it's still an issue today. As stated before - I can make a few tests when I get home in a few days.
You're the first one to report something didn't go well. So I would be looking for stuff that made this happen. Did you try to unplug ty SSD from RPi (power issues) and boot from SD card? Are you able to check if the SD card is undamaged? I mean mount it to another linux machine a check the partitions if they are readable? Same goes for the SSD drive. On which version of Raspberry are you trying to do this?
Well, I doubt that. If there's anything wrong with the new image on your SSD drive just unplug it and boot up again from the SD card. The SD card could not be damaged just by reading and copying data from it.
Killed how? Just boot from the SD card like you used to. Did you kill the SD card? Use your backup card or restore image. You don't have one? Why the hell not?
OOOPPPPSSSS! Maybe you should have given the possible issue at the beginning of the video, NOT after destroying my Pi. Now I have to start all over building my Pi.
Název videa, popisek a další metadata se dají k videu uploadovat ve více jazycích. Nicméně audio videa může být pouze jedno. A protože máš RUclips / Prohlížeč / Aplikaci ve výchozím stavu v češtině, tak ti to ukázalo české popisky. Jinak jsou tam i anglické. A audio bylo a je pouze v angličtině.
Bravo it's excellent and so easy to make. 104857600 octets (105 MB, 100 MiB) copiés, 3,13687 s, 33,4 MB/s with SANDISK SSD PLUS. RPI3B+ with micro sd cards that died every two years.
I could't believe it in the beginning …, but my USB drive worked only on USB 2.0 too, until I found your excellent guide. The quirk trick is the perfect idea and was the only solution for my RPI4 USB hardware, I am using now. I would like to kindly remark that we can use an “lsusb” command instead of the “dmesg | grep usb” command to obtain IdVendor/IdProduct information. If we use more USB devices, we can confuse ourselves and not write down the right information. That's what happened to me. The "lsusb" command shows the status only for currently connected devices. Example: drive.google.com/file/d/130tvWnLwAeOxL-0qUxZdB0P3iePtryHN/view?usp=sharing Thanks.
Very Good, working in 2024, Thank!
Thanks for the confirmation, glad to hear that!
I've revisited this page several times - it's not something I do often enough to remember it. Still working perfectly, thank you 🙂
You’re most welcome! Thanks for the message. ;-)
Still working in 2023, you never know :). Thank you man, helped alot
Glad to hear that. Thank you! Have a great day :)
@@helpingninja I had trouble with cloning to my new SSD, and the "quirks" and your tutorial really helped me.
I liked and subscribed. Thanks mate
@@andrina118 Thank YOU! You're very welcome! :)
After trying plenty other ways, your description to copy to the ssd and test the speed was great and successful. Now my pi 4 is running with 224mb/s, thanks.
You're most welcome! Glad to hear you made it work :) have a great day
THANK you sooooo so much! There are plenty of guides out there. None of them worked. I was so damn depressed that I watched everything I found on YT.... including your video. I throught I give it a try and man.. what can I say. You explained it perfectly and it finally worked for me! You the best
Glad I could help! Have a nice day.
i was so afarid of starting from scratch again.. liked and subscribed you saved me from hours of work
If it will not boot up from SSD drive. Power off. Put the SD card back. Power on. Boot up. Open the terminal (command line).
Type: cd /media/pi And you can check with ls command that it contains two directories.
The directory with shorter name (some random string) contains this config.txt file
So edit this config.txt file in the directory /media/pi/A9282-1HJ23
Add the below line at the end of the config.txt file:
program_usb_boot_mode=1
Save. Exit. Poweroff. Remove SD card. Power on -> put the power cord back. It will boot up.
Thanks a million. This fixed things for me.
I tried using the -l option on the rpi-clone command on a RPi3. After booting, everything worked fine, except that I could only boot from the SSD with the SD card inserted. I edited the /boot/config.txt file on the SD card to add the line 'program_usb_boot_mode=1'. After a new reboot, everything worked fine. Thank you very much for your video explanation. I really appreciate it.
Glad I could help 👍
Worth mentioning: the SSD should be connected to a powered hub if using a Pi 3b+. If you have a thumb drive and a 3.0 SSD connected at the same time, it could exceed that power draw for the RP usb ports.
How will it know which is the boot drive and which is additional storage?
Thx for the tutorial. Used it couple of months ago to succesfully convert my Pi4 from SD to SSD.
Today was doing the same with Pi3 B+, but had few hurdles. Mostly cause I did not read rpi-clone GitHub manual and examples :D
First need to check that USB booting OTP bit is enabled on your Pi3 with command:
" vcgencmd otp_dump | grep 17: "
Output should read: " 17:3020000a "
Then the rpi-clone command you have to use is (given sda is your target drive):
" rpi-clone -l sda "
-l is needed, because script has to swap PARTUUID of SD and SSD around on few files.
Thanks for sharing the information. It’s little bit odd…I’ve cloned on one my pi3 without th e -l parameter and it worked anyway. But good to know. Thanks. Always check the documentation :)
Wow, thanks man. Your solution with quirks saved my day. Had the same issue that it booted up only from USB2. Now I have writing speed around 213B/s.
Happy to help man! Enjoy! ✌️
Thank you so much!
After simply copying the image from the sd card onto the ssd with Rpi Imager
My pi didn't boot!
I would've tried everything else first but then you saved me with your comment on usb3.0 and uas!!
Thank you!
Thank you very much! This was exactly the information I needed. I had also to do the last step (with quirks) to get this working but now my RPI boots from a 128GB SSD and has also an extra 2TB SSD for backups. This all running just on the RPI power supply.
Great to hear! Enjoy your Rpi :)
thanks for confirming it worked with SSD
Great and very useful! Thanks! Planing to migrate from SD to ssd too on my rpi4!
Glad to help. Hope the transition will be smooth for you 🙂
I was amazed at the low prices for SSDs, I was out of touch and thought they were high end, when even a 1TB by Seagate is 60GBP, and I got a 250GB and a USB3->SATA lead for less than £20 as I'm on a tight budget.
It worked and it was really easy! Thank you, I'm now using an SSD with my rpi 4. I also appreciated the tip about getting the correct cable, it worked without a hitch. If I could make a request, do you have any good method of automatically backing up FoundryVTT and how to restore backups in case an update or upgrade messes up a world? Thank you so much for the clear tutorials, looking forward to more.
Hi, sorry for the late reply. I'm glad to hear, that everything works for you. Well the question is how often would you like to make those backups, how long do you need to keep history and where do you want to store your backups (locally, different device, nas, or cloud). Personally I would use simple Ansible script to backup your FoundryVTT data somewhere safe (off the actual device).
@@helpingninja no worries at all, you are doing this for free and helping everyone tremendously! I'll look for your suggestion and try to set something up- I'm intending to back up my foundries in the cloud like you say, off the actual device. I want to make sure because I'm new to RPI and self hosting things that I don't accidentally ruin me and my friends' work and creativity 🤣
@@bissonomy I think you can easily use and modify this ansible backup solution to backup your foundry data regulary.
Best migration guide on the internet! In forums can be found so many crap....
Thank you for your kind words!
Just used the guide and its funny I had the same issue with a cheap sata to usb enclosure and the vendor id you had was the same as mine. My enclosure is a sabrent. Thanks a ton this made the process way easier.
Glad it helped! ✌️
Super helpful video, just what I needed. Also respect to the usb case developer though, for giving it a product id of '1337' ;)
Thank you .. that is very handy. Much easier than the SD Card clone I was doing before.
You're very welcome!
Doesn't work with Home Assistant (on RPi4). Not apt, no git. Any clue how to make it work?
Weird comment but yeah, you look exactly like my Italian cousin.
Thank you so much for this tutorial, I needed this solid ssd pi base for my home system
You're welcome! Thank you for the kind words. Say hi to your cousin. :)
@@helpingninja I did it!!!!
Easy as 1-2-3! Thanks @helpingninja ✌
You’re welcome! 👍
Thank you very much for this very informative vid.
This is exactly what I needed. Thank you!
You’re welcome!
easy process, thank you very much!
@@insideSFPD You're welcome! Thanks for watching. Have a wonderful day :)
This worked great. And no hassle at all. Thanks a ton :)
Glad to help! Cheers
Thanks a lot
You're most welcome!
Well done! The quirks tip was one I have not read about before. I was curious to know about the benefit to using rpi-clone over a dd copy? I really appreciated the speed test measurement tip, too.
Thank you very much! Regarding the rpi-clone and dd...well, you can't really compare those two. rpi-clone utilizes the dd command to work but is building much more around it. Various checks, partition resizing, setting up rpi to boot from USB, and many other things. The script alone has almost 2000 lines of code that you don't need to reinvent. If you want to, you can go through it. github.com/billw2/rpi-clone/blob/master/rpi-clone Have a great day!
@@helpingninja Thanks for the reply. I have two NVMe drives in USB3 enclosures and the smaller one is bootable. I want to clone the smaller one to the larger and it seems rpi-clone will do the job. However, I have encountered an oddity. Booting with USB3 is great and I have write speeds of about 300MB/s. However as soon as I plug in the larger, destination drive, commands are not recognized, menus are incomplete and wrong. It seems the OS is corrupt (done several times). Power off is required to exit. Repeating the process under USB2 IS successful and SDB is recognized as destination but my I/O speeds are 30 (a factor of 10 slower, as expected). Ouch. The copy is underway; I'll let you know how it turns out tomorrow, LOL.
Why won't this work for USB3 to USB3? I did not enable quirks, it didn't seem necessary.
As a side question, if I chose another enclosure could that give 600MB/s I/O? If I read your comments correctly, it seems possible. Are you aware of an enclosure for NVMe that will do that?
Hi Eric, my bet here would be that, Rpi doesn't provide enough power to support the bigger nvme drive or both at once. The standard RPi4 adapter provides 15,3W of power and up to 3A of current. As oddly it may sound sometimes ssds or nvmes has higher power consumption than old hdd drives. I would point you to this article ssdsphere.com/ssd-power-consumption-comparison/ which explains a lot about power consumption. I presume your disk drives do not have their external powersupplies. Considering that RPi needs some of those watts and ampers to run itself I guess there isn't enough room to power two nvme drives or one bigger. To cite part of that article about m.2 nvme ssd drives: "Most of the NVMe drives will need 10 to 12 volts to run effectively. Because they have faster speed, the total current drawn can reach up to 2 Ampere. In general, an NVMe SSD will require 8 to 10 watts of total power." So those oddities you encountered may be very well related to RPi struggling with power.
To add here: USB2 provides 0,5A, whereas USB3 provides up to 0,9A ... this could be the difference why it does work on usb2 and not on usb3. Lower speeds, lower powerconsumption which rpi can still support.
@@eeandersen Hi Eric, do you have an update for us? How did it turn out? Did you have a chance to look at my comment about the power consumption?
Apparently the rpi-clone script does not work for RPi4 installations based on NOOBS. I had my EEPROM updated and everything, but the Pi still complained "USB-MSB boot requires newer software." I still don't know why exactly.
So I found a thread on the raspberrypi forum that advertised a "usb-boot" script. Many people praised it so I tried it and it worked!!! The script asks easy questions through a console menus, and also clones the SD card. No more SD card needed after the clone is complete!
Now I'm sure my comment would get deleted if I post a direct link so just google for "Running Raspbian from USB Devices : Made Easy". The first post of the long thread is kept up to date.
I for, sure would, not delete such a post. Go ahead and post the link to help others.
it worked with Mi Raspberry Pi4B with Manjaro Minimal! Thanks a lot!
Thanks, great to know it works with Manjaro too.
This was very useful. Thank you so much. Subscribed!
You're welcome and thank You!
You, sir, are a lifesaver!
Glad to help!
My klipper printer boot up very slow with raspberry pi SDcard..will this work with 3D printer too? I see your speed difference is so much does it mean it boot up fast as well? Thanks for sharing ❤
Well...it's hard to tell. You should do a few tests to tell what slows down your boot process. Raspberry Pi with SSD drive can boot in few seconds (like 10)...and that's whole OS. So anything slower should be looked into. But I can't know without any further exploration.
if i clone SF card to ssd before old one use BR automation pc now i use Gigabyte GA-J1800M-D3P motherboard after this msg came
1.The system may not support the PCI bus
2.The PCI adapter may not be properly installed in a slot
Some of the PCI adapter resources in configuration space may be invalid
Straight to the point. Great tuts 👍
Thank you!
Modifying the cmdline.txt file and added this at the beginning of it: usb-storage.quirks=152d:0578:u still doesn’t work for me. Yes I triple check that the value is correct.
Ssd usb drive boot into usb 2.0 port fine, though but speed is only around 30Mps, which isn’t much difference. Do you have any idea how to works around this? Appreciated bro, still your tut is great.
Hmm, well one thing that is often the problem might be power issues. The powerdraw at higher speeds via usb3 is somewhat bigger than usb2. Does your usb case for ssd drive have separate powersource? Do you have anything else attached to the pi? Like other usb devices etc? There’s a powerlimit that Raspberry Pi can support via usb ports. You can find the value by quick google search. I’ve also posted link to someoneelses comment to blogpost that talked about power consumption limits on rpis. That is often the problem. Nothing else comes to mind right now.
thank you for the tutorial.
You're welcome!
Hello
Well to top off your holiday I worked it out. I loaded astroberry os on micro SD. I installed pi imager and copied the zip RPI on a USB. Opened PI imager but it would not load so I copied it to the desktop. I opened pi imager again selected file selected destination WDC 480gb SSD.
Shutdown pi os and removed micro SD. Rebooted into vanilla freebsd.
I will thank you for the lead to astroberry. I will do a speedtest and let you know how fast it is.
I have an argon m.2 case. I think the pi will need a fan?
Thanks again. Leigh Horton
Glad you worked it out 👍
Regarding the fan - monitor the temperature and use fan only if necessary. I hate fans on rpi - most of them are low quality and make a lot of noise.
Damn something I did finally worked the first time and fast. I went from running microsd for pi OS and write speed was 15mb/s, using critial SSD 1 TB now booting from SSD and getting 248mb/s!
Nice! Good luck out there. Glad I could help.
Please tell us about your equipment: which SSD and which enclosure! TIA.
@@eeandersen Raspbian OS 64 bit, on Raspberry Pi 4 B 8 GB, install via microsd - samsung evo pro and used this methos to move it over and only booting from a SSD which is a critical 1tb via USB 3.0 port (blue one)
Odd, I get this error...
mount: /mnt/clone: mount(2) system call failed: Structure needs cleaning.
Mount failure of /dev/sda2 on /mnt/clone.
Aborting!
Seems like your file system is broken and needs to be fixed. Check out this advice with fsck askubuntu.com/questions/910078/structure-needs-cleaning-error-cannot-mount-partition
EDIT : Turned out using the USB2.0 port solved all issues.
And I should have watched the whole video before diving in the deep ;)
Thanks for your lightning fast reply.
Of course I tried fsck, but it ran for over 24 hours with the same error :
Inode 133805, i_blocks is 131072, should be 0. Fix? yes
Inode 133806, i_size is 562949953552384, should be 0. Fix? yes
Inode 133806, i_blocks is 131072, should be 0. Fix? yes
Inode 133807, i_size is 562949953552384, should be 0. Fix? yes
etc etc. Odd thing is, this is a new T7 ssd and she works a charm in a Windows environment.
I'll have a go with another SSD I guess.
Keep up the good work sir!
Hmm, that's odd, I don't think you need to buy new SSD if it works elsewhere. The root problem should be somewhere else.
I'd suggest trying few things first:
1) Do the fsck on the SD card itself first - to check if there isn't a problem on the source drive (SD card).
2) Does that SSD case have separate power source? If it does not, that could (with high probability imo) be a potential problem. Highspeed SSDs have significat powerdrain and RPi can support "only so much" - I don't know the number from the top of my head right now, but I've googled it like 10 times already - what I want to say...I've encountered it many times - RPi acting "funny" because on higher speeds it could not support the SSD drainage. One way to test this is to attach that SSD to USB2 and try it that way. It has lower power consumption due to lower "transport" speeds.
I just bought a new DeskPi Pro (version 2) case and a Netac 2.5"SATAIII 6Gb/s 3D Nand 512GB SSD. I followed your helpful instructions because on the case manual they only show how to copy the microSD via GUI. Since I use the headless Raspian 64-bit OS, your explantation helped me a lot. I'm getting 260 MB/s speed. Is it right? Shouldn't it be faster since it can reach 540 MB/s? Anyway, very nice video.
Hi there, thanks for the kind words. I would say that those are very good results (260). "Almost" hitting RPi capabilities. If you want to look deeper into this, look at this @JeffGeerling 's benchmark blog post www.jeffgeerling.com/blog/2020/fastest-usb-storage-options-raspberry-pi
Hi.it will also work when migrating from sd card to NVMe SSD?Raspberyy Pi 5.Thank.
Hi there, I don't think so really. Check-out @JeffGeerling s blogpost on this matter www.jeffgeerling.com/blog/2023/nvme-ssd-boot-raspberry-pi-5
I think you said this will only work on RPI 4. Is that correct or will it work for all PI's
Hi, I've tested it on RPi3 and 4 and it worked on both.
Unfortunately it did not work to clone the SD card to an NvMe disk on the new Raspberry Pi5.
Still looking for a solution.
Sorry to hear that. Which hat do you use for nvme? Is there any specific error? Check out this @JeffGeerling blogpost to boot from nvme www.jeffgeerling.com/blog/2023/nvme-ssd-boot-raspberry-pi-5
@@helpingninja
Thanks for the reply.
I purchased the Geekworm X1001 PCIe M.2 Key-M NVMe SSD PIP PCIe Peripheral Board for Raspberry Pi 5.
Did all the steps, but no success with boot.
I will have to redo them to see if there were error messages.
Don’t remember now. I just kept using the SD by now.
@@patrickkoerner6959 You're welcome. Keep in mind that this tutorial was made in 2022 for Rpi4 and SSD connected to it via USB. This probably won't work for you. To boot from nvme on rpi5 there will be different steps. Check the blogpost I've mentioned in previous comment.
Big problems on a BTT CB1,
~$ dd if=/dev/zero of=/tmp/test3.img bs=20M count=5 oflag=direct
dd: failed to open '/tmp/test3.img': Invalid argument
:~$ sudo rpi-clone sda
Command not found: column Package required: bsdmainutils
Do you want to apt-get install the packages? (yes/no):
Destination disk sda is the booted disk. Cannot clone!
Probably I have a bad version of bsdmainutils, please, could you show me which bsdutils version, link, are you using?
Hi, well the script was made for Raspberry Pi and Raspberry OS. I'm not surprised it doesn't work for everything. Where is your /tmp mounted? Maybe it's only in ram for such a small device?
This seems to have bricked my Pi. Luckily it is on a test unit but not a good start. Cannot SSH into box after removing SD card, nor can I with it in either.
Hi there. Sorry to hear that, but this shouldn't brick your Rpi in any way. It only changes the contents of the SD card or other drive. If you flash new image to the SD card from the rpi imager you should be very much ok. Do you try this on rpi4 or rpi5? This tutorial was made for rpi4 in 2022 when rpi5 was not released yet. And I think I saw an information online, that for the rpi5 there's a newer script. Try google to search for that updated script.
I am using an RPI4 with an SD card and trying to move to a USB stick. Followed your directions exactly. It gets stuck in an endless waiting for root loop. Following someone elses directions at the moment.@@helpingninja
@@josh817 Are you trying to migrate vanilla Raspberry OS or some other OS? There was/is an issue with Debian I think.
Is it possible to install OS in one of the partitions in SSD? If yes, then what is the procedure for it?
I'm not sure I follow. This tutorial is for migrating SD card to SSD drive. You can install Raspberry Pi OS to your SSD drive, create as many partitions as you need. If you need to preserve data in one partition and install RpiOS to another I think there isn't an easy solution for that.
Hello bro, excellent explanation, however, my Raspberry Pi4 8Gb still has the 3.0 port very slow, even after I followed the video tutorial.
sorry, it worked now, I had written down the wrong values for my SSD. Show bro, very good!!!
@@cadinhodev Glad I could help. Have a great day!
so I followed the usb thumb drive instructions for the ssd accidentally and it worked just fine in a direct migrate, I do get a message though "controller never released inhibit bit(s)" otherwise it boots up just fine
As it should have. The step in the middle with USB thumb drive is just for demonstrating purpose. Ofc the migration from SD card to SSD drive should work also just fine. Nonetheless, I'm glad everything worked just fine for you.
@@helpingninja fun bit of info, this is a portable build with a 30k mAh batter, 65w max output and 13.3 screen, running power to screen and battery separate so a 1tb portable ssd works just fine without taxing the power draw on a rpi 4b 4gb setup
@@weaponizedkarma252 cool :)
So this should work for any SD card running Pi OS? I have an Octoprint setup that I want to migrate to SSD. I have a bunch of stuff added to it so it don't want to have to do it from scratch again.
Yep, If your running rpi os you should be able to clone the sd card to to SSD drive. You can always test it - it won't damage your SD card (if used right).
@Helping Ninja:
Wow! Thank you. Another fine video. Much appreciated!
Has anyone ever asked about your terminal setup? I like the arrow prompts AND the #s and timestamps on the right!! How did you do that? Please share! :)
I have not yet looked, but if you have other videos instructing on the aesthetics of the desktop and/or programs (such as your mods/preferences for the terminal in this video), I'd be very interested to watch those videos and learn!
Thank you so much, comments like these make me smile every time!
Nobody asked me yet about my terminal configuration, glad you did. I'll make sure to add this to the list of future videos. But not to let you wait. If you are really interested in it - go check out "zsh" (zeeshell) and "oh-my-zsh" framework with loads of its own pluging.
I'm in a process of creating series on raspberry linux server "from scratch to ready homelab server for beginners". One of the chapters will most certainly be "tools I use/recommend"...where this most certainly belongs.
@@helpingninja Awesome! Thank you very much. Appreciated. I like to learn. You help that.
I have a nvme case with nvme drive. Drive is having 2 partition, 1 with windows installed and 1 basically for storage. Do I have to reformat the os partition (as I want rpi clone in that drive) to fat32 or some other format?
I'm not 100% sure right now, but I think the rpi-clone script will format the whole drive for you. Loosing the windows partition in the process.
I'm having trouble replicating your process: After I issue the "sudo rpi-clone sdb" and once it gets to rsync // /mnt/clone with-root-exlides... my raspberr pi 4 reboots.
I'm running the last version of rapsberry (bullseye) lite and openmediavault in a headless configuration. Any help will be appreciated
It’s hard to tell what went wrong from your description. It could be power issues…are you trying to migrate to ssd drive or another sd/usb flash drive?
This doesn't seem to work for me on my RPi3 with Raspbian Buster. rpi-clone advises to increase the bootpartition to enlarge to 256M, but if I add "-p 256M" I get an "overlapping partition"-error.
Update: rpi-clone doesn't support a NOOBS-installation!!
Hi there, yes it's an intermediate step, you don't have to move to USB-flash. Check out this link: tech.scargill.net/raspberry-pi-buster-issue/ There is/was issue with size of the boot partition in Buster.
@@helpingninja: thanks for the quick response. You gave my a ton of information to read, but no succes yet. I do have a rpi buster originally upgraded from stretch with a 69M boot partition. My installation also has a few extra partitions for recovery and Windows IoT. All partitions are in an extended partition on an MBR-disc. I don't use it, but I also don't want to loose years of work on my Pi.
Until now rpi-clone keeps throwing errors whatever I try.
rpi-clone -l f2 sda
->Changing destination Disk ID ...Error: Invalid partition table on /dev/sda -- wrong signature 0.
->Mount failure of /dev/sda7 on /mnt/clone.
rpi-clone -l -f -p 256M sda
-> some invalid type error in scriptline 1420
etc.
(if rpi-clone is so widely used, then I must me alone here...)
Update: rpi-clone doesn't seem to support NOOBS. I made a new install and started manually moving all my work to a 2-partitions bullseye install.
Not working for, the clone is succeed. But my raspberry pi 4b doesnt boot. It shows me, failed to open device sdcard. Usb2 connected, last sentence is firmware not found
I’d suggest checking if filesystem isn’t corrupt on the sd card. And than check the documentation of the rpi-clone script on github. Generally speaking it still works.
Thank you sir, Let me read that. I am pretty sure that the file system on the sdcard isnt corrupt. I tried with another sdcard where kali is installed aswell, but both didnt both from usd ssd. (Sandisk Portable SSD). .
@@1966Ally It’s supposed to clone Raspberry Pi OS. Are you trying to clone sd cards with Kali Linux?
@@helpingninja Thank you for replying again, yes it's for my Kali Linux system on my PI4B
Well, I think that might be the problem. See the documentation: github.com/billw2/rpi-clone It’s not designed to clone whatever distro. It clones specifically Raspberry Pi OS. The author states, that he uses it to clone his Debian also, but there are too many possibilities how the system can be configured, so he doesn’t officially support anything else. See that part in the docs and parts on the rpi-clone-setup script…if you want to try to clone your Kali.
On my rpi4, I've successfully cloned Devuan/sway from SD card to SSD, void-linux/sway from SD card to SD card but void-linux/sway to SSD produces a drive that only boots with a helper SD card in the slot, and then not to sway desktop. My procedure has been the same . In addition, it has cloned my ext4 root partition to an ext2 root partition which is weird... Any ideas, before I give up and just virgin install onto the SSD? The SATA-USB adapter is a StarTech which shouldn't need quirks.
Hi, well I'm not sure about these OSes. The script was designed to migrate Raspberry Pi OS. You can't blame it for not working with other distros. ;)
@@helpingninja Thanks, I found the solution to be to take start4.elf and fixup4.dat from the /boot partition of a piOS and put them into Void /boot partition. Now I'm happy! Void/sway is great!
@@3niknicholson Glad you made that work! 👍
I did all the steps cloning took quite long, but was successful. but my Pi won't boot from USB. What did I miss?
Hmmm...can you try to mount that drive to another computer and verify, that the cloning process was successful and all the files are there? Also did you check the "quirks" issue and perhaps power issues? Does your ssd drive have Independent power supply? If your drive have all the files it needs with no power issues it should boot up fine.
@@helpingninja My mistake, looks like I was too excited and therefore impatient. The very first boot took a bit long, but finally after it booted up, the following reboots were much quicker. Thank's a lot for your video it was really helpful !!! What do you suggest, would it make sense to plug another USB, and clone from one USB to the secound USB, and put it somwhere safe, to have an instant usable backup in case the first USB goes down ?
Can i use it with my Ubuntu Server OS on pi4?
Well it's not specifically designed to do that. But you can most certainly try. Author of the rpi-clone script states that it works for his Debian OS. So you might as well try it. No harm done. It won't alter your sd card in any way. Check out authors github page: github.com/billw2/rpi-clone especially the part "On other OS". I haven't tried it myself yet.
This was my experience with a pi 3 b+ and a sabrent USB TYPE-C TOOL FREE-ENCLOSURE FOR M.2 PCIe NVMe AND SATA SSDs .
Stopped pi hole and unifi network controller.
Ran clone script but process was showing files not found for Spotlight-V100 files and after 12 hours I killed the script.
Ran sudo touch /forcefsck and rebooted.
Re-ran clone process and it was successful!
After removing the sdcard the NVMe wouldn’t boot .
Booted from sdcard again.
Ran lsusb with NVMe attached and with it unattached to get the external closure IDs. Thanks Janez Zupan
Edited the config.txt file at /media/usb0/config.txt on the NVMe to add my quirks line which was usb-storage.quirks=0bda:9210:u
Now running on NVMe getting 29MB/s versus 6 on the sdcard :)
Thanks all
Glad you made it work! Thanks for sharing.
Can RPI clone support cloning of Android 13 SD card ?
Well I wouldn't recommend that. It's not designed to do that . If you want to clone an entire sd card try using something simple like "dd" command in linux or win32 disk imager on windows.
When I went to do a speed test it said permission denied!?
I believe you are trying to write to place you are not allowed to. Try prefixing the whole command with “sudo”. Should do the trick.
@@helpingninja got it to boot from m.2, I downloaded something. Reboot and the files aren't saving. Fml. Lmfao one troubleshooting issue after another
@@cryptohacker2829 its hard to believe that actually happened. Are you sure you downloaded data to the medium you currently using. Like downloaded to SD card but booted from M2. Or vice versa?
@@helpingninja SD card is out, Raspi4 boots off m.2 now& loads OS, I login everything from SD is there loaded onto m.2. I go to git clone something. Reboot and it doesn't show. Back in the business of making compact BTC nodes so trying to see what works what doesn't with newer stuff.
Hi
I have a m.2 ssd in an argon case and running freebsd on the micro SD.
How can I copy the os to the m.2 drive? Do I follow your video for this.
Hi there, Freebsd is not the same thing as Raspberry OS. So I don't think this is the best idea to approach this. Also why are you running freebsd on raspberry? It has it's own designated OS. Just wondering.
I guess the best way to do this on any linux is to create backup image of the sd card a then "burn it" to new SSD drive. "dd" command will be your friend.
Great to get a reply. Well freebsd is the OS we use on our desktop PC. I really like your approach to this. I can copy pi OS to the M.2 ssd using SD copier.and it works. I can load and run freebsd RPI and it works perfectly but the copy function won't work in freebsd. I'm Seeing if the DD command will work in freebsd.
Perhaps you can investigate this?
Leigh
@@leighhorton2806 I most certainly can investigate this, but unfortunately I'm on vacation right now and I have no reasonable way to access my home lab. Will be back in a week if that will be still an issue.
@@helpingninja hi enjoy your holiday. DD test today after using gpart to format the ssd. It worked but won't boot from the ssd.
Let's talk when you return home.
Leigh
@@leighhorton2806 I would propose something like this: 1) DD rpi SD card to img file. "sudo dd bs=4194304 if=/souce/disk of=/destination/backupsd.img". 2) Then use Balena Etcher or DD again to burn this image to SSD drive. 3) Then use gpart to expand the partition to its full size.
Here's an article helpingninja.link/ep0 from 2020 stating that "FreeBSD 13-current" at that time didn't support USB boot, but that guy went somehow around it. Dunno if it's still an issue today. As stated before - I can make a few tests when I get home in a few days.
My Pi never came back on after poweroff. Can't even go back to the original SD card. your way did not work, and made everything worst.
You're the first one to report something didn't go well. So I would be looking for stuff that made this happen. Did you try to unplug ty SSD from RPi (power issues) and boot from SD card? Are you able to check if the SD card is undamaged? I mean mount it to another linux machine a check the partitions if they are readable? Same goes for the SSD drive. On which version of Raspberry are you trying to do this?
This just killed my Pi! Thanks, now I have to rebuild my whole Pi.
Well, I doubt that. If there's anything wrong with the new image on your SSD drive just unplug it and boot up again from the SD card. The SD card could not be damaged just by reading and copying data from it.
Killed how? Just boot from the SD card like you used to. Did you kill the SD card? Use your backup card or restore image. You don't have one? Why the hell not?
@@leglessinoz Thank you.
OOOPPPPSSSS! Maybe you should have given the possible issue at the beginning of the video, NOT after destroying my Pi. Now I have to start all over building my Pi.
Nazev videa v cestine a zbytek anglicky 😂 why? 😂
Název videa, popisek a další metadata se dají k videu uploadovat ve více jazycích. Nicméně audio videa může být pouze jedno. A protože máš RUclips / Prohlížeč / Aplikaci ve výchozím stavu v češtině, tak ti to ukázalo české popisky. Jinak jsou tam i anglické. A audio bylo a je pouze v angličtině.
why is the need to see your face on the video?
I'm sorry if it offends you. Just don't watch the video if it's an issue for you.
@@helpingninja this comment looks more offended than your face, you could simply say that you prerfer it...
@Hustlers4u noted, thanks
Bravo it's excellent and so easy to make. 104857600 octets (105 MB, 100 MiB) copiés, 3,13687 s, 33,4 MB/s with SANDISK SSD PLUS. RPI3B+ with micro sd cards that died every two years.
Thanks 😊
I could't believe it in the beginning …, but my USB drive worked only on USB 2.0 too, until I found your excellent guide. The quirk trick is the perfect idea and was the only solution for my RPI4 USB hardware, I am using now. I would like to kindly remark that we can use an “lsusb” command instead of the “dmesg | grep usb” command to obtain IdVendor/IdProduct information. If we use more USB devices, we can confuse ourselves and not write down the right information. That's what happened to me. The "lsusb" command shows the status only for currently connected devices. Example: drive.google.com/file/d/130tvWnLwAeOxL-0qUxZdB0P3iePtryHN/view?usp=sharing
Thanks.
Thanks for the tip! Have a great day.
How make raspberry pi boot from SSD?
If you use this method it will boot from SSD. No sd card needed afterwards.