Usb boot Raspberry Pi zero 2w. Speed tests SSD Vs SD Vs USB drive.

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

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

  • @pepefromthecerro7357
    @pepefromthecerro7357 2 года назад +9

    So I was playing with the usb boot thingy on the pi zero 2 w and discovered something:
    Whenever the board has no sd card inserted and there is a usb drive connected (boots from this), the raspberry will check constantly if a sd card is present, and by doing that it will use about 8-10% cpu utilization (may be higher). You can check this easily just looking at the board led blinking in a pattern 1:15, 1:19, 1:23. You can also check this with the "top" command, a process named "kworker" at the very top must be visible.
    There is a solution tho, you just need to add "dtparam=sd_poll_once" in the config.txt file (/boot/config.txt), this parameter should tell the board to only check for a sd card once at boot. Well that or simply leaving a sd card inserted in the slot (could be a blank sd card, just need to be one there) while booting via usb.
    This may be a negligible thing, but with so much resource on the pi zero 2 w, it couldn't hurt saving that percentage of cpu. (Actually, while I was trying to play music on the pi, there was a kind of distortion and who would have though that the culprit was the process I talked about previously).
    The funny thing is that it appears that every pi suffers from this (the ones with usb boot capabilities it is). Yes, even the pi 4b, I recommend checking jamesachambers.com/raspberry-pi-reclaim-1-cpu-usage-when-ssd-msd-booting/
    Sorry for the long comment, I just though that this may be useful.

  • @hansfehlow9657
    @hansfehlow9657 3 года назад +6

    To speed up boot, raspi-config in terminal, Advanced Options, Boot Order, USB Boot, this will look for the boot to your SSD before checking the SD slot. The other option looks for an SD card first. My Pi 4 8GB starts Bullseye in 29.6 seconds to GUI screen. Don't know if the helps as I don't have any high speed SD cards. Let me know.

  • @hamonic-fg7fx
    @hamonic-fg7fx Год назад

    I am thinking about to get one of this board that help me to transfer photo from SD to SSD harddrive during travel. And I dont want want to bring my laptop.
    now I consider to buy one zero 2w.
    thank for sharing this information, and this is very very useful for me!!!!

  • @breevwhyman2985
    @breevwhyman2985 3 года назад +1

    Sir, thanks since your video helped me to remember to check the only USB pen here actually works (still) as a regular drive.
    Vin

  • @AndersJackson
    @AndersJackson 3 года назад +2

    The RPi 4 has larger RAM, so it have more buffers so it have less read and write to the device. Which doesn't happen when you boot.
    SD are not build for using as general computer storage, so it will be faster. And more stable.
    Remote Desktop is actually another login all together, so it is on another screen all together. You see that if you add another user with another desktop background. So you could run different users at the same time in the RPi.

  • @TheOleHermit
    @TheOleHermit 3 года назад +4

    I found that booting a RPi 4 from USB3.0 is faster than the uSD. So, I have a uSD-USB3.x adapter, which I use to boot into any of a variety of OS builds on uSD cards. Then, my SSD data and library of downloads is never disturbed and always accessible.
    Since the SSD r/w is limited by USB3, performance is nearly the same as booting from the SSD, without all the hassles of protecting data, prior to writing an OS onto the SSD.
    Works best for me. JS😎

  • @randyfolsom
    @randyfolsom 3 года назад +1

    As always, very informative. Thx for all the links.

  • @pgtmr2713
    @pgtmr2713 3 года назад +1

    Bar is going to work better with usb 3.0. Also I've had slow downs on all types of storage. A format and refresh usually fixes that. My oldest Bar was running really slow, failed the tests. It now tests good comparable to another of the same type and size. Both had their own individual refresh Twister, not cloned.

  • @amnesie6615
    @amnesie6615 3 года назад +1

    The point is not if it's worth it, but if it is possible! A lot of SDcards are not designed for a whole lot of write cycles. So I welcome this option.

  • @Lp-ze1tg
    @Lp-ze1tg 3 года назад +1

    Thank you for the video. I will stick with the micro SD card. Because it is portable than anything else.

  • @BillyNoMates1974
    @BillyNoMates1974 3 года назад +1

    good video. Some interesting results.
    I done a test with rasbian pie OS on my laptop to see if plex will run on it.
    It actually ran fine over wifi for one streaming movie (1080p mp 4) and only was using 580mb ram on the rasbian pie os.
    So its going to be tight but I may actually be able to make a miniature Pi Zero 2 W Plex server.
    my only problem is SD Cards only go to a max size of 1 TB !
    I want more.

  • @puccaso
    @puccaso 3 года назад +3

    12:54 I still don't get why you don't use the build in Vnc? I mean, we pay for the license with each rpi we buy lol

    • @paulmaydaynight9925
      @paulmaydaynight9925 3 года назад +1

      'nomachine' is better, you can remote stream a vlc video fine

    • @amnesie6615
      @amnesie6615 3 года назад +2

      Pretty simple, VNC is laggy! ;)

    • @leepspvideo
      @leepspvideo  3 года назад +2

      I need to revisit vnc and try NoMachine. Both are on my list and have been on my iPad for months. What do you think the advantages are of VNC over xrdp.

    • @paulmaydaynight9925
      @paulmaydaynight9925 3 года назад +1

      no direct links allowed on yt :[

    • @andya5802
      @andya5802 3 года назад

      @@leepspvideo the WYSIWYG screen control. Ideal to support users what to do when you are too far away to be there.

  • @Mister-Gee-9999
    @Mister-Gee-9999 3 года назад

    Lee 00:39 did you mix up hdmi and micro usb? I think you said micro hdmi. But we all knew what you meant. I'm booting mine with an emmc that works well.

  • @mrnobody4183
    @mrnobody4183 3 года назад +1

    Can we use scrcpy on pi zero 2 ?

    • @leepspvideo
      @leepspvideo  3 года назад +1

      I haven’t tried

    • @mrnobody4183
      @mrnobody4183 3 года назад

      Well, can you try and tell me please.

  • @xasmaniusvolk8416
    @xasmaniusvolk8416 3 года назад

    7:40 probably because it has to initialize more - it's like with old XT PCs - the newer model of the same PC may have a faster CPU and more RAM but boots slightly slower

  • @cuplesey
    @cuplesey 2 года назад

    Wonder if this would work with a Zero4u? Think I'll try this and see if that allows for more usb connections

  • @paulmaydaynight9925
    @paulmaydaynight9925 3 года назад

    does using the imager boot rom image to switch the boot sequence speed up the usb boot time i wonder, what about a slower basics 16/32meg usb stick too.
    just got the [2 Pack],Rekavin 34W/6A Quick Charge 3.0 Wall Charger Multi Port USB marked 3.1a per port so these might better power several z2w with peripherals...
    the Youmile ENC28J60 Ethernet Shield LAN Network Module 3.3V SPI Interface is supposed to work [to be tested, need to find the right pinout data] so some spi etc usb should also work if its got an overlay

  • @foobarbarfoo2377
    @foobarbarfoo2377 3 года назад

    Good. You can make a diff of the two boot traces to check what steps each system follows at boot. Are the two CPUs clocked at the same frequency?

  • @yetersizbakiye8164
    @yetersizbakiye8164 3 года назад +1

    İ love amiga,very nice video, thanks

    • @leepspvideo
      @leepspvideo  3 года назад

      Thanks, me too
      Pimiga 1.5 4000+ games. Amiga A500, A1200 CD32. Raspberry Pi 3,4 & 400
      ruclips.net/video/b5bMuwEzFj0/видео.html
      Pimiga Fully Loaded 1797 Amiga Games & much more. A500, A1200 CD32. Raspberry Pi 4 / 400
      ruclips.net/video/-j7CWep3FMc/видео.html
      AMIGA CD32 emulator Raspberry Pi 4 FS-UAE gameplay test plus cpu temp check
      ruclips.net/video/gxUD2YCSDLs/видео.html
      AMIGA Emulator Raspberry Pi 4 FS-UAE Raspbian gameplay test
      ruclips.net/video/RFjH1W2rq1U/видео.html
      AMIGA 600HD Gotek Drive Installation, Flash Floppy and MKIV mouse adaptor
      ruclips.net/video/IioWSoI1p-g/видео.html
      Part 2 Amiga from the loft PCMPCIA Compact Flash PC 3.5” problems
      ruclips.net/video/4IWIdNHrHOo/видео.html
      Amiga A600HD Games Test brought down from loft part 1
      ruclips.net/video/dTW34kSqkJg/видео.html

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

    nice , i was worrying why my ssd can perform so bad ,its around 1000 iops, thanks

  • @xasmaniusvolk8416
    @xasmaniusvolk8416 3 года назад

    2:24 I think you actually can.... I just can't find the picture that shows how for some reason but with the pinout maybe you'll come up with a solution yourself...

  • @vincentnunna510
    @vincentnunna510 3 года назад

    Hi @leepvideo did you already try GeForce now on raspberry pi 4? I dont Know if It's a good way to play windows games.

    • @leepspvideo
      @leepspvideo  3 года назад

      I don’t think I have had it running well on the Pi. I must try again. 👍🏻

  • @deliciousbob
    @deliciousbob 3 года назад

    Sry for the non-technical question, but I just wanted to mention that this OS looks amazing!!! What is it called ? thx

    • @obvious_giraffe8386
      @obvious_giraffe8386 3 года назад

      2:40 he says its Raspberry Pi OS. He just customized the look of it

    • @deliciousbob
      @deliciousbob 3 года назад

      @@obvious_giraffe8386 Thx Richard, would be actually nice to see, what he did to get it to look like this :)

    • @512mb4
      @512mb4 3 года назад

      Bottom bar transparency can be edited without any addon

    • @leepspvideo
      @leepspvideo  3 года назад

      See 6.30 in this video
      Custom Raspberry Pi OS. Create a backup Restore to SD, USB or SSD. Raspberry Pi 4.
      ruclips.net/video/pPTaozHIQeU/видео.html

  • @TheRedInTheSkyIsOurs
    @TheRedInTheSkyIsOurs 3 года назад

    Hi, how do you setup the Raspberry Pi Zero 2W so it boots from USB?

    • @leepspvideo
      @leepspvideo  3 года назад

      See the start of this video
      Overclocking Raspberry Pi zero 2w. From 1000Mhz to 2147Mhz
      ruclips.net/video/Wshq5rpDQHc/видео.html

  • @alexanderpoplawski577
    @alexanderpoplawski577 3 года назад

    I noticed, that the Pi4 in the boot test had no network. Maybe there were some timeouts encountered during boot.

    • @leepspvideo
      @leepspvideo  3 года назад

      Probably because I setup the WiFi on the Zero

    • @alexanderpoplawski577
      @alexanderpoplawski577 3 года назад

      @@leepspvideo I just thought, that could explain the longer boot time on the Pi 4.

  • @ewoks42
    @ewoks42 3 года назад

    what's at the bottom of Pi4 4GB at 7:30?

    • @leepspvideo
      @leepspvideo  3 года назад

      A battery
      Pi sugar pro 2 amzn.to/3mxIYuE
      As an Amazon Associate I earn from qualifying purchases

  • @breevwhyman2985
    @breevwhyman2985 3 года назад

    Sir, do you know any GOOD 64 bit linux versions for this board yet?
    twister?
    i ask because the..... $1 per month...... "ARDOUR digital audio workstation"...... is available for the Pi but it is 64 bit

    • @leepspvideo
      @leepspvideo  3 года назад +1

      64bit operating systems usually need more ram. Raspberry Pi OS 32bit with Zram and Puffin browser works well.

    • @breevwhyman2985
      @breevwhyman2985 3 года назад

      okay, thank you ........since i don't realize those facts.
      ........
      This windows here is 64 bit and has a large large page file.
      THe official Msoft web page told me how to set the page file
      for this particular win OS.
      Thanks. Innovative tools are always useful. "Bandwidth Hero"
      is helpful for speeding up WEB on a decent CPU.
      Yes Puffin is good for free.
      thanks.

  • @paulsanders5909
    @paulsanders5909 2 года назад

    hi, is running 32bit bullseye from ssd on zero 2w snappier than sd card

    • @leepspvideo
      @leepspvideo  2 года назад

      Yes the results are in the description

  • @FlobioPlays
    @FlobioPlays 3 года назад

    Wouldn't Pi 0 be faster on booting because of the difference in ram? 4 seconds makes sense to me.

  • @manuelsen3180
    @manuelsen3180 3 года назад

    Thanks for sharing !

  • @christopherlongo3459
    @christopherlongo3459 2 года назад

    are you using raspberry pi os 32bit or 64bit?

  • @leadfarmer5563
    @leadfarmer5563 3 года назад

    What fan do you have on that RPI?

    • @leepspvideo
      @leepspvideo  3 года назад +1

      Pimoroni fan shim. I have had it for a long time. It’s surprisingly quiet
      Raspberry Pi 4 FAN SHIM Pimoroni gaming test PSP GTA PPSSPP
      ruclips.net/video/rTrKYcOOq0Y/видео.html

  • @TrollingAround
    @TrollingAround 3 года назад

    You can change the boot order in raspi-config.

  • @nikolaicklamovski754
    @nikolaicklamovski754 3 года назад

    How do you get the Pi Zero 2 W to boot from USB only in the first place?

    • @leepspvideo
      @leepspvideo  3 года назад

      See the start of this video. ruclips.net/video/Wshq5rpDQHc/видео.html
      I didn’t have to change anything, just write the os to usb. Some usb sata devices aren’t compatible.

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

    usb is kinda HotPlug.
    the change that you destroy the data system by strip the powerrcable is as low as on a hdd(ssd)

  • @macnottsuk
    @macnottsuk 3 года назад

    I once saw a pi vid that talked about vram. Apparently you can setup vurtual ram on your SSD drive. Which should improve performance.

    • @paulmaydaynight9925
      @paulmaydaynight9925 3 года назад

      see don's zram...script
      it should also be possible in the -pikvm- virtual ethernet over usb case to mount an old fashioned generic ram disk on a remote machine & link that to a vram scratch/swap file to be tested

  • @MysticWhiteDragon.
    @MysticWhiteDragon. 3 года назад

    FYI, a Bluetooth device is paired in the OS both hardware and software. So anytime you use a new device or OS you will need to repair the Bluetooth device.

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

    OTG Adapter works with 3 usb and a RJ45

  • @martkt10
    @martkt10 3 года назад

    Does anyone know the maximum sd card size on the pi zero 2 ?

    • @leepspvideo
      @leepspvideo  3 года назад +1

      I don’t have any bigger than 128gb. One source said 256 another 1tb.

    • @martkt10
      @martkt10 3 года назад

      @@leepspvideo Thank you

  • @jbjentertainment5729
    @jbjentertainment5729 3 года назад

    Don't forget, pi 4 has more hardware, meaning more drivers needing to be loaded at boot.

  • @MinhNguyen-ut7ji
    @MinhNguyen-ut7ji 11 месяцев назад

    What is this os??😅😅

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

      Raspberry Pi os
      Raspberry Pi Zero 2W. First time setup. Far better performance with Zram.
      ruclips.net/video/vZkfuVyybIw/видео.html

  • @SCHaworth
    @SCHaworth 3 года назад

    I dont think that hub works, because it might be a billboard device.

  • @Przemo-c
    @Przemo-c 3 года назад

    A2 SD cards in my experience are snappier in such use cases.

  • @villagerjj
    @villagerjj 2 года назад

    For me, an ssd would be the best as it is more reliable than sd or flash

  • @pavan13
    @pavan13 3 года назад

    Raspberry Pi has changed their name in twitter to "Raspberry Pi (Taylor's Version)"

    • @pavan13
      @pavan13 3 года назад

      I think bcz of the new Album release by Taylor Swift

    • @leepspvideo
      @leepspvideo  3 года назад

      A bit random

  • @mistercohaagen
    @mistercohaagen 3 года назад

    If they released these with actually usable RAM, they'd sell millions of them.

    • @leepspvideo
      @leepspvideo  3 года назад +2

      I’m sure they’ll still sell millions, 2GB would be great though.

    • @whelanbdubs
      @whelanbdubs 3 года назад

      Not to mention they're completely sold out everywhere.