最近想做類似ghost選單式還原,只是用UEFI模式會失敗

49 views
Skip to first unread message

黑白共母湯

unread,
Jan 11, 2023, 3:18:32 AMJan 11
to 再生龍clonezilla
這個是我兩年前發的文章
目前又遇到問題了

之前在Legacy模式下運作都正常
但最近的新機器已經改成UEFI模式
故想寫一個UEFI模式的選單式還原
有參考EzUSB 新北市 蔡明貴校長 的ezschool
上面的grub.cfg裡面的還原指令

結果按選單還原的時候就卡住了
內容跟兩年前的方法一樣

因為我用隨身硬碟,切了1GB來放Clonezilla
剩下空間切出來放img
利用指令lsblk
sdb1←放Clonezilla
sdb2←放img
sdb2裡的backup資料夾放test-img
欲還原sda硬碟
Clonezilla的版本為2.7.1-22

我Legacy模式指令

MENU LABEL Supermarket POS 002
# MENU PASSWD
 kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live hostname=maverick config  noswap locales=zh_TW.UTF-8 keyboard-layouts=us edd=on nomodeset noprompt ocs_prerun1="mount /dev/sdb2 /mnt/" ocs_prerun2="mount --bind /mnt/Backup /home/partimag/" ocs_live_run="ocs-live-restore" ocs_live_extra_param="-g auto -e1 auto -scr -c -e2 -j2 -p poweroff restoredisk 2021-05-03-11_pos002-img sda" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="zh_TW.UTF-8" vga=788 ip=frommedia  nosplash
TEXT HELP
* BACKUP time 2021-05-03
ENDTEXT

UEFI模式指令是
  search --set -f /live/vmlinuz
  linux /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE ocs_prerun1="mount /dev/sdb2 /home/partimag/" ocs_prerun2="mount --bind /home/partimag/home/partimag /home/partimag/" ocs_live_run="/usr/sbin/ocs-sr -e1 auto -e2 -c -r -j2 -hn1 NTPC -k1 -scr -p poweroff restoredisk 2021-11-05-16_ABOX122-img sda" ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux,EFI ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 live-media-path=/live/ bootfrom=/dev/sdb2 toram=filesystem.squashfs
  initrd /live/initrd.img

不知道我哪邊還有問題需要修改的

Steven Shiau

unread,
Jan 21, 2023, 2:58:05 AMJan 21
to ocs-clo...@googlegroups.com

"結果按選單還原的時候就卡住了" -> 請把螢幕上的畫面照個相,分享一下,比較容易理解停的畫面。
另外,請問測試看看最新的穩定版Clonezilla live, 也就是3.0.2-21 amd64,或者20221103-kinetic?

Steven

--
這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 ocs-clonezill...@googlegroups.com
如要在網路上查看這項討論,請造訪 https://groups.google.com/d/msgid/ocs-clonezilla/89dbde23-8a56-41d3-8a20-5e79ef310fadn%40googlegroups.com
-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0
Reply all
Reply to author
Forward
0 new messages