billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.48k stars 327 forks source link

Cloning Raspbian from SD to SSD didn't change cmdline.txt nor fstab - didn't boot, fixed these to sda6 & sda7 started working #148

Open tkarsist opened 1 year ago

framps commented 1 year ago

Would you please show the result of lsblk ? As far as I see you use something like NOOBs. As far as I know rpi-clone only supports standard RaspbianOS with two partitions.

tkarsist commented 1 year ago

This is after the change. This is the original Raspberry SD-card that came with it (preinstalled) sda 8:0 0 465.8G 0 disk |-sda1 8:1 0 2.6G 0 part |-sda2 8:2 0 1K 0 part |-sda5 8:5 0 32M 0 part |-sda6 8:6 0 256M 0 part /boot `-sda7 8:7 0 462.9G 0 part /

I modified the following to fix the boot problem:

/boot/cmdline.txt: changed "root=/dev/sda7" (was some mmcblk*, the sd-card)

/etc/fstab : /dev/sda6 /boot (was mmcblk) /dev/sda7 / (was mmcblk)

tkarsist commented 1 year ago

It was while ago, I think it was NOOBS. With these two changes I made to configs, the tool worked perfectly