Partition Files System Label Size Flags
unallocated unallocated 4.00 Mib
/dev/sda1 fat16 LiBREELEC 512.00 Mib boot,lba
/dev/sda2 ext4 STORAGE 28.46 Gib
- Skip the first 4 mb on the stick
- the booting partition is fat16 formatted and 512 mb in size (1/2 a gb) and is called LiBREELEC
- the partiton with the data on it is ext4 formatted, it the rest of the space and called STORAGE
- It should be at
/dev/sda
To verify do these two things
- Insert your SD card
- Run the following command:
dmesg
- You should get an output that ends like this
[28141.703701] scsi host1: usb-storage 1-7:1.0
[28142.741121] scsi 1:0:0:0: Direct-Access Generic- SD/MMC/MS PRO 1.00 PQ: 0 ANSI: 4
[28142.741834] sd 1:0:0:0: Attached scsi generic sg0 type 0
[28143.587570] sd 1:0:0:0: [sda] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB)
[28143.587888] sd 1:0:0:0: [sda] Write Protect is off
[28143.587892] sd 1:0:0:0: [sda] Mode Sense: 2f 00 00 00
[28143.588201] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[28143.616661] sda: sda1
[28143.660064] sd 1:0:0:0: [sda] Attached SCSI removable disk
cd /home/lee/Downloads/LibreElec9Backup
sudo umount /dev/sda1
sudo umount /dev/sda2
If the stick is the same size or bigger this should work:
sudo sfdisk /dev/sda < pi.sfdisk
sudo fsarchiver restfs libreelec.fsa id=0,dest=/dev/sda1
sudo fsarchiver restfs storage.fsa id=0,dest=/dev/sda2