Raspberry Pi booting from USB/SSD

Поділитися
Вставка
  • Опубліковано 22 гру 2021
  • Today we will configure a #RaspberryPi to #boot from an #SSD/#HDD and copying your existing SD image to the SSD/HDD and extending the volume to use that whole SSD/HDD. It really speeds up your Pi's disk access.
    It was a great idea by Retro Arcade Music Man, who wants to have his RetroPie running solely from USB storage.
  • Навчання та стиль

КОМЕНТАРІ • 61

  • @user-wt5yk4dn7k
    @user-wt5yk4dn7k 12 днів тому +1

    Thank you very much! Your method worked the first time, exactly like in the video. I had to spend the whole day until I found your video in the search

  • @mohamedghida9540
    @mohamedghida9540 Рік тому +4

    million thanks ....... you really made up my day....i was deep to my ears to do it...once more million thanks

    • @CallousCoder
      @CallousCoder  Рік тому

      Thank you for taking the time to comment and thank me, that means a lot! Have fun with it!

  • @christiaanprenger8653
    @christiaanprenger8653 2 роки тому +2

    Hi Ray, i just finished following your instructions and it works like a charm! Thank you very much for this great video with nice background music. Cheers and have a nice 'oudejaarsdag'. Greetings from the eastern part of the Netherlands.

    • @CallousCoder
      @CallousCoder  2 роки тому +1

      Gaaf man! Dank je voor je comment, altijd leuk als iemand je tutorial volgt :) En uiteraard ook een veilig uiteinde en een super goed 2022 gewenst.

  • @hughatkins
    @hughatkins 2 роки тому

    Thank You for this video, I was stuck - but you cleared everything up with your excellent explanation and detail!

    • @CallousCoder
      @CallousCoder  2 роки тому

      Cool to hear! Thanks for taking the time to comment.

  • @RetroWK
    @RetroWK 2 роки тому

    Great video! Thanks! Very useful! Merry Christmas!

    • @CallousCoder
      @CallousCoder  2 роки тому

      Thanks Wolfgang! Same to you and your family!

  • @crc-error-7968
    @crc-error-7968 2 роки тому

    Thank you! A tutorial fast simply and it work!

  • @harmfpv
    @harmfpv Рік тому

    This is perfect; all other tutorials explain it with a graphical interface, and something that takes on the lite step by step is really what I need as a novice running lite os.
    I presume from the slight accent and your name that you are a fellow dutchman?
    I will try this later today, thanks!
    Greetings from Zwolle

    • @CallousCoder
      @CallousCoder  Рік тому +1

      Hoi!! Inderdaad een andere Nederlander hier! Ik ben blij dat je er iets aan gehad hebt. Fijne feestdagen uit een grauw en grijs Nieuwegein.

  • @ToyTechMachines
    @ToyTechMachines 2 роки тому

    That's a really good idea!👍

    • @CallousCoder
      @CallousCoder  2 роки тому +1

      Thank @Retro Arcade Music Man for the idea ;)
      Merry Christmas 🎁

    • @ToyTechMachines
      @ToyTechMachines 2 роки тому

      @@CallousCoder Merry Christmas 🎅 Awesome guys 👍

  • @hughparker1
    @hughparker1 2 роки тому +1

    Thank you for a very clear tutorial on how to boot from USB on Raspberry Pi OS Lite. I've seen ones for the GUI version but this is exactly what I need. I have a small Raspberry Pi NAS currently booting from SD card and would like to boot from USB. thanks very much I really great tutorial 👍

  • @kostantinosmag2986
    @kostantinosmag2986 2 роки тому +1

    NICE VIDEO....

  • @arthurchan9873
    @arthurchan9873 9 місяців тому +1

    Thank a lot

    • @CallousCoder
      @CallousCoder  9 місяців тому

      Thanks you for watching and commenting

  • @markahdz
    @markahdz Рік тому +1

    Great video, Im having difficulties when copying with dd it takes for ever to copy, does it take too long or show any sign of progress ? I'm trying to install a lite version.
    Update.- I guess I was so desperate to get it going, long story short, I watched tv and came back to check on the process and it was finally done, it took around 10 or so for a 64gb SD card but got it done, again thank you so much for this tutorial I was pulling my hair trying to make it work with another tutorials but yours just was so easy, thank you again.

  • @paultheretrogamer
    @paultheretrogamer 2 роки тому

    Awsome video

  • @cjbough4282
    @cjbough4282 2 роки тому +3

    Thank you. I was able to get Ubuntu-Mate installed onto my m.2 drive using your video. I did have an issue with corruption of the drive after the files stem was expanded. This was sorted by running this cmd "fsck /dev/sda1 -y" on the initramfs screen.

    • @kreont1
      @kreont1 2 роки тому

      This not work for Ubuntu mate

  • @pieterjdw
    @pieterjdw 2 роки тому

    Thanks for this video. Maybe mention how to format the usb drive (exfat?)

    • @CallousCoder
      @CallousCoder  2 роки тому

      If you don’t clone yourself SD drive, like we did here. Then you want ext4 you are running Linux. Or whatever file system your OS prefers. It’s no different from your SD card.

  •  8 місяців тому

    Hello thank you for the video. Would you also be so kind to explain or even better, create a video explaining, how we can use an SSD with NTFS file format to boot and install OS on?
    As far as I know the imager currently converts the main boot partition to FAT32. I really would like to set my first pi on an SSD which is using NTFS or at least ExFat at the very least.
    Would really appreciate any help or guidance from you.

  • @ShinyDuckFish
    @ShinyDuckFish 2 роки тому

    Thank you for the video! I am setting this all up, and am formatting my SSD. What file system does the Raspberry Pi prefer the SSD to be in?

    • @CallousCoder
      @CallousCoder  2 роки тому

      It’s not the po that has a preference it’s the OS. And you probably already rub on an SD card and this process copies that SD card, all you need to do is extend that new filesystem. And if you like to know ext4 is the most likely candidate for most distros

    • @ShinyDuckFish
      @ShinyDuckFish 2 роки тому

      Alrighty! Thank you so much for the help!

  • @claudio_sergiacomo
    @claudio_sergiacomo 2 роки тому

    Great tutorial... quick question.. is raspbian already setup to boot from USB automatically if no SD card is inserted??? because I didn't see if you changed the boot order in the configuration menuof raspbian

    • @CallousCoder
      @CallousCoder  2 роки тому

      That is the first step in this video, where we make an SD card with the boot order.

  • @shadowgenesis2877
    @shadowgenesis2877 2 роки тому

    Flashing the eeprom seems to be a pi 4 or later with the imager. I been trying to do it with a pi 3 B+ and I can get the SD to boot with the USB adapter but not my usb drive.

    • @CallousCoder
      @CallousCoder  2 роки тому

      That could be. I don’t know because I don’t have a Pi3.
      What did Google say about this? Just curious.

  • @capsized8603
    @capsized8603 2 роки тому

    To avoid formatting the external drive, can I shrink the existing partition, create a new partition and copy over the the sd card to that new partition to then boot from it? e.g. instead of copying over the whole device /dev/sda it would be the partition /dev/sda2 and /dev/sda3 (one for the boot partition and the other for the root)

    • @CallousCoder
      @CallousCoder  2 роки тому

      Theoretically that should work but you will need to install a boot manager to tell what to boot.

  • @nicholasbowler8473
    @nicholasbowler8473 2 роки тому

    how long should it take to copy? its been a little while and this is my second go at it, not sure if im impatient or if its not working for some reason?

    • @CallousCoder
      @CallousCoder  2 роки тому

      Depends on the size really. And whether you have set bs= parameter.
      As long as both drives are flashing it’s working. I copy 32GB on about 5 minutes.
      And did you connect to the USB2.0’ports (the blue one) that’s the fast usb.

  • @1966Ally
    @1966Ally Рік тому +1

    Hi, dank voor je goed te volgen tutorial, echter werkt dit niet voor Kali Linux. Ik kreeg nog een beetje hoop om de USB bootloader eerst te laden wat je liet zien en dat gaat ook zonder problemen. Maar ik krijg het niet voor elkaar om Kali Linux te laten booten van SSD. En dan bedoel ik na de image van me SD card.

    • @CallousCoder
      @CallousCoder  Рік тому

      Dank je wel voor je reply. In principe zou Kali ook moeten werken aangezien die bios gewoon de USB driver bevat na het vertellen dat je van USB wilt starten.
      Ik ken Kali niet (goed genoeg) om enigzins te suggereren waar het mis kon gaan.

  • @kuljitghuman8077
    @kuljitghuman8077 2 роки тому

    Can I use samsung bar plus 128gb boot drive and 1tb samsung ssd for storage with 3amp power supply? Any problems ?

    • @CallousCoder
      @CallousCoder  2 роки тому +1

      You will have to see what the disks use as power. SSDs usually don’t draw much. But the power draw is limited by the USB ports anyways. So if they attach to usb and have no external power feature they’ll work on your pi.
      Because the USB spec dictates how much current at 5V can be drawn.

  • @none941
    @none941 2 роки тому

    You have clarified the procedure for the eeprom update for usb booting, but I'm not using RaspberryPi OS. How can I do the file system expansion on the new USB drive while using Ubuntu Mate?

    • @CallousCoder
      @CallousCoder  2 роки тому +1

      In Ubuntu you need to install gparted and there you’ll find an option to extend fs

    • @none941
      @none941 2 роки тому

      @@CallousCoder Thank you! That was what I suspected.

  • @jyvben1520
    @jyvben1520 2 роки тому

    one minor point, the "music", why do technical videos need music ?

    • @CallousCoder
      @CallousCoder  2 роки тому

      Because it adds some ambience otherwise the dead space makes it boring.

  • @kreont1
    @kreont1 2 роки тому

    How do it for Ubuntu on rpi4 ???

    • @CallousCoder
      @CallousCoder  2 роки тому

      Same process except for expanding file system. There’s a comment below where I answered that question too.

  • @macnottsuk
    @macnottsuk 2 роки тому

    A bit long winded. From you pi desktop open imager select the SD card to copy from select your SSD to copy to when done shut down remove SD card and switch on the pi. Job done.

    • @CallousCoder
      @CallousCoder  2 роки тому

      We need to pleasure the algorithm.

  • @sadikbroboniqi6744
    @sadikbroboniqi6744 Рік тому

    Why not using terminal run the ``sudo raspi-config`` command to bring up the configuration tool

  • @harmfpv
    @harmfpv Рік тому

    Hey there I do get a small glitch:
    as you can see it seems to copy went down correctly:
    xxx@raspberrypi:~ $ sudo dd if=/dev/mmcblk0 of=/dev/sda bs=1024k
    15080+0 records in
    15080+0 records out
    15812526080 bytes (16 GB, 15 GiB) copied, 372.832 s, 42.4 MB/s
    xxx@raspberrypi:~ $ sudo shutdown now"
    But then after reboot I get:
    Connection to raspberrypi closed by remote host.
    Connection to raspberrypi closed.
    C:\Users\xxx>ssh xxx@raspberrypi
    ssh: connect to host raspberrypi port 22: Connection timed out
    I did notice the following this when throwing around the dmsg command:
    [ 336.789265] GPT:Primary header thinks Alt. header is not at the end of the disk.
    [ 336.789290] GPT:1953525165 != 1953525167
    [ 336.789306] GPT:Alternate GPT header not at the end of the disk.
    [ 336.789314] GPT:1953525165 != 1953525167
    [ 336.789324] GPT: Use GNU Parted to correct GPT errors.
    [ 336.789363] sda: sda1 sda2 sda3 sda4
    [ 336.792337] sd 0:0:0:0: [sda] Attached SCSI disk
    What does that mean, was my SSD not configured correctly?

  • @richaiegantvbox5927
    @richaiegantvbox5927 2 роки тому

    Thanks working now. I have 1 other issue, after booting from USB when the screen saver blanks the screen I cannot reopen the desktop without rebooting.

    • @CallousCoder
      @CallousCoder  2 роки тому

      That you need to Google, I don’t use the UI.
      That shouldn’t happen, xscreensaver reads the keyboard. But yeah, there’s a 1000 things that can be wrong. Google is your friend :)

  • @richaiegantvbox5927
    @richaiegantvbox5927 2 роки тому

    per the text file within the bootloader directory, this is for the Pi 4 and not the Pi 3/3b/3b+. It did not work for me on a Pi3B+.

    • @CallousCoder
      @CallousCoder  2 роки тому

      Thanks for the comment. I indeed did not use a Pi3, I don't have one.

    • @ernestgalvan9037
      @ernestgalvan9037 2 роки тому +1

      Pi3b+ has native USB boot…
      For that matter, Pi4 after the initial run also have native USB boot.