Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hanyuanzhong opened this issue Jul 29, 2024 · 12 comments

Comments

@hanyuanzhong
Copy link

runing sudo rpi-clone sdb:
error:
image

@fjpdevries
Copy link

fjpdevries commented Jul 29, 2024 via email

@fmarzocca
Copy link

Do you have usb automount enabled? Disable it.

@fmarzocca
Copy link

see: #31 (comment)

@hanyuanzhong
Copy link
Author

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
Copy link
Author

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

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

@fmarzocca
Copy link

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

@hanyuanzhong
Copy link
Author

hanyuanzhong commented Jul 29, 2024

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
Copy link

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

@hanyuanzhong
Copy link
Author

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

image

@fmarzocca
Copy link

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

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

@hanyuanzhong
Copy link
Author

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
Copy link
Author

hanyuanzhong commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants