Flash Raspberry Pi OS onto NVMe SSD from a Micro SD card

April 9, 2024, 22:07

damango

I am looking for a way to format/flash my SSD for my rpi 5. I don't have a usb/ssd cord to plug into my computer, and I am hoping to be able to do something like run raspberry pi imager as a cli tool and format the ssd while it's plugged into my rpi 5. Has anyone done this? What did you use/how did you go about it? I don't have any micro hdmi's either, so I am looking for a headless way to do this.

k9t33n

for when this uploads to website

thunder07337

If you don't have an SSD to USB adapter for the PC, how is the SSD connected to the Pi 5?

damango

ssd is on a peripheral board, the peripheral board is attached to the pi 5 via fpc cable

damango

i think this might be the issue and that i have to format it first

oops.se

If you use the imaging technic that <@1071178789939331253> described above there is no need for formatting! When formatting a filesystem is created, when imaging a filesystem with content is created.

damango

Gotcha. I guess the issue I’m running into is, my rpi 5 is not detecting my ssd. It seems to detect the pci and I think the peripheral board? But haven’t been able to find anything that indicates the ssd is working

damango

No logs say the nvme ssd was mounted, can’t find any new drives other than the current micro sd card

damango

And I am pretty sure I turned on the flags in the /boot/firmware/config.txt and did the other boot thing + restarted my pi

damango

Tried a few combinations in case the boot settings were the issue

damango

But still no luck in being able to use the ssd yet

k9t33n

yes i attempted to cover everything

k9t33n

run sudo apt update; sudo apt updgrade; sudo reboot then when it reboots run lsblk

damango

no luck after i did this

damango

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0 28.8G  0 disk
├─mmcblk0p1 179:1    0  512M  0 part /boot/firmware
└─mmcblk0p2 179:2    0 28.3G  0 part /

damango

the ssd is supposed to be 256 gb

k9t33n

Are you booting from a SSD?

damango

no

damango

i would like to

damango

but booting from micro sd rn

k9t33n

Or have another one plugged in?

k9t33n

The SD card should be at the top then

damango

ssd plugged in via peripheral board with fpc cable/pcie port

k9t33n

Run sudo raspi-config

k9t33n

Then it should be advanced

k9t33n

And expand filesystem

damango


damango

that says only for sd card though?

k9t33n

Should be fine

damango

still no change:
garp@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           806M  5.1M  801M   1% /run
/dev/mmcblk0p2   28G  2.3G   25G   9% /
tmpfs           4.0G     0  4.0G   0% /dev/shm
tmpfs           5.0M   48K  5.0M   1% /run/lock
/dev/mmcblk0p1  510M   63M  448M  13% /boot/firmware
tmpfs           806M     0  806M   0% /run/user/1000
garp@raspberrypi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0 28.8G  0 disk
├─mmcblk0p1 179:1    0  512M  0 part /boot/firmware
└─mmcblk0p2 179:2    0 28.3G  0 part /

damango

even after rebooting

k9t33n

Is that the complete output of lsblk?

damango

ya

k9t33n

Wait two SSDs??

damango

no, that is all the micro sd card

k9t33n

Weird naming

damango

it is booting from the micro sd

damango

i dont have any sort of booting on the ssd drive

k9t33n

Do these two anyway, it may still work

k9t33n

First one mainly

k9t33n

And mkfs