Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Beginners • Re: Multiple os and nvme

$
0
0
Here are the instructions for replacing LibreELEC.
This should be straight forward, but we'll backup some files just in case.

You will need to plug your USB stick in again, then mount it after getting to the command shell as before:

Code:

cd /tmpmkdir usbmount /dev/sda1 usb
LibreELEC is stored on partitions 17 & 18 (0x11 and 0x12 from installed_os.json). We will copy cmdline.txt to the USB stick as a precautionary measure. (I'm assuming here that your SSD is called /dev/nvme0n1. If it's not, identify its name from the list of installed devices by `ls /dev/*`)

Code:

mkdir 17 18mount /dev/nvme0n1p17 17mount /dev/nvme0n1p18 18mkdir -p /tmp/usb/libreeleccp 17/cmdline.txt usb/libreelecumount usb
You can now remove the USB stick.

You need to delete the fresh libreELEC from your SSD before we replace it.

Code:

cd /tmp/17rm -rf *cd /tmp/18rm -rf *
Now take your original SD card with LibreELEC on it and plug it into the RPi's SD card slot and mount it

Code:

cd /tmpmkdir System Storagemount /dev/mmcblk0p1 Systemmount /dev/mmcblk0p2 Storage
Copy the original contents onto your SSD

Code:

rsync -avr System/* 17rsync -avr Storage/* 18syncumount 17 18 System Storage
You can now remove your original SD card.

LibreELEC uses label names to reference its partitions, so you should be good to go at this point. If not, let me know either way.

Statistics: Posted by procount — Mon Mar 03, 2025 6:20 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles