geerlingguy / rpi-clone

A shell script to clone a booted disk on a Raspberry Pi.
https://rpi-clone.jeffgeerling.com/
BSD 3-Clause "New" or "Revised" License
172 stars 10 forks source link

Not so much an issue as a request #24

Open scargill opened 2 months ago

scargill commented 2 months ago

Hi there

Your update of rpi-clone has been a godsend - thank you.

I noted today while doing my ergular cloning on rPi5 with Bookworm.. a couple of things.. its all working perfectly - this is a clone from SD to SSD - my normal backup procedure... messages popping up about "the clone cannot proceed unless it is unmounted".. Whats the pint of these - as we don't do anything - just run the clone...

Also..

"mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload." Again, we don't do anything - is this stuff just historical?

If you ever get bored - could this be tidied up? I'd go in and have a poke but my voding skills aren't at their peak any more.

Regards

Pete ``

Destination disk partition /dev/sda2 is mounted on /media/pi/f1b7d31b-4621-4e3a-aead-ea1ba968f4ab. The clone cannot proceed unless it is unmounted. Destination disk partition /dev/sda1 is mounted on /media/pi/EE64-B48C. The clone cannot proceed unless it is unmounted. Booted disk: mmcblk0 127.9GB Destination disk: sda 64.0GB

Part Size FS Label Part Size FS Label 1 /boot/firmware 512.0M fat32 -- 1 512.0M fat32 -- 2 root 118.6G ext4 rootfs 2 59.1G ext4 --

== SYNC mmcblk0 file systems to sda == /boot/firmware (73.5M used) : SYNC to sda1 (512.0M size) / (9.2G used) : SYNC to sda2 (59.1G size)

Run setup script : no. Verbose mode : no. -----------------------:

Syncing file systems (can take a long time) Syncing mounted partitions: Mounting /dev/sda2 on /mnt/clone mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. => rsync // /mnt/clone with-root-excludes ... Mounting /dev/sda1 on /mnt/clone/boot/firmware mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. => rsync /boot/firmware/ /mnt/clone/boot/firmware ...

Editing /mnt/clone/boot/firmware/cmdline.txt PARTUUID to use ac2d0382 Editing /mnt/clone/etc/fstab PARTUUID to use ac2d0382

Done with clone to /dev/sda Start - 16:46:46 End - 16:47:22 Elapsed Time - 0:36 unmounting /mnt/clone/boot/firmware unmounting /mnt/clone

``

fmarzocca commented 2 months ago

mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload." Again, we don't do anything - is this stuff just historical?

For this message, follow this tip: https://forums.raspberrypi.com/viewtopic.php?t=362156#p2172794