請問如何設定grub2.cfg 在開機程序中by pass 用原來的硬體開機。

31 views
Skip to first unread message

Maverick Liu

unread,
Jun 7, 2021, 9:03:33 PM6/7/21
to 再生龍clonezilla
Dear Steven
          我將CLONEZILLA 磁碟設定為開機碟,但可否不需要更新bios的開機順序,直接改grub.cfg的程序,讓clonezilla by pass 讓第二顆HD進行開機啟動,進入作業系統呢?再麻煩解答一下。謝謝

Steven Shiau

unread,
Jun 8, 2021, 7:47:57 AM6/8/21
to ocs-clo...@googlegroups.com
Grub允許你這樣沒錯,可以在你的grub.cfg中類似這樣寫(Ubuntu 安裝光碟的寫法):
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
        exit 1
}
或者借用Clonezilla
live的檔案與寫法(可能要改一下boot-local-efi.cfg,強迫它不要找1st disk):
menuentry "Local operating system (if available)" --id local-disk {
  echo "Booting first local disk..."
  # Generate boot menu automatically
  configfile /boot/grub/boot-local-efi.cfg
  # If not chainloaded, definitely no uEFI boot loader was found.
  echo "No uEFI boot loader was found!"
  sleep 15
}

Steven
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/a677fcf8-30c5-45b3-aac8-242f6a5b84ebn%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/a677fcf8-30c5-45b3-aac8-242f6a5b84ebn%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

Reply all
Reply to author
Forward
0 new messages