GRUB2 custom.cfgでpuppyやDog系の起動
Posted: 19/08/16(金) 11:03
インストール済みのDebianやUbuntuのGRUB2を利用してpuppyを起動する一手法
例)
sda1にDebianがインストールされていてそのGRUB2を用いて起動していて
sda2/lxpupscに 起動したいpuppyのファイルがある場合
/sda1/boot/grubにcustom.cfgファイルを作成し以下の内容を追記、保存
menuentry "lxpupsc"{
set root='(hd0,2)'
linux /lxpupsc/vmlinuz pmedia=atahd psubdir=lxpupsc pfix=fsck
initrd /lxpupsc/initrd.gz
}
再起動するとGRUB2のブートメニューにlxpupscが追加され起動できる
menuentryを追加などcustom.cfgを編集をすると次回起動時からブートメニューに反映される
(sda1のDebianなどを起動してupdate-grubを実行する必要がない)
custom.cfgの作成や編集はDebianからでもpuppyからでもできて、お手軽かなと
*UEFIは環境がないので試していません
*menuentryの追加はmenuentryから } まで
参考
https://wiki.gentoo.org/wiki/GRUB2/ja
例)
sda1にDebianがインストールされていてそのGRUB2を用いて起動していて
sda2/lxpupscに 起動したいpuppyのファイルがある場合
/sda1/boot/grubにcustom.cfgファイルを作成し以下の内容を追記、保存
menuentry "lxpupsc"{
set root='(hd0,2)'
linux /lxpupsc/vmlinuz pmedia=atahd psubdir=lxpupsc pfix=fsck
initrd /lxpupsc/initrd.gz
}
再起動するとGRUB2のブートメニューにlxpupscが追加され起動できる
menuentryを追加などcustom.cfgを編集をすると次回起動時からブートメニューに反映される
(sda1のDebianなどを起動してupdate-grubを実行する必要がない)
custom.cfgの作成や編集はDebianからでもpuppyからでもできて、お手軽かなと
*UEFIは環境がないので試していません
*menuentryの追加はmenuentryから } まで
参考
https://wiki.gentoo.org/wiki/GRUB2/ja