
Ubuntu日本語フォーラム

ログインしていません。
https://help.ubuntu.com/community/Grub2/ISOBoot
isoファイルから起動させたいと思い上記ページ等参考にしてみましたが上手く出来ませんでした。
grml-rescuebootを入れ自分で作ったisoイメージ(元は32bit13.04)と14.04を入れてダメでした。
機械はFMVA45JW
Ubuntu13.10日本語64bit
UEFI起動HDD全域にインストールしています。但し
sda1は /boot/efi fat32
sda2は / ext4
sda3 linux-swap
となっています。
以下はgrml-rescuebootに書き換えられたと/boot/grub/boot.cfg思われる部分です。
### BEGIN /etc/grub.d/42_grml ###
menuentry "Grml Rescue System (binary.hybrid.iso)" {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 1f75ba48-531d-40a0-9f96-0b8bd421156c
else
search --no-floppy --fs-uuid --set=root 1f75ba48-531d-40a0-9f96-0b8bd421156c
fi
iso_path="/boot/grml/binary.hybrid.iso"
export iso_path
kernelopts=" "
export kernelopts
loopback loop "/boot/grml/binary.hybrid.iso"
set root=(loop)
configfile /boot/grub/loopback.cfg
}
menuentry "Grml Rescue System (ubuntu-14.04-desktop-amd64.iso)" {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 1f75ba48-531d-40a0-9f96-0b8bd421156c
else
search --no-floppy --fs-uuid --set=root 1f75ba48-531d-40a0-9f96-0b8bd421156c
fi
iso_path="/boot/grml/ubuntu-14.04-desktop-amd64.iso"
export iso_path
kernelopts=" "
export kernelopts
loopback loop "/boot/grml/ubuntu-14.04-desktop-amd64.iso"
set root=(loop)
configfile /boot/grub/loopback.cfg
}
### END /etc/grub.d/42_grml ###isoの項目を起動時に選択しても「続けるには何かキーを押してください・・・」となり選択画面に戻ってしまいます。
オフライン
申し訳ありません。
http://blog.livedoor.jp/vine_user/archives/51561790.html
当初上記ページも参考に
/etc/default/grub
/etc/grub.d/40_custom
を書き換えてisoファイルを起動させようとしていましたが失敗していました。思い出してみるとシンタックスエラーが出ておりupdate-grubが失敗していたのです。
/etc/grub.d/40_customに追記するのではなくmenuentry〜と書き換えてしまった為だと今気づきました。しかもその後/etc/grub.d/40_customを空のファイルにしてしまった…。
その後にgrml-rescuebootをインストールしisoファイルを/boot/grml/
に移動しupdate-grubを実施したのです。
/etc/default/grub
/etc/grub.d/40_custom
の書き換えがその際反映して起きた障害と今は考えています。
ただ自宅に機械を置いて来たのでまだ確認が出来ていません。あと元の/etc/grub.d/40_customも無いです。追加のお願いで申し訳無いのですが元の/etc/grub.d/40_customの記述内容を教えて頂けないでしょうか?日曜に帰宅した際もう一度13.10をインストールし直してやり直すつもりでしたが/etc/grub.d/40_customの内容が分かればそれを打ち込んでupdate-grubした方がそれが原因かどうかもすぐ判明すると思い申し訳ありませんがよろしくお願いします。
オフライン
手法が大変興味があります、成功したら是非公開してください。
/etc/grub.d/40_customの内容です。13.04(Amd64)、14.04(Amd64)、14.04(i386)同じ
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above.
オフライン
/etc/grub.d/40_customの内容お教えいただきありがとうございます。
早速結果報告ですがダメでした。
書き換えてupdate-grubしても変わらずもうUbuntu13.10を一度インストールし直しgrml-rescuebootをインストール(その他はgksuをインストールしただけ)し
/etc/default/grub
の2行を
#GRUB_HIDDEN_TIMEOUT=-0 #GRUB_HIDDEN_TIMEOUT_QUIET=true
コメントアウトしただけですが...。
オフライン
https://help.ubuntu.com/community/Grub2/ISOBootを参考に「GRML」を使ってやってみました。
14.04(Amd64)上での実験ですが、14.04(Amd64)のISOファイの起動が実に簡単に出来てしまいました。
「GRML」によるGrub2メニューに追加された部分の抜粋です。
### BEGIN /etc/grub.d/42_grml ###
menuentry "Grml Rescue System (ubuntu-14.04-desktop-amd64.iso)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 c20a9edb-6828-4df3-8a69-43a75fd7116b
else
search --no-floppy --fs-uuid --set=root c20a9edb-6828-4df3-8a69-43a75fd7116b
fi
iso_path="/boot/grml/ubuntu-14.04-desktop-amd64.iso"
export iso_path
kernelopts=" "
export kernelopts
loopback loop "/boot/grml/ubuntu-14.04-desktop-amd64.iso"
set root=(loop)
configfile /boot/grub/loopback.cfg
}
### END /etc/grub.d/42_grml ###
オフライン
わざわざインストールしてまでチェックして頂きありがとうございます。
機械が実は借り物(ハードディスクは自分の物に換装して遊ばせもらってました。)なので今回は時間切れなってしまい結果が出せず、しばらく持越しになりそうです。UEFI起動のUbuntuからISOイメージを起動させたく又次回14.04等使用して試して見ます。情けない報告ですみませんがいろいろアドバイスありがとうございました。
オフライン