使用CLONEZILLA USB磁碟開機,進行CLONEZIILA 系統,無法變更USB磁碟當中的GRUB.CFG檔的內容

44 views
Skip to first unread message

Maverick Liu

unread,
Jun 22, 2021, 12:50:26 AM6/22/21
to 再生龍clonezilla
Dear Steven
          我使用CLONEZILLA的USB磁碟進入系統當中,可否直接修改USB磁碟的GRUB.CFG檔當中的SET DEFAULT="0",想把他改成SET DEFAULT="1",我該怎麼做才能修改成"1",因為我用USB碟開機後去RESTORE WINDOWS的OS 磁碟,RESTORE完畢後,無法直接在系統當中修改DEFAUTL值。再麻煩您告知一下。謝謝

Steven Shiau

unread,
Jun 22, 2021, 7:15:30 AM6/22/21
to ocs-clo...@googlegroups.com
可以直接修改。建議這樣做:
1.
使用ToRAM功能,開機的時候將隨身碟中的資料用ToRAM放到記憶體。這樣隨身碟就不會因filesystem.squashfs被掛載住,造成關機的時候檔案系統無法正常卸載。
2. 假設隨身碟是/dev/sdb1,可以用開機參數ocs_postrun或者你自己寫的restore
script最後面加上:

mount /dev/sdb1 /mnt
perl -pi -e "s/^set default=.*/set default=1/g" /mnt/boot/grub/grub.cfg
umount /mnt

Steven
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/0f7a5c9a-49cb-490a-a33c-b8b17bc0dcbcn%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/0f7a5c9a-49cb-490a-a33c-b8b17bc0dcbcn%40googlegroups.com?utm_medium=email&utm_source=footer>。

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

Maverick Liu

unread,
Jun 25, 2021, 2:45:16 AM6/25/21
to 再生龍clonezilla
Dear Steven 
          非常謝謝你....成功了!!我搞定.....按你的方法可以修改USB的預設值。非常謝謝你...

Steven Shiau 在 2021年6月22日 星期二下午7:15:30 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Jun 25, 2021, 2:51:16 AM6/25/21
to ocs-clo...@googlegroups.com
OK, great. 謝謝回報。

Steven
> <https://groups.google.com/d/msgid/ocs-clonezilla/0f7a5c9a-49cb-490a-a33c-b8b17bc0dcbcn%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ocs-clonezilla/0f7a5c9a-49cb-490a-a33c-b8b17bc0dcbcn%40googlegroups.com?utm_medium=email&utm_source=footer>>。
>
>
> --
> 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
>
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/6080137f-d8ab-4cce-a166-6f0c9b3e66dbn%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/6080137f-d8ab-4cce-a166-6f0c9b3e66dbn%40googlegroups.com?utm_medium=email&utm_source=footer>。
Reply all
Reply to author
Forward
0 new messages