How to migrate Raspberry Pi SD card to a USB SSD in 2022 and SpeedTest

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024

Комментарии • 187

  • @Thuliolima2008
    @Thuliolima2008 7 месяцев назад +3

    Very Good, working in 2024, Thank!

    • @helpingninja
      @helpingninja  7 месяцев назад +1

      Thanks for the confirmation, glad to hear that!

  • @MumZ6969
    @MumZ6969 11 месяцев назад +3

    I've revisited this page several times - it's not something I do often enough to remember it. Still working perfectly, thank you 🙂

    • @helpingninja
      @helpingninja  11 месяцев назад +1

      You’re most welcome! Thanks for the message. ;-)

  •  Год назад +6

    Still working in 2023, you never know :). Thank you man, helped alot

    • @helpingninja
      @helpingninja  Год назад

      Glad to hear that. Thank you! Have a great day :)

    • @andrina118
      @andrina118 Год назад +1

      @@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

    • @helpingninja
      @helpingninja  Год назад

      @@andrina118 Thank YOU! You're very welcome! :)

  • @masterp667
    @masterp667 7 месяцев назад +1

    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.

    • @helpingninja
      @helpingninja  7 месяцев назад

      You're most welcome! Glad to hear you made it work :) have a great day

  • @sonnywhite1337
    @sonnywhite1337 Год назад +2

    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

  • @xaiver3612
    @xaiver3612 Месяц назад +1

    i was so afarid of starting from scratch again.. liked and subscribed you saved me from hours of work

  • @sysadmin-info
    @sysadmin-info Год назад +5

    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.

  • @gersonfer
    @gersonfer Год назад +1

    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.

  • @KeithWeston
    @KeithWeston Год назад +7

    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.

    • @josh817
      @josh817 6 месяцев назад

      How will it know which is the boot drive and which is additional storage?

  • @anttisalminen1916
    @anttisalminen1916 Год назад +1

    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.

    • @helpingninja
      @helpingninja  Год назад

      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 :)

  • @tscunami
    @tscunami Год назад +1

    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.

  • @kartonrad
    @kartonrad Год назад +1

    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!

  • @user-kd5nr8me4t
    @user-kd5nr8me4t Год назад +1

    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.

    • @helpingninja
      @helpingninja  11 месяцев назад

      Great to hear! Enjoy your Rpi :)

    • @TheUKRifter
      @TheUKRifter 10 месяцев назад +1

      thanks for confirming it worked with SSD

  • @102diy
    @102diy Год назад +2

    Great and very useful! Thanks! Planing to migrate from SD to ssd too on my rpi4!

    • @helpingninja
      @helpingninja  Год назад +1

      Glad to help. Hope the transition will be smooth for you 🙂

    • @andrina118
      @andrina118 Год назад +1

      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.

  • @bissonomy
    @bissonomy Год назад +2

    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.

    • @helpingninja
      @helpingninja  Год назад +1

      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).

    • @bissonomy
      @bissonomy Год назад +1

      @@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 🤣

    • @helpingninja
      @helpingninja  Год назад

      @@bissonomy I think you can easily use and modify this ansible backup solution to backup your foundry data regulary.

  • @Bratwurstdealer
    @Bratwurstdealer 7 месяцев назад +1

    Best migration guide on the internet! In forums can be found so many crap....

    • @helpingninja
      @helpingninja  7 месяцев назад +1

      Thank you for your kind words!

  • @Induratize2
    @Induratize2 Год назад +1

    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.

  • @Dutchabi63
    @Dutchabi63 Год назад +1

    Super helpful video, just what I needed. Also respect to the usb case developer though, for giving it a product id of '1337' ;)

  • @LionRoars918
    @LionRoars918 9 месяцев назад

    Thank you .. that is very handy. Much easier than the SD Card clone I was doing before.

  • @Bouncy8864
    @Bouncy8864 2 месяца назад +1

    Doesn't work with Home Assistant (on RPi4). Not apt, no git. Any clue how to make it work?

  • @matfen7978
    @matfen7978 Год назад +1

    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

    • @helpingninja
      @helpingninja  Год назад +1

      You're welcome! Thank you for the kind words. Say hi to your cousin. :)

    • @matfen7978
      @matfen7978 Год назад +1

      @@helpingninja I did it!!!!

  • @SachaQS
    @SachaQS Год назад +1

    Easy as 1-2-3! Thanks @helpingninja ✌

  • @kuvikina
    @kuvikina 25 дней назад

    Thank you very much for this very informative vid.

  • @freedo201
    @freedo201 Год назад +2

    This is exactly what I needed. Thank you!

    • @helpingninja
      @helpingninja  Год назад

      You’re welcome!

    • @insideSFPD
      @insideSFPD Год назад +1

      easy process, thank you very much!

    • @helpingninja
      @helpingninja  Год назад

      @@insideSFPD You're welcome! Thanks for watching. Have a wonderful day :)

  • @Uproar3323
    @Uproar3323 Год назад +1

    This worked great. And no hassle at all. Thanks a ton :)

  • @arthurchan9873
    @arthurchan9873 9 месяцев назад +1

    Thanks a lot

  • @eeandersen
    @eeandersen Год назад +3

    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.

    • @helpingninja
      @helpingninja  Год назад +1

      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!

    • @eeandersen
      @eeandersen Год назад +1

      @@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?

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @helpingninja
      @helpingninja  Год назад

      @@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?

  • @jerther_
    @jerther_ Год назад +1

    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.

    • @helpingninja
      @helpingninja  Год назад

      I for, sure would, not delete such a post. Go ahead and post the link to help others.

  • @JeanFrancoCaringi
    @JeanFrancoCaringi 9 месяцев назад

    it worked with Mi Raspberry Pi4B with Manjaro Minimal! Thanks a lot!

    • @helpingninja
      @helpingninja  9 месяцев назад +1

      Thanks, great to know it works with Manjaro too.

  • @JayH_Norway
    @JayH_Norway 2 года назад +1

    This was very useful. Thank you so much. Subscribed!

  • @shivcharan5700
    @shivcharan5700 Год назад +1

    You, sir, are a lifesaver!

  • @Jim_One-wl4ke
    @Jim_One-wl4ke 4 месяца назад +1

    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 ❤

    • @helpingninja
      @helpingninja  4 месяца назад

      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.

  • @QueenLISA_Cutee
    @QueenLISA_Cutee 9 месяцев назад

    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

  • @lemoncryptonfa4980
    @lemoncryptonfa4980 Год назад +1

    Straight to the point. Great tuts 👍

    • @helpingninja
      @helpingninja  Год назад

      Thank you!

    • @lemoncryptonfa4980
      @lemoncryptonfa4980 Год назад

      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.

    • @helpingninja
      @helpingninja  Год назад

      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.

  • @fingeroso
    @fingeroso Год назад +1

    thank you for the tutorial.

  • @leighhorton2806
    @leighhorton2806 Год назад +1

    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

    • @helpingninja
      @helpingninja  Год назад

      Glad you worked it out 👍

    • @helpingninja
      @helpingninja  Год назад

      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.

  • @KratomSyndicate
    @KratomSyndicate Год назад +1

    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!

    • @helpingninja
      @helpingninja  Год назад

      Nice! Good luck out there. Glad I could help.

    • @eeandersen
      @eeandersen Год назад +1

      Please tell us about your equipment: which SSD and which enclosure! TIA.

    • @KratomSyndicate
      @KratomSyndicate Год назад +2

      @@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)

  • @MobiliteitComfortEttenLeur
    @MobiliteitComfortEttenLeur Год назад +1

    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!

    • @helpingninja
      @helpingninja  Год назад

      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

    • @MobiliteitComfortEttenLeur
      @MobiliteitComfortEttenLeur Год назад +2

      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!

    • @helpingninja
      @helpingninja  Год назад +1

      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.

  • @MegaEyeTV
    @MegaEyeTV Год назад +1

    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.

    • @helpingninja
      @helpingninja  Год назад

      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

  • @SuperMaaarek
    @SuperMaaarek 5 месяцев назад

    Hi.it will also work when migrating from sd card to NVMe SSD?Raspberyy Pi 5.Thank.

    • @helpingninja
      @helpingninja  5 месяцев назад +1

      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

  • @davidhubbell9643
    @davidhubbell9643 Год назад +1

    I think you said this will only work on RPI 4. Is that correct or will it work for all PI's

    • @helpingninja
      @helpingninja  Год назад

      Hi, I've tested it on RPi3 and 4 and it worked on both.

  • @patrickkoerner6959
    @patrickkoerner6959 6 месяцев назад

    Unfortunately it did not work to clone the SD card to an NvMe disk on the new Raspberry Pi5.
    Still looking for a solution.

    • @helpingninja
      @helpingninja  5 месяцев назад

      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

    • @patrickkoerner6959
      @patrickkoerner6959 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.

    • @helpingninja
      @helpingninja  5 месяцев назад

      @@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.

  • @josem.escrich2610
    @josem.escrich2610 6 месяцев назад

    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?

    • @helpingninja
      @helpingninja  5 месяцев назад

      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?

  • @josh817
    @josh817 5 месяцев назад

    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.

    • @helpingninja
      @helpingninja  5 месяцев назад

      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.

    • @josh817
      @josh817 5 месяцев назад

      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

    • @helpingninja
      @helpingninja  5 месяцев назад

      @@josh817 Are you trying to migrate vanilla Raspberry OS or some other OS? There was/is an issue with Debian I think.

  • @Rajmohittron
    @Rajmohittron Год назад

    Is it possible to install OS in one of the partitions in SSD? If yes, then what is the procedure for it?

    • @helpingninja
      @helpingninja  Год назад +1

      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.

  • @cadinhodev
    @cadinhodev Год назад

    Hello bro, excellent explanation, however, my Raspberry Pi4 8Gb still has the 3.0 port very slow, even after I followed the video tutorial.

    • @cadinhodev
      @cadinhodev Год назад +1

      sorry, it worked now, I had written down the wrong values for my SSD. Show bro, very good!!!

    • @helpingninja
      @helpingninja  Год назад

      @@cadinhodev Glad I could help. Have a great day!

  • @weaponizedkarma252
    @weaponizedkarma252 Год назад +1

    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

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @weaponizedkarma252
      @weaponizedkarma252 Год назад +1

      @@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

    • @helpingninja
      @helpingninja  Год назад

      @@weaponizedkarma252 cool :)

  • @leglessinoz
    @leglessinoz Год назад

    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.

    • @helpingninja
      @helpingninja  Год назад

      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).

  • @wharkkyryhniann8023
    @wharkkyryhniann8023 Год назад +1

    @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!

    • @helpingninja
      @helpingninja  Год назад +1

      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.

    • @helpingninja
      @helpingninja  Год назад +1

      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.

    • @wharkkyryhniann8023
      @wharkkyryhniann8023 Год назад +1

      @@helpingninja Awesome! Thank you very much. Appreciated. I like to learn. You help that.

  • @sauravdante1
    @sauravdante1 Год назад

    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?

    • @helpingninja
      @helpingninja  Год назад

      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.

  • @javiermitchell7073
    @javiermitchell7073 Год назад

    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

    • @helpingninja
      @helpingninja  Год назад

      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?

  • @marcelvanderkooij
    @marcelvanderkooij 11 месяцев назад

    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!!

    • @helpingninja
      @helpingninja  11 месяцев назад

      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.

    • @marcelvanderkooij
      @marcelvanderkooij 11 месяцев назад

      @@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...)

    • @marcelvanderkooij
      @marcelvanderkooij 11 месяцев назад

      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.

  • @1966Ally
    @1966Ally Год назад

    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

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @1966Ally
      @1966Ally Год назад

      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). .

    • @helpingninja
      @helpingninja  Год назад

      @@1966Ally It’s supposed to clone Raspberry Pi OS. Are you trying to clone sd cards with Kali Linux?

    • @1966Ally
      @1966Ally Год назад

      @@helpingninja Thank you for replying again, yes it's for my Kali Linux system on my PI4B

    • @helpingninja
      @helpingninja  Год назад +1

      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.

  • @3niknicholson
    @3niknicholson Год назад

    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
      @helpingninja  Год назад

      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. ;)

    • @3niknicholson
      @3niknicholson Год назад

      @@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!

    • @helpingninja
      @helpingninja  Год назад

      @@3niknicholson Glad you made that work! 👍

  • @mzsolnay
    @mzsolnay Год назад

    I did all the steps cloning took quite long, but was successful. but my Pi won't boot from USB. What did I miss?

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @mzsolnay
      @mzsolnay Год назад

      @@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 ?

  • @neometa
    @neometa Год назад

    Can i use it with my Ubuntu Server OS on pi4?

    • @helpingninja
      @helpingninja  Год назад +1

      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.

  • @kmolder9499
    @kmolder9499 Год назад +1

    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

    • @helpingninja
      @helpingninja  Год назад

      Glad you made it work! Thanks for sharing.

  • @vikasthombre
    @vikasthombre Год назад

    Can RPI clone support cloning of Android 13 SD card ?

    • @helpingninja
      @helpingninja  Год назад

      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
    @cryptohacker2829 Год назад +1

    When I went to do a speed test it said permission denied!?

    • @helpingninja
      @helpingninja  Год назад +1

      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.

    • @cryptohacker2829
      @cryptohacker2829 Год назад

      @@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

    • @helpingninja
      @helpingninja  Год назад +1

      @@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?

    • @cryptohacker2829
      @cryptohacker2829 Год назад

      @@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.

  • @leighhorton2806
    @leighhorton2806 Год назад

    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.

    • @helpingninja
      @helpingninja  Год назад

      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.

    • @leighhorton2806
      @leighhorton2806 Год назад +2

      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

    • @helpingninja
      @helpingninja  Год назад

      @@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.

    • @leighhorton2806
      @leighhorton2806 Год назад +2

      @@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

    • @helpingninja
      @helpingninja  Год назад

      @@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.

  • @KarlTwiford
    @KarlTwiford Год назад +1

    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.

    • @helpingninja
      @helpingninja  Год назад

      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?

  • @KarlTwiford
    @KarlTwiford Год назад +1

    This just killed my Pi! Thanks, now I have to rebuild my whole Pi.

    • @helpingninja
      @helpingninja  Год назад +3

      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.

    • @leglessinoz
      @leglessinoz Год назад +4

      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?

    • @helpingninja
      @helpingninja  Год назад

      @@leglessinoz Thank you.

  • @KarlTwiford
    @KarlTwiford Год назад +2

    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.

  • @bzukendap
    @bzukendap Год назад

    Nazev videa v cestine a zbytek anglicky 😂 why? 😂

    • @helpingninja
      @helpingninja  Год назад +1

      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ě.

  • @aharongina5226
    @aharongina5226 11 месяцев назад

    why is the need to see your face on the video?

    • @helpingninja
      @helpingninja  11 месяцев назад

      I'm sorry if it offends you. Just don't watch the video if it's an issue for you.

    • @Hustlers4u
      @Hustlers4u 10 месяцев назад +1

      @@helpingninja this comment looks more offended than your face, you could simply say that you prerfer it...

    • @helpingninja
      @helpingninja  10 месяцев назад

      @Hustlers4u noted, thanks

  • @arnowouap2477
    @arnowouap2477 Год назад +1

    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.

  • @JanezZupan
    @JanezZupan Год назад +2

    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.

    • @helpingninja
      @helpingninja  Год назад

      Thanks for the tip! Have a great day.

  • @8404038868
    @8404038868 9 месяцев назад

    How make raspberry pi boot from SSD?

    • @helpingninja
      @helpingninja  9 месяцев назад

      If you use this method it will boot from SSD. No sd card needed afterwards.