お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2009-06-26 18:05:44

hiroppy
メンバ
From: 東京
登録日: 2009-03-09

/boot/grub/menu.lstの設定が出来ません。

Windows VistaとUbuntu8.10とFedora11のマルチブートにしようとおもい
10回近くFedoraとUbuntuのインストールを色々な条件で試してみましたが
UbuntuがFedora11をインポートしてくれずマルチブートが難しい状態です。
それでFedoraのgrub/menu.lstの設定を一部Ubuntuのgrub/menu.lst
に追記して起動させようとしたんですが駄目でした。何か良い方法はあるでしょうか?


Ubuntu8.10の/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=39f1a475-64b5-4826-96be-b782b2465651 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=4a2a1063-d107-4c00-acc9-126d07a5cc07

## 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.10, kernel 2.6.27-9-generic
uuid 4a2a1063-d107-4c00-acc9-126d07a5cc07
kernel /vmlinuz-2.6.27-9-generic root=UUID=39f1a475-64b5-4826-96be-b782b2465651 ro quiet splash
initrd /initrd.img-2.6.27-9-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 4a2a1063-d107-4c00-acc9-126d07a5cc07
kernel /vmlinuz-2.6.27-9-generic root=UUID=39f1a475-64b5-4826-96be-b782b2465651 ro single
initrd /initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 4a2a1063-d107-4c00-acc9-126d07a5cc07
kernel /vmlinuz-2.6.27-7-generic root=UUID=39f1a475-64b5-4826-96be-b782b2465651 ro quiet splash
initrd /initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 4a2a1063-d107-4c00-acc9-126d07a5cc07
kernel /vmlinuz-2.6.27-7-generic root=UUID=39f1a475-64b5-4826-96be-b782b2465651 ro single
initrd /initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 4a2a1063-d107-4c00-acc9-126d07a5cc07
kernel /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/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a other-linux OS
# on /dev/sdc3
title Fedora (2.6.29.4-167.fc11.i686.PAE) (sdc3)
root (hd1,1)
kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=UUID=3d0e5742-0631-4b13-9da4-404c758cafda rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
savedefault
makeactive
chainloader +1




ファイル構成は
root@hiroppy-laptop:~# df -a
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/sda3 14555424 6361224 7454812 47% /
tmpfs 1031600 0 1031600 0% /lib/init/rw
/proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
varrun 1031600 196 1031404 1% /var/run
varlock 1031600 0 1031600 0% /var/lock
udev 1031600 2860 1028740 1% /dev
tmpfs 1031600 452 1031148 1% /dev/shm
devpts 0 0 0 - /dev/pts
fusectl 0 0 0 - /sys/fs/fuse/connections
/dev/sda5 186663 32820 144206 19% /boot
securityfs 0 0 0 - /sys/kernel/security
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 0 0 0 - /root/.gvfs
/dev/sdb5 7321252 172032 6777320 3% /media/disk
/dev/sdb2 194449 13738 170671 8% /media/disk-1
/dev/sdb1 563199996 50416324 512783672 9% /media/USBハードディスク01
root@hiroppy-laptop:~#

です。Fedora11のファイルシステムをext4にしてから一部Ubuntu側でFedoraのファイルが認識できなくなっています。
Fedora11をUSB外付けハードディスクにインストールしました。
どうすればUbuntuのgrubでFedora11を起動出きるようになるでしょうか?

オフライン

 

#2 2009-06-26 21:05:04

hir0
メンバ
登録日: 2008-09-28

Re: /boot/grub/menu.lstの設定が出来ません。

えーと、外付けUDB-HDDとの事ですが(hd1,1)は大丈夫ですか?

ファイル構成が見にくくてよく解らないのですが。
$ sudo fdisk -l
の結果とGrubエラーの内用が判れば良いんですが「起動しようとしてダメでした」はOSの選択項目の後どのあたりでダメで同友状況なのでしょうか?(ブラックアウトのままとかGrubエラーがでる、なにやら文字が沢山出て途中から動かないとか)

オフライン

 

#3 2009-06-26 21:24:02

HiroKws
メンバ
From: Tokyo, Japan
登録日: 2007-05-31

Re: /boot/grub/menu.lstの設定が出来ません。

...

http://fedora.forums-free.com/topic-t150.html?find=1&start=0

オフライン

 

#4 2009-06-26 21:40:15

hiroppy
メンバ
From: 東京
登録日: 2009-03-09

Re: /boot/grub/menu.lstの設定が出来ません。

じつはこれは以前の話で今はFedora10にもどしてあります。それでアップグレードするさいのシミュレーションとして投稿しています。以下はFedora10でコマンド実行したものです。Fedoraはパーティションを/boot、/、/home、/usr、/tmp、/usr/local、/var、swapなどに分割してあり、Ubuntu8.10も/boot、/、swapに分割しています。エラーはgrubのError13:Invalid or unsupported,executable formatです。これが解決しないとFedora11とUbuntu8.10とWindowsのマルチブートが出来ないんです。

[zusann123@hiroppy ~]$ sudo fdisk -l
[sudo] password for zusann123:     
zusann123 is not in the sudoers file.  This incident will be reported.
[zusann123@hiroppy ~]$ fdisk -l                                       

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbd39cc9f

デバイス Boot      Start         End      Blocks   Id  System
/dev/sda1           10175       10198      192780    5  拡張領域
/dev/sda2   *           1       10174    81722623+   7  HPFS/NTFS
/dev/sda3           10199       12039    14787832+  83  Linux
/dev/sda4           12040       12161      979965   82  Linux swap / Solaris
/dev/sda5           10175       10198      192748+  83  Linux

領域テーブル項目がディスクの順序と一致しません

Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007b7e2

デバイス Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       70116   563200000    7  HPFS/NTFS
/dev/sdc2   *       70117       70141      200812+  83  Linux
/dev/sdc3           70142       71416    10241437+  83  Linux
/dev/sdc4           71417       77825    51480292+   5  拡張領域
/dev/sdc5           71417       72342     7438063+  83  Linux
/dev/sdc6           72343       73255     7333641   83  Linux
/dev/sdc7           73256       74855    12851968+  83  Linux
/dev/sdc8           74856       75875     8193118+  83  Linux
/dev/sdc9           75876       77285    11325793+  83  Linux
/dev/sdc10          77286       77825     4337518+  82  Linux swap / Solaris
[zusann123@hiroppy ~]$

よろしくお願いします。

オフライン

 

#5 2009-06-26 22:55:56

GHO
メンバ
From: 東京郊外
登録日: 2008-05-07

Re: /boot/grub/menu.lstの設定が出来ません。

上記HiroKwsさんが示して下さってるリンク先で Ubuntu8.10 は ext4 に対応していない旨の指摘がされていますが、その辺は大丈夫でしょうか?
ext4 を使うなら Ubuntuは9.04でないと。

オフライン

 

#6 2009-06-27 00:38:26

hiroppy
メンバ
From: 東京
登録日: 2009-03-09

Re: /boot/grub/menu.lstの設定が出来ません。

/bootがext3ならgrubは使えるとhttp://w6.oroti.com/~kota/?p=1382にありますが無理なんでしょうか?

オフライン

 

#7 2009-06-27 00:42:26

hir0
メンバ
登録日: 2008-09-28

Re: /boot/grub/menu.lstの設定が出来ません。

hiroppy.....................n?

向こうでやりましょうよ。

オフライン

 

#8 2009-06-27 09:41:25

GHO
メンバ
From: 東京郊外
登録日: 2008-05-07

Re: /boot/grub/menu.lstの設定が出来ません。

うう。発言の自付けを良く見てみれば……。
向こうで出てる以上の結論は出なさそうです。
向こうに ubuntu と Fedora の grub をインストールした場所と、それぞれの menu.lst を貼り付けて助言を求めれば解決する気がします。

オフライン

 

Board footer

Powered by FluxBB