
Ubuntu日本語フォーラム

ログインしていません。
はじめまして。
Eee-PC701SDで外付けHDにeeeUbuntu 8.04をインストールして、Windows XP HomeEditionとのデュアルブートで使用していたのですが、この度ネットブックに最適化されたUbuntu 9.04 Netbook Remixがリリースされているのを知ってこちらを導入いたしました。
パーテーションは8.04がインストールされていた部分をext4ファイルシステムでフォーマットして使用しました。
インストールは問題なく終了し、Ubuntuは正常に起動出来ましたが、デュアルブートにしたはずのXPは Error 13 Invalid or Unsupported Executable Format と表示されてしまい、なかなか上手く起動できません・・・。
グーグルにて Ubuntu + Error 13 で検索をしたところ【http://www.webdeveloper.com/forum/showthread.php?t=174383】が恐らく類似の症状だと思われるのですが、いかんせん英語が読めない為に解決策とは成り得ませんでした。
当方、初心者ですので、なにとぞお手柔らかにお願い致します。
m(。。)m
オフライン
こんばんは
どういう構成をとっているか分からないので、もう少し詳しく書いていただければ。
インストールは問題なく終了し、Ubuntuは正常に起動出来ましたが、デュアルブートにしたはずのXPは Error 13 Invalid or Unsupported Executable Format と表示されてしまい、なかなか上手く起動できません・・・。
このエラーはgrubが出しているとしたら、Ubuntuは正常に起動できていることが理解できません。
もし、NTLDRが出しているとすれば、ネットを検索しましたが、見当たりませんでした。
でも、外付けHDDをext4でフォーマットしたために、『サポートしていないフォーマットです』といわれているのですから、単純にext3に戻せば解決するのでは?
オフライン
grubのmenu.lstのXP(を指すはずだった部分)の記載がおかしくなってしまったため、Invalid or Unsupported Executable Formatの表示がでるようになっているのではないでしょうか。
1.固定HDDのパーティション構成
2.外付けHDDのパーティション構成
3.Grubをインストールしているのはどこか(固定or外付けHDD、および、それのどのパーティションか、あるいはMBRか)
4.menu.lstの内容
を投稿していただけるとなにか判るかも知れません。
オフライン
UbuntuのGRUBが,外付けHDDを1番目のドライブとして,また,内蔵SSDを2番目のドライブとして認識していることが原因と思われます。Windowsは1番目のドライブからしか起動できないため,このようなエラーになるのでは?
Ubuntu側の/boot/grub/menu.lstのWindowsの呼び出しに相当する部分を下記のように書き換えてみて下さい。
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
これはGRUBに内蔵SSDのドライブ名を1番目のドライブ名として認識させる呪文みたいなものです。
オフライン
funatogawa様、hmatsue様、vine_user様、早速のご回答有り難うございます!
先ずは
>どういう構成をとっているか分からないので、もう少し詳しく書いていただければ。
>1.固定HDDのパーティション構成
>2.外付けHDDのパーティション構成
インストール時に使用したライブUSBのパーテーションエディタで、ファイルを確認したところ以下の様になっていました。
/dev/sda (7.51GiB)
/dev/sda1 / FileSistem ntfs / Size7.49GiB / Used 4.14GiB / Unused 3.35GiB / Flags boot
/dev/sdb = ライブUSB
/dev/sdc (111.79GiB)
/dev/sdc1 / FileSistem ext4 / Size 4.69GiB / Used 2.65GiB / Unused 2.04GiB / Flags boot
/dev/sdc2 / FileSistem linux-swap / Size 1.39GiB
/dev/sdc3 / FileSistem fat32 / Size 105.71GiB / Used 47.91GiB / Unused 57.79GiB
>でも、外付けHDDをext4でフォーマットしたために、『サポートしていないフォーマットです』といわれているのですから、単純にext3に戻せば解決するのでは?
ext4ファイルシステムからext3へと戻す作業というのは簡単にできるものなのでしょうか・・・?
>3.Grubをインストールしているのはどこか(固定or外付けHDD、および、それのどのパーティションか、あるいはMBRか)
これはどこから確認すればよいのでしょうか・・・?
>4.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=bd781076-e756-4fa0-b3ac-8e8bd543cf24 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=bd781076-e756-4fa0-b3ac-8e8bd543cf24
## 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
## 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-13-generic
uuid bd781076-e756-4fa0-b3ac-8e8bd543cf24
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=bd781076-e756-4fa0-b3ac-8e8bd543cf24 ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid bd781076-e756-4fa0-b3ac-8e8bd543cf24
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=bd781076-e756-4fa0-b3ac-8e8bd543cf24 ro single
initrd /boot/initrd.img-2.6.28-13-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid bd781076-e756-4fa0-b3ac-8e8bd543cf24
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=bd781076-e756-4fa0-b3ac-8e8bd543cf24 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid bd781076-e756-4fa0-b3ac-8e8bd543cf24
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=bd781076-e756-4fa0-b3ac-8e8bd543cf24 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid bd781076-e756-4fa0-b3ac-8e8bd543cf24
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 Home Edition
rootnoverify (hd0,0)
savedefault
chainloader +1
となっています。
>Ubuntu側の/boot/grub/menu.lstのWindowsの呼び出しに相当する部分を下記のように書き換えてみて下さい。
これは上記した物の
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
という部分でしょうか?それとも最後の
title Microsoft Windows XP Home Edition
rootnoverify (hd0,0)
savedefault
chainloader +1
でしょうか?
オフライン
うおぉぉぉ・・・。
長ったらしい上に見づらいですね。
申し訳ないです(汗
オフライン
title Microsoft Windows XP Home Edition
rootnoverify (hd0,0)
savedefault
chainloader +1
の方ですね。#ではじまる行はコメント行であるためGRUBからはないものと扱われます。
title Microsoft Windows XP Home Edition
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
vine_userさんが書かれたのはこういうことでよいのかしら。
正直初めて知った昨日で自信がないですが。。
オフライン
hmatsuesa様
早速書き変えをしたのですが、ファイルを保存しようとすると
ファイル /boot/grub/menu.lst を保存できませんでした。
そのファイルを保存するために必要な権限がありません。入力した場所が正しいか確認して、もう一度実行してみて下さい。
と出てしまいました・・・。
menu.lstのプロパティーのアクセス権タブを確認すると、
あなたは所有者ではありません(これらのアクセス権を変更することはできません)。
だそうです・・・。
オフライン
「/boot/grub/menu.lst」ファイルを編集するには管理者権限が必要となります。
管理者権限で操作するには「端末」で「sudo」コマンドを使用します。sudoコマンドを使用するときはパスワードを求められますので、ご自身のパスワードを入力してください(入力中に入力文字は表示されませんので、ご注意を)。
以下のコマンドで目的のファイルを編集出来ます。
sudo gedit /boot/grub/menu.lst
オフライン
それと、編集前にはコピー(バックアップ)しておいた方が良いです。
端末で
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.orig
を実行し、コピーしておいてください。
元に戻すときはファイル名を入れ替えるだけです。
オフライン
Templer様
有難うございました!!!!
これでちゃんと編集できましたー!
問題解決にご協力してくださいました皆様、本当に助かりました。
多謝多謝m(..)m
オフライン