pho ramen soba

Monday, 5 August 2024

migrating to an nvme drive on a raspberry pi 5

I finally broke down and took Jeff Geerling's advice and migrated from using a micro SDXC drive as my boot device to using an M.2 2242 NVMe SSD. It wasn't smooth sailing as I'll explain below. I started out with an adapter because the official Ras…
Read on blog or Reader
Site logo image Arcane Science Lab Read on blog or Reader

migrating to an nvme drive on a raspberry pi 5

By whbeebe on August 5, 2024

Raspberry Pi 5 w/M.2 Hat+
Raspberry Pi 5 w/M.2 Hat+

I finally broke down and took Jeff Geerling's advice and migrated from using a micro SDXC drive as my boot device to using an M.2 2242 NVMe SSD. It wasn't smooth sailing as I'll explain below.

I started out with an adapter because the official Raspberry Pi adapter uses the GPIO pins. This precludes the use of the GPIO pins for anything else. That turned out to be a mistake. So I purchased the official M.2 Hat+ along with a TIMETEC 512 GiB SSD and installed that on my Raspberry Pi 5. I tried to use Jeff Geerling's rpi_clone, but that was a bust as it appears to only work with cloning the Raspberry Pi OS. I use Ubuntu 24.04 for aarch64, so it turned out to be a complete bust.

Plan B was to use Raspberry Pi Imager to flash Ubuntu 24.04 onto the SSD, which is what I did. That, unfortunately, required me to boot into the fresh install and set it up all over again. That's not such a problem for me, and since I'm recovering from my full left knee replacement surgery, it provided a bit of distraction during the healing process. I now have everything (nearly) back the way I had it using the SDXC card.

One annoying quirk I've discovered is that the only way to boot into the SSD with Ubuntu 24.04 installed on it is to have an SDXC card with Raspberry Pi OS still in the micro SDXC adapter. If I try to boot the Raspberry Pi 5 without that adapter filled then the Raspberry Pi 5 will not boot. It just sits there with an all-red screen. Put the SDXC card with Raspberry Pi OS back in and reboot, and it will boot and run off the SSD. And this is how the system looks after a boot:

As you will note lsblk shows both devices, and that nvme0n1p1 is the boot device. It also shows the SDXC card is mounted in the system. The utility duf shows that the nvme0n1p2 is mounted as the root device.

The photo at the top shows an unusual riser used to connect the M.2 hat to the Raspberry Pi. It shows a 90° extension that I hope will allow me to re-connect my external devices to the GPIO. Before I do that I'll need to read the M.2 hat's specifications and see which pins I need to avoid so that I don't interfere with the proper operation of the hat, and thus, the SSD.

So far I'm reasonably satisfied. I don't see any increase in speed, but I do notice that there is no long any little hesitations when the drive needs to be accessed. It also appears that the M.2 Hat+ is sitting high enough to let the active cooler do its job.

When I get the GPIO devices working I'll write up a post about that adventure.

Links

Jeff Geerling -- https://www.jeffgeerling.com

 

...

Comment
Like
You can also reply to this email to leave a comment.

Arcane Science Lab © 2024.
Manage your email settings or unsubscribe.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real‑time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc.
60 29th St. #343, San Francisco, CA 94110

at August 05, 2024
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Must-Try July Recipes ✨

Fan favorite and seasonal recipes to try this month: smoothie bowl, summer pasta, noodle salad, veggie-rich soup, no-bake bars & a blue...

  • Flourless pancakes
    Ingredients: 2 large ripe bananas 4 large eggs 1/2 teaspoon baking pow...
  • I’m listening…..
    ...
  • Get Epicurious + Bon Appétit for just $30
      Brought to you by Bon Appétit ...

Search This Blog

  • Home

About Me

phoo, ramen, soba
View my complete profile

Report Abuse

Blog Archive

  • July 2026 (7)
  • June 2026 (18)
  • May 2026 (18)
  • April 2026 (20)
  • March 2026 (16)
  • February 2026 (13)
  • January 2026 (15)
  • December 2025 (17)
  • November 2025 (18)
  • October 2025 (21)
  • September 2025 (19)
  • August 2025 (28)
  • July 2025 (25)
  • June 2025 (28)
  • May 2025 (34)
  • April 2025 (36)
  • March 2025 (39)
  • February 2025 (36)
  • January 2025 (43)
  • December 2024 (46)
  • November 2024 (51)
  • October 2024 (44)
  • September 2024 (1172)
  • August 2024 (1572)
  • July 2024 (1413)
  • June 2024 (1289)
  • May 2024 (1362)
  • April 2024 (1472)
  • March 2024 (1827)
  • February 2024 (2413)
  • January 2024 (2936)
  • December 2023 (2135)
  • November 2023 (1639)
  • October 2023 (1285)
  • September 2023 (918)
  • August 2023 (864)
  • July 2023 (795)
  • June 2023 (800)
  • May 2023 (796)
  • April 2023 (754)
  • March 2023 (649)
  • February 2023 (736)
  • January 2023 (1159)
  • December 2022 (968)
  • November 2022 (921)
  • October 2022 (852)
  • September 2022 (708)
  • August 2022 (766)
  • July 2022 (877)
  • June 2022 (684)
  • May 2022 (716)
  • April 2022 (698)
  • March 2022 (781)
  • February 2022 (734)
  • January 2022 (955)
  • December 2021 (1387)
  • November 2021 (3002)
  • October 2021 (3213)
  • September 2021 (3188)
  • August 2021 (3232)
  • July 2021 (1697)
Powered by Blogger.