我正在尝试自动执行一个clonezilla映像,这是由于说该设备正在使用中,还原失败了
当我输入“ mount”时,/ dev / sda不是列表中的任何软件(并且mdadm也被禁用,也没有使用/ dev / md ...)
如果我手动使用fdisk清除分区,然后运行partprobe我得到
Error: Partition(s) 2 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
如果我重新启动,则在鞭打数据后恢复工作。
我在pxelinux.cfg / default上的启动选项是
LABEL Factory Reset
KERNEL clonezilla/vmlinuz
APPEND initrd=clonezilla/initrd.img username=user boot=live union=aufs noswap noprompt vga=788 keyboard-layouts=NONE locales=en_US.UTF-8 fetch=tftp://10.11.12.1/clonezilla/filesystem.squashfs config quiet ocs_live_run="/home/partimag/restoreGolden.sh" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8 ocs_prerun="mount -t nfs 10.11.12.1:/copos/SystemImages /home/partimag && /home/partimage/fdisk.sh" nomdadm nodmraid noswap
/home/partimage/restoreGolden.sh的内容是
/usr/sbin/ocs-sr -hn1 OP --batch -g auto -e1 auto -e2 -r -j2 -p reboot restoredisk GoldenImage sda