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
223 stars 15 forks source link

final error: sed: couldn 't open temporary file/MNT/clone/boot/firmware/sedRnsJN4: Read - only file system #38

Open hanyuanzhong opened 1 month ago

hanyuanzhong commented 1 month ago

runing sudo rpi-clone sdb: error: image

fjpdevries commented 1 month ago

Ik ben tot en met vrijdag 16 augustus 2024 afwezig en zal mijn email niet of beperkt kunnen lezen en beantwoorden. Neem voor urgente zaken contact op met ons kantoor, email @.***, tel. 0224-297819.

Met vriendelijke groet, FSE Turnstiles b.v. Jos de Vries

fmarzocca commented 1 month ago

Do you have usb automount enabled? Disable it.

fmarzocca commented 1 month ago

see: https://github.com/geerlingguy/rpi-clone/issues/31#issuecomment-2191939181

hanyuanzhong commented 1 month ago

see: #31 (comment)

Thank you very much for your reply. I just came into contact with rpi-clone. I'm a total newbie/noob at this., I don't know how to disable automount and manually mount the partitions

hanyuanzhong commented 1 month ago

您是否启用了 USB 自动挂载?请将其禁用。

Hello, I tried to use sudo systemctl stop udisks2 to disable automatic mounting, but an error was still reported

fmarzocca commented 1 month ago

Check if you have devmon running and stop it. Then unmount all usb and run rpi-clone -fagain. rpi-clone takes care of mounting what it needs.

hanyuanzhong commented 1 month ago

Then unmount all usb

Running lsblk sudo umount /media/pi/1AED-1173 lsblk image

Run" ps aux | grep devmon" as shown below image

I don't think I started the auto mount,

sudo rpi-clone -f sdb image image

fmarzocca commented 1 month ago

what's the output of: mount | egrep "mmcblk[0-9]|sd[a-z]"

hanyuanzhong commented 1 month ago

mount | egrep "mmcblk[0-9]|sd[a-z]"

image

fmarzocca commented 1 month ago

your partition /boot/firmware is not mounted? Bad.

Reboot the raspberry, stop automount, unmount any usb and retry.

hanyuanzhong commented 1 month ago

reboot the raspberry image What am I going to run next 1:sudo umount /media/pi/bootfs 2:sudo umount /media/pi/rootfs 3:sudo systemctl stop udisks2 4:sudo systemctl daemon-reload 5:sudo rpi-clone -f sdb These five orders?

hanyuanzhong commented 1 month ago

reboot the raspberry image What am I going to run next 1:sudo umount /media/pi/bootfs 2:sudo umount /media/pi/rootfs 3:sudo systemctl stop udisks2 4:sudo systemctl daemon-reload 5:sudo rpi-clone -f sdb These five orders?

When the sudo rpi-clone -f sdb command is executed, the lsblk command returns a message indicating Mounting /dev/sdb2 on /mnt/clone Mounting /dev/sdb1 on /mnt/clone/boot/firmware I still haven't disabled auto mount? image image