
Ubuntu日本語フォーラム

ログインしていません。
先日、XPとUbuntu9.04をデュアルブートでインストールしたものです.
はじめは問題なく(みなさんの知識をお借りして)、Ubuntuが動作できていたのですが、
GRUB画面の表示設定(色や解像度など)を弄ったあと、再起動してみると、UbuntuおよびそのRecovery modeを選択しても
「boot failure」と出て起動できなくなってしまいました.
GRUBの画面には
Ubuntu9.04
Ubuntu9.04 Recovery mode
Ubuntu9.04
Ubuntu9.04 Recovery mode
Windows XP
Windows ~~
とあります.
前は、GRUBの画面で、カーソルを動かすことでOSを白い塗りつぶしで選択できていたのですが、それができなくなっています.(...私の設定ミス?)
カーソルを何も動かさずGRUBの画面でEnterを押すことでWindows XPは問題なく起動できています.(デフォルトがXPになっているのでしょうか)
なぜかUbuntuの選択項目が二重に表示されていますが、以前は一つだったかと思います.
GRUBの表示設定を弄ったのが、一番の原因と考えられるのですが、Ubuntuが起動できないので、私には手も足も出せない状態です.
分かる方どうかよろしくお願いします.
オフライン
取り敢えず、LiveCD から起動して、現在の /boot/grub/menu.lst の内容を貼り付けてみてもらえますでしょうか?
いじったのは、grub の設定(menu.lst) だけでしょうか?
もし、何か他にやっていそうなら、出来るだけ思い出してください。
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
オフライン
訂正なのですが、boot failure ではなく、正しくはdisk boot failureでした.申し訳ありません.
petitbootang による投稿:
取り敢えず、LiveCD から起動して、現在の /boot/grub/menu.lst の内容を貼り付けてみてもらえますでしょうか?
いじったのは、grub の設定(menu.lst) だけでしょうか?
もし、何か他にやっていそうなら、出来るだけ思い出してください。
以下に、menu.lstを添付しました.
GRUB以外は特に目立った変更はしてないように記憶しています.
やはりmenu.lstがどこかおかしいためのerrorでしょうか?
\\ここから
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
grub
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, andgrub
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 6
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 30
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
color white/black white/black
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=295a1100-b643-497b-b847-31ff0aefaa1d ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=295a1100-b643-497b-b847-31ff0aefaa1d
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash vga=775
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-15-generic
uuid 295a1100-b643-497b-b847-31ff0aefaa1d
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=295a1100-b643-497b-b847-31ff0aefaa1d ro quiet splash vga=775
initrd /boot/initrd.img-2.6.28-15-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid 295a1100-b643-497b-b847-31ff0aefaa1d
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=295a1100-b643-497b-b847-31ff0aefaa1d ro single
initrd /boot/initrd.img-2.6.28-15-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 295a1100-b643-497b-b847-31ff0aefaa1d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=295a1100-b643-497b-b847-31ff0aefaa1d ro quiet splash vga=775
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 295a1100-b643-497b-b847-31ff0aefaa1d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=295a1100-b643-497b-b847-31ff0aefaa1d ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid 295a1100-b643-497b-b847-31ff0aefaa1d
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows NT/2000/XP
rootnoverify (hd0,1)
savedefault
chainloader +1
\\ここまで
CMasami による投稿:
Ubuntu の起動メニューが複数セット現れるのは、カーネルが更新されたときに起こります。
カーネルが更新されたときに ドライバがカーネルと合っていないと止まることも起こります。
3行めが、直前のカーネルの通常モードなんで、そこから起動できるかどうかでしょうかね。
通常はカーソルを動かすことでOS選択できますよね?
ところが白く塗りつぶされず、どれを選ぼうとしてもdisk boot failureの表示です.
どうかよろしくおねがいします.
オフライン
取り敢えず、
default を 6 ではなく、1 に変更してみた場合、どうでしょうか?
現在は一番下の、
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows NT/2000/XP
rootnoverify (hd0,1)
savedefault
chainloader +1
↑が選ばれている状態で、これは多分、Windows のリカバリ領域か何かだと推察するのですが・・・。
オフライン
あー、でも普通に Windows は起動するんでしたっけ。
うー、なんか変ですね。
オフライン
petitbootang による投稿:
あー、でも普通に Windows は起動するんでしたっけ。
うー、なんか変ですね。
おそらくxpがデフォルトになっていて、GRUB画面でEnterを押すと通常どおりxpが起動します.
オフライン
ごめんなさい、間違いました。
default を 1 ではなく、0 に変更してください。
オフライン
# Pretty colours
color white/black white/black
とりあえず選択しているのがどれか分からないのは、color の書式は、 https://wiki.ubuntulinux.jp/UbuntuTips/Others/CustomizeGrub によれば、
color (非選択行の文字列の色)/(非選択行の背景の色) (選択行の文字列の色)/(選択行の背景の色)
らしいので、もう一度設定し直してみてください。
オフライン
あと、color white/black white/black の行をコメントアウトして、
vga=775 は削除してみた場合どうでしょうか?
オフライン
うえの方にgrubという行があるのが気になるのですが、これってなんでしたっけ。
infoみた感じではgrubというコマンドは無いように思うのですが。。
# 外していたらごめんなさい。
オフライン
hmatsue による投稿:
うえの方にgrubという行があるのが気になるのですが、これってなんでしたっけ。
infoみた感じではgrubというコマンドは無いように思うのですが。。
# 外していたらごめんなさい。
あー、確かに!
それは、取り敢えずコメントアウトしてみた方が良いですね。
オフライン
petitbootangさん、CMasamiさん、epiiさん、hmatsueさん、本当にありがとうございます. m(_ _)m
grubディレクトリの中にmenu.lst.backupなるものがあったので置き換えによって、現在一応は復旧しubuntuが起動できました.
たしかにgrubっていうコマンドは通常ないみたいですね. なんでそんなものが入ってしまったかわからないですが...
今日帰ってから、みなさんの助言を実行して結果をフィードバックしたいと思います.
オフライン
すみません、補足情報です。
>menu.lst.backupなるものがあったので
StartUp-Managerを起動した際にmenu.lst.backupがディレクトリに無ければ自動で生成されます。
現在置き換えたmenu.lst.backupのオリジナルは残っていると思いますが、万一コピーを作らず名前だけ変更している場合、今後の作業で起動できない記述のmenu.lstを配置した状態でStartUp-Managerを起動すると使えないmenu.lst.backupが出きることになります。
その場合は既存のmenu.lstをリネーム、または削除、移動して
$ sudo update-grub
で新規menu.lstが生成されます。
(ちなみに[menu.lst~]もバックアップファイルで[~]を外せば使えます)
以上、追加情報でした〜。
オフライン