
Ubuntu日本語フォーラム

ログインしていません。
ノートPCですが、以前内蔵HDDにwindowsとUbuntuをデュアルブートで使用していましたが、
外付けHDDに新たにUbuntuをインストール、その後に内蔵HDDをフォーマットしてwindows
だけにしましたが、起動時にF12をおさないと下のようなメッセージが出ます。
[ Minimal BASH-like line editing is supported. for the first word , TAB lists
the possible completions of a device / filename . ]
Error 25 : Disk read error
grub>_
このようになると、再起動してF12を押してからでないとOS選択画面になりません。
また、F12でOS選択画面までいくと、windowsしかはいっていないはずの内蔵HDDに以前インストールしていた
Ubuntuまでも表示されます。
質問をまとめると、
1、起動時のOS選択画面にて、外付けHDDのUbuntu、内蔵HDDのwindowsの順に表示したい。
2、以前内蔵HDDにインストールしていたUbuntuがなぜ表示されるのか?、これもどうにかしたいです。
長い質問でご迷惑おかけしますが、よろしくお願いします。
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
最後の編集者: kiyoshi (2008-11-09 23:10:47)
オフライン
早速のお返事、有難うございます。
デュアルブートにされていたということですが、その方法はどのようなものですか?
GrubがMBRにインストールされていたのですか?それとも、Windowsのブートローダを利用して、boot.iniとかにUbuntuの起動用のGrubの設定を追加していたのですか?
↓
winowsのみのPCにLive CDを使ってインストールしました。
その後、やはりLive CDを使い、外付けのHDDにインストール。
さらに内蔵HDDのUbuntuをパーティションごとフォーマットと同時にデータ削除。
現在Geditで以前のUbuntu(以前内蔵で使ってた)が表示されないのですが、
起動時には選択画面に表示されます。ちなみに選択すると「OSが見つかりません」
みたいなメッセージがでます。
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
最後の編集者: kiyoshi (2008-11-10 03:05:34)
オフライン
おそくなってすみませんが、言われたとおりしてみました。
まず sudo fdisk -| ですが
・・・・・・・onlineHDD:~$ sudo fdisk -l
[sudo] password for ******
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe0ace0ac
デバイス Boot Start End Blocks Id System
/dev/sda1 * 1 4864 39070048+ 7 HPFS/NTFS
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00054153
デバイス Boot Start End Blocks Id System
/dev/sdb1 1 38160 306520168+ 83 Linux
/dev/sdb2 38161 38913 6048472+ 5 拡張領域
/dev/sdb5 38161 38913 6048441 82 Linux swap / Solaris
と、なりました。次に、 sudo grub ですが、下のようなメッセージが出ます。
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
その後
grub> find /boot/grub/menu.lst
(hd1,0)
となりますが、この情報でいいですか?
あと、インストールはWubiではありません、
USB-HDDを接続後、Live-CDから起動してインストールしたのですが・・・
オフライン
>2、以前内蔵HDDにインストールしていたUbuntuがなぜ表示されるのか?、これもどうにかしたいです。
これに関しては、Windows側でboot.iniを編集すれば直ると思います。boot.iniのubuntuの項目を削除する事で解決しそうです。
最初のHDDへのインストールは別パーテーションへwubi(Windowsへインストール)で、だったりしませんか?
>1、起動時のOS選択画面にて、外付けHDDのUbuntu、内蔵HDDのwindowsの順に表示したい。
こちらについてですが、#2で見ていただいたmenu.lstの内容を貼って頂いた方がいいかもしれません。
grubのインストール先は外付けのHDDですか?ubuntuのバージョンは何でしょうか?
この辺が分かると答えやすいかもです。
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
最後の編集者: kiyoshi (2008-11-14 23:36:05)
オフライン
>kiyosiさん
割り込みで申し訳なかったです。
状況が進んでいなかったようなのでつい(^^;
でも返答が無いとこれ以上進めませんね。
>hirokkumaさん
質問が多く答えにくいかと思いますが、状況が分からないとアドバイスができないのも事実です。
kiyoshiさんからの質問に全てお答え頂くのが解決の早道だと思います。
質問の意味が分からない場合や、どのようにすれば調べられるかが分からない場合はそのように仰って頂いてかまいません。
いくつか回答の手掛りになりそうな事を並べておきます。
起動時にGrubが起動するのか、それともWindowsのブートローダーが起動しているのか
この質問には、外付けHDDを外した状態で起動するとどうなるかを書いて頂けると判断できる場合があります。
sudo grubコマンドを入力したのはCDからの起動のときなのか
この質問にはUbuntuを起動した時の手順を書いて頂けると分かります。
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
オフライン
kiyoshiさん、GHOさん、いろいろとアドバイスありがとうございます。
なかなか返事ができなくてすみません。
私のパソコンはHP nx4820です。インストールしたUbuntuは8.04です。
起動時にどうなるかですが、
USB-HDDを接続した状態で起動すると、
何もしないでいると、
GRUB loading stage 1.5
GRUB loading please wait・・・
ERROR25:disk read error
で、止まってしまいます。
起動時にF12(機能は"to boot from LAN"でした)を押すと
GRUB loading stage 1.5
GRUB loading please wait・・・
で、OS選択画面がでます。そこからはWINDOWSでもUbuntuでも起動できますが、
相変わらず、以前のUbuntuが表示されて、それを選択すると
Error 22: No such partition
の表示が出ます。アンインストールでなく、
パーティションをフォーマット&データ削除したのがいけなっかたのでしょうか。
次に、USB-HDDを接続しない状態で起動すると、
GRUB loading please wait・・・
error 21
となり、起動時に出てくるメーカーのロゴ表示までもたどりつけません。
Windowsのブートローダの設定(boot.ini)の件ですが、
設定ファイルは
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
となっています。
あと、sudo grub のコマンドはUSB-HDDから起動した場合です。
grub> find /boot/grub/menu.lst
(hd1,0)
となって、ブートメニューのリストがどこにあるのかわかりません。
まったく申し訳ない次第ですが、以上の情報でよいでしょうか?
何とか解決をみるまではがんばりたいので今後ともよろしく
お願いします。
オフライン
状況が少し分かりました。
さらに確認させて下さい。
CDから起動する時もF12を押す操作が必要だったりしますか?
それとUbuntuを起動し、「アプリケーション」ー「アクセサリ」ー「端末」から
gedit /boot/grub/menu.lst
と入力して表示さた内容を、全部ここに貼ってみて下さい。
Windowsの回復コンソールからfixmbrしてmenu.lstを修正すれば改善しそうな気がします。
ただ#3がありますので確証が持てませんので確認です。
オフライン
GHOさん、お返事有難うございます。
さっそくですが、CDからはF12を押さなくても問題無く起動できます。
それから gedit /boot/grub/menu.lst ですが、以下のとおりです
# 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/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# 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 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## 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=8ef50474-298f-4640-9bb2-6021ed9b0d8c ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)
## 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
## 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
## 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 8.04.1, kernel 2.6.24-21-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=8ef50474-298f-4640-9bb2-6021ed9b0d8c ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=8ef50474-298f-4640-9bb2-6021ed9b0d8c ro single
initrd /boot/initrd.img-2.6.24-21-generic
### 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 Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode) (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro single
initrd /boot/initrd.img-2.6.24-21-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro single
initrd /boot/initrd.img-2.6.24-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 8.04.1, memtest86+ (on /dev/sda5)
root (hd0,4)
kernel /boot/memtest86+.bin
savedefault
boot
全部ですので多くなりました。
こんなかんじですが、よろしくお願いいたします。
オフライン
とりあえずmenu.lstの下記の部分は必要ありません。
# This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda5. title Ubuntu 8.04.1, kernel 2.6.24-21-generic (on /dev/sda5) root (hd0,4) kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro quiet splash initrd /boot/initrd.img-2.6.24-21-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda5. title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode) (on /dev/sda5) root (hd0,4) kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro single initrd /boot/initrd.img-2.6.24-21-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda5. title Ubuntu 8.04.1, kernel 2.6.24-16-generic (on /dev/sda5) root (hd0,4) kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro quiet splash initrd /boot/initrd.img-2.6.24-16-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda5. title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda5) root (hd0,4) kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f3446cc-59e6-4ac8-b4cc-6b840f6a56b0 ro single initrd /boot/initrd.img-2.6.24-16-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda5. title Ubuntu 8.04.1, memtest86+ (on /dev/sda5) root (hd0,4) kernel /boot/memtest86+.bin savedefault boot
gksu gedit /boot/grub/menu.lst
としてgeditを起動して削除して下さい。これで選択画面で古いUbuntuが表示されなくなります。
CDはF12を押さなくても起動できるのなら、BIOSで外付けHDDの優先順位を上げてあげれば、自動で外付けHDDから起動出きるかもしれません。
BIOSの設定のしかたはそれぞれ微妙に違うのでご自分で調べてやって頂くようかもしれません。私にはその機種のBIOSがどんなだか分からないので。
オフライン
F12で外付けHDDから起動するという事はどうして分かりました?
画面に何らかの表示が出てたとか、マニュアルに書いてあったとか、手当たりしだいにキーを押してたらたまたま起動したとか。
F12を押して外付けHDDから起動できるのが安定した動作なら、Ubuntuを使いたい時はF12を押しながら起動するようにしてもいいのかなぁと思っています。
それならあとはWindowsの回復コンソールからMBRを復帰させればいいかと。
回復コンソールについてはフォーラム内にいろいろ出てます。
マイクロソフトの公式サポートはこちらですね。
http://support.microsoft.com/kb/314058/ja
WindowsのCDから起動するか回復コンソールをインストールするかして、回復コンソールを起動。
fixmbr と入力して Enter。
これでMBRが修復されるはずです。
オフライン
kiyoshiさん、GHOさんどうも有難うございました。
古いUbuntuは表示されなくなりました。
それから、windowsのMBRの件は
自分でもう少し調べてやってみます。
手軽にインストールできて何でも変更できる分、自己責任はおおきいなぁと思いました。
でも、トラブルが起きてもこの様なフォーラムがあることはとても助かります。
これからもお世話になると思いますが、早く私もみんなみたいに
誰かの手助けになれるように頑張ろうと思います。(おこがましいですかね・・・)
そんなこんなでもう少し自分で頑張ってみます!
オフライン
※規約違反により追放されたユーザの投稿は、ログインユーザにのみ表示されます。
最後の編集者: kiyoshi (2008-11-15 13:16:45)
オフライン