
Ubuntu日本語フォーラム

ログインしていません。
お世話になります。
環境:Windows XPと8.10のデュアルブートでブートフロッピーの作りたいので
1)https://wiki.ubuntulinux.jp/UbuntuTips/Hardware/MountFloppy
を参考にフロッピーディスクをマウントして上のパネルにランチャを作成しました。ランチャをクリックするとファイルブラウザの左側に
フロッピー・ドライブとfloppy0が表示されます。
2)https://wiki.ubuntulinux.jp/UbuntuTips/Others/UseBootRemovableDevice
を参考に「端末」で ブートフロッピーをつくろうとすると
masayukiya@masa2:~$ sudo /usr/sbin/grub-install /dev/fd0
/dev/fd0 does not have any corresponding BIOS drive.
と表示されます。
ファイルブラウザで開くとファイルシステム→ /dev/にfd0はありますが×印を□で囲んだマークがついています。
上記2つのページのとおりやったつもりですが、どこかで間違えているのでしょうか?
よろしくお願いします。
オフライン
sudo grub-install --recheck /dev/fd0
でどうでしょう。
上記でダメであれば
/boot/grub/device.mapに(fd0) /dev/fd0の1行を追加してgrub-installの実行。
オフライン
jackalope による投稿:
sudo grub-install --recheck /dev/fd0
でどうでしょう。
お手数をおかけします。
実施したら下記のように表示されました。
masayukiya@masa2:~$ sudo grub-install --recheck /dev/fd0
[sudo] password for masayukiya:
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/fd0 as (fd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
masayukiya@masa2:~$
/boot/grub/device.map.を開くと
(fd0) /dev/fd0
(hd0) /dev/sda
と表示されていましたので、ブートフロッピーが出来たとおもうのですが、
ファイルブラウザでフォルダfloppy0を開くと空でプロパティで見ても「内容:なにもない」でした。
ただ、Ubuntuでフロッピーを使うのが始めてで、上記を行う前にフォーマットしていなかったことを思い出して、「フロッピー初期化ツール」で、フォーマットしてやりなおそうとしたら「トラック#0のフォーマット中にエラーが発生」でフォーマット出来ませんでした。フォーマットの際、ファイルシステムの選択はLinux ネイティブ(ext2)とDOS(FAT)の二つなので、前者を選びました。フロッピーディスクはwindows用に買ってあったものでLinuxに対応しているかはわかりません。
追記:
「端末」でフォーマットを試したら出来ました。(上記の「フロッピー初期化ツール」は「追加と削除」にあったFloppy Formatter。)
masayukiya@masa2:~$ fdformat /dev/fd0
両面, 80 トラック, 18 セクタ/トラック。合計容量 1440 kB。
フォーマットします ... 終了
照合します ... 終了
フォーマット後、下記を試しました。
masayukiya@masa2:~$ sudo /usr/sbin/grub-install /dev/fd0
[sudo] password for masayukiya:
Searching for GRUB installation directory ... found: /boot/grub
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Installing GRUB to /dev/fd0 as (fd0)...
Unknown partition table signature
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
masayukiya@masa2:~$
ファイルブラウザでフォルダfloppy0を開くと何も表示されませんが、フォルダのプロパティを開くと「種類」:フォルダ(inode/directory) 「内容」:なにもしない と表示が変わりました。これでブートフロッピーができたのでしょうか?出来たとするとフォーマットしなかったのが原因でしたが・・・
このフロッピーディスクから起動してみましたが、すぐブート画面になりました。現在、このHDDは正常に起動しているのでブートフロッピーが機能した結果かどうかはわかりません。
最後の編集者: masayuki (2009-04-09 19:20:42)
オフライン
自己レスです。なぜ、フロッピーディスクをフォーマットしないで、ブートディスクをつくろうとしたか思い出しました。
ブートディスクの作り方説明ページ
https://wiki.ubuntulinux.jp/UbuntuTips/Others/UseBootRemovableDevice
に
>予めフロッピーディスクをフォーマットしておく必要はなく、自動的にフォーマットされ、grubが書き込まれる。
と記載され、
>対象とするUbuntuのバージョン * すべて
と書かれていたからでした。
オフライン
/boot/grub/device.map.を開くと
(fd0) /dev/fd0
(hd0) /dev/sda
と表示されていましたので、ブートフロッピーが出来たとおもうのですが、
ファイルブラウザでフォルダfloppy0を開くと空でプロパティで見ても「内容:なにもない」でした。
device.mapはブートフロッピーの出来、不出来とは関係ないです。
フロッピーの中身がないのは失敗です。
正常な物は/boot/grub/ディレクトリがありその中に関係ファイルがあります。
このフロッピーからブートした場合はGrubのメニューはでなくて、grub>のプロンプトのみになります。
>予めフロッピーディスクをフォーマットしておく必要はなく、自動的にフォーマットされ、grubが書き込まれる。
今回の方法ではフロッピーをフォーマットしないとダメだと思います。
ファイルシステムは、vfatでもext2でもどちらでもいいですがext2にしましょう。
mkfs -t ext2 /dev/fd0でファイルシステムを設定します。
ご使用のフロッピーはおそらくDOSでフォーマットされているので、Ubuntu上でフォーマットする必要はなくmkfsだけでいいでしょう。
フロッピーをドライブにセットしてmountする。
grub-install --root-directory=/media/floppy0 /dev/fd0
^^^^^^^^^^^^^^ここはフロッピーのマウント先ですので環境により変わります。
で、できるはず。
先に書きましたがこのフロッピーではGrubのメニューが表示されませんので、/boot/grub/以下にmenu.lstを追加した物を作る方が使い勝手がいいでしょう。
オフライン
jackalope による投稿:
フロッピーをドライブにセットしてmountする。
grub-install --root-directory=/media/floppy0 /dev/fd0
お世話になります。
「端末」で実施しました。結果は下記:
masayukiya@masa2:~$ sudo grub-install --root-directory=/media/floppy0 /dev/fd0
[sudo] password for masayukiya:
Probing devices to guess BIOS drives. This may take a long time.
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
The file /media/floppy0/boot/grub/stage2 not read correctly.
masayukiya@masa2:~$
フロッピーディスクを開くと中身は下記のようになっています。
/media/floppy0/boot/grub/default
/media/floppy0/boot/grub/device.map
/media/floppy0/boot/grub/e2fs_stage1_5
/media/floppy0/boot/grub/fat_stage1_5
/media/floppy0/boot/grub/jfs_stage1_5
/media/floppy0/boot/grub/minix_stage1_5
/media/floppy0/boot/grub/reiserfs_stage1_5
/media/floppy0/boot/grub/stage1
/media/floppy0/boot/grub/stage2
/media/floppy0/boot/grub/xfs_stage1_5
これでブートフロッピーは出来たのでしょうか?
追記:
このフロッピーディスクで起動してみましたが、いつものブート画面になったのでブートフロッピーが機能したのか、ブートフロッピーが機能したのではなく、HDDが通常どおり起動したのかはっきりしません。バックアップをとったサブHDDがエラーで起動しないときに試すことにします。有難うございました。
最後の編集者: masayuki (2009-04-10 16:03:02)
オフライン
The file /media/floppy0/boot/grub/stage2 not read correctly.
mkfs -t ext2 /dev/fd0 を実行しましたか?
これでブートフロッピーは出来たのでしょうか?
ブートしてみれば分かります。
オフライン
jackalope による投稿:
mkfs -t ext2 /dev/fd0 を実行しましたか?
いいえ、フォーマットしました。もう一度、そこからやりなおしましたが、grub-install後の表示でやはり
The file /media/floppy0/boot/grub/stage2 not read correctly.
と表示されました。
・・・ブートしてみれば分かります。
BIOSの設定でfirst, second, third boot device共、removable で boot other device を disabled にすると起動しませんでしたが
boot other device を enable にすると起動しました。
こういった起動をしたことがないのでわかりませんが、後者の場合、HDD(正常な)を読みにいって起動したのでしょうか?
現在、バックアップ用のHDDはRAWコピーしたのでこちらも正常に起動します。「差分コピー」だとこれまで grub loading error 17となり起動しませんので、次回バックアップ時、「差分コピー」して、ブートディスクを試してみます。(コピーは「LBコピーワークス10を使っています)
有難うございました。また、結果をかかせていただきます。
最後の編集者: masayuki (2009-04-10 19:04:06)
オフライン
自己レスです。上述したXPとUbuntu8.10をデュアルブートで使っているHDDをバックアップHDDに「差分コピー」して、作ったブートディスクから起動してみましたが、結果は:
grub loadind staged 1.5.
grub loading, please wait....
error 17
で起動しませんでした。
やはり、「端末」で
masayukiya@masa2:~$ sudo grub-install --root-directory=/media/floppy0 /dev/fd0
・・・・
The file /media/floppy0/boot/grub/stage2 not read correctly.
と表示されたので、正しくインストールされなかったのだと思います。なぜ、stage2が読めなかったかはわかりません。
オフライン
The file /media/floppy0/boot/grub/stage2 not read correctly
フロッピーをマウントしていないとこのエラーがでますね。しかし、エラーがでるとファイルの書き込みもしてないのですがね??
最初からやり直してみましょう。
sudo fdformat /dev/fd0
sudo mkfs -t ext2 /dev/fd0
sudo mount -t ext2 /dev/fd0 /mnt
sudo grub-install --root-directory=/mnt /dev/fd0
こういった起動をしたことがないのでわかりませんが、後者の場合、HDD(正常な)を読みにいって起動したのでしょうか?
#5にも書きましたが、このフロッピーからブートした場合はGrubのメニューは表示されず、grub>のプロンプトのみになりますので自動でUbuntuは起動しません。
Grubのフロッピーを作る他の方法。
その1
mountまでは同じ。
sudo mkdir -p /mnt/boot/grub
sudo cp /boot/grub/stage1 stage2 /mnt/boot/grub/
sudo grub
root (fd0)
setup (fd0)
quit
その2
sudo dd if=/usr/lib/grub/i386-pc/stage1 of=/dev/fd0 bs=512 count=1
sudo dd if=/usr/lib/grub/i386-pc/stage2 of=/dev/fd0 bs=512 seek=1
このフロッピーはマウントできません。
オフライン
お世話になります。
示していただいた3つの方法のうち、最初と二つめを試しました。(最後は未実施)
両方とも、
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のメニューが表示されませんので、/boot/grub/以下にmenu.lstを追加した物を作る方が使い勝手がいいでしょう。
を思いだし、二つめの方法で stage1 stage2 に menu.lst を追加して見ました。
このブートフロッピーでは
1)いつものデュアルブート画面が表示され、Ubuntuに入れますが、フロッピーをはずして再起動するとerror17となり起動出来ません。
2)デュアルブート画面でXPを選ぶと error25となり、XPは起動しません。
なかなか一筋縄ではいきません。
オフライン
追記:
コピー元FHDDのmenu.lstとコピー先のmenu.lstの中身を見比べましたが、違いはないようでした。
コピーソフトのテクニカルサポートに聞いたら、「コピー先HDDのGrubの更新が必要だかUbuntuについては分からない」と言っていました。
追記2:
コピー元HDDのフォルダgrubをコピー先HDDにメールで移して、/boot/grubにファイルをコピーしましたが、何故か、下記のように xfs_stage1_5だけコピー出来ませんでした。コピー操作自体有効だったか自信はありません。
masayukiya@masa2:~$ sudo cp default device.map e2fs_stage1_5 fat_stage1_5 installed-version jfs_stage1_5 menu.lst menu.lst~ minix_stage1_5 reiserfs_stage1_5 stage1 stage2 xfs_stage1_5
[sudo] password for masayukiya:
cp: target `xfs_stage1_5' is not a directory
masayukiya@masa2:~$ sudo cp xfs_stage1_5 /home/masayukiya/grub/ /boot/grub
cp: cannot stat `xfs_stage1_5': No such file or directory
cp: omitting directory `/home/masayukiya/grub/'
masayukiya@masa2:~$
このあと、フロッピーをはずして再起動したら、
boot from:CD
grub loading stage1.5.
grub loading, ....
error17
となり、起動出来ませんでした。
最後の編集者: masayuki (2009-04-12 08:58:56)
オフライン
ブートフロッピーはできたようですね。
menu.lst、error17、boot from:CD、コピー先HDDのGrubの更新、どの問題から解決したいのですか?
オフライン
jackalope による投稿:
・・・menu.lst、error17、boot from:CD、コピー先HDDのGrubの更新、どの問題から解決したいのですか?
お世話になります。
お陰様で、ブートフロッピーからUbuntuが起動するまでになりました。
現在、ブートフロッピーから起動すると通常のブート画面がでて、ここからUbuntuは起動しますが、XPはerror25となり起動しません。また、Ubuntu もブートフロッピーからしか起動できません。出来れば、「差分コピー」後、コピー先HDDで一旦ブートフロッピーからUbuntuを起動して必要な操作をおこない再起動すれば、それ以降、ブートフロッピーなしでブート画面からUbuntuにもXPにも入れる方法があれば教えてください。よろしくお願いします。
オフライン
Ubuntuが起動したらsudo fdisk -lの結果とmenu.lstの内容をお知らせ下さい。
オフライン
jackalope による投稿:
Ubuntuが起動したらsudo fdisk -lの結果とmenu.lstの内容をお知らせ下さい。
お世話になります。下記がその内容です。よろしくお願いします。
masayukiya@masa2:~$ sudo fdisk -l
[sudo] password for masayukiya:
omitting empty partition (5)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
Disk identifier: 0x420df78b
デバイス Boot Start End Blocks Id System
/dev/sda1 * 1 9658 77577853+ 7 HPFS/NTFS
/dev/sda2 9659 19458 78713019 f W95 Ext'd (LBA)
/dev/sda5 9659 19052 75457273+ 83 Linux
/dev/sda6 19053 19457 3253131 82 Linux swap / Solaris
masayukiya@masa2:~$
****
# 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=4b17b775-d74b-4345-8340-7f1aab5e72a9 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=4b17b775-d74b-4345-8340-7f1aab5e72a9
## 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-11-generic
uuid 4b17b775-d74b-4345-8340-7f1aab5e72a9
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=4b17b775-d74b-4345-8340-7f1aab5e72a9 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 4b17b775-d74b-4345-8340-7f1aab5e72a9
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=4b17b775-d74b-4345-8340-7f1aab5e72a9 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 4b17b775-d74b-4345-8340-7f1aab5e72a9
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=4b17b775-d74b-4345-8340-7f1aab5e72a9 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 4b17b775-d74b-4345-8340-7f1aab5e72a9
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=4b17b775-d74b-4345-8340-7f1aab5e72a9 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 4b17b775-d74b-4345-8340-7f1aab5e72a9
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
root (hd0,0)
savedefault
makeactive
chainloader +1
オフライン
Ubuntu上で
sudo grub
root (hd0,4)
setup (hd0)
quit
コマンド実行後のメッセージに注意して下さい。
フロッピーを抜いて再起動。
オフライン
お世話になります。
下記のように setup (hd0) のところでエラーになりました。
[ 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> root (hd0,4)
grub> setup (hd0)
Error 17: Cannot mount selected partition
grub>
最後の編集者: masayuki (2009-04-12 20:10:55)
オフライン
jackalopeさん、
超初心者にお付き合いいただき有難うございました。今回は再度「RAWコピー」でバックアップを取り直すことにしました。
これからもよろしくお願いします。
オフライン
遅かったか.まあ,次の機会にでも試してください.
糸口になるかどうか分かりませんが,grub の shell からディスクがどう見えているか調べることができます.
$ sudo grub
で grub shell を起動した後
grub> geometry (hd0)
を試してください.grub shell では
grub> geometry (
とまで入力して Enter を押さずに Tab を押すと grub shell が認識しているディスクの候補が
grub> geometry (hd
Possible disks are: hd0 hd1 hd2
と言った具合に補完されますので,それぞれのディスクに対し geometry コマンドを実行してみれば何かわかるのでは?
ちなみに此方での実行例では
grub> geometry (hd0) drive 0x80: C/H/S = 981/255/63, The number of sectors = 15761088, /dev/sda Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 4, Filesystem type unknown, partition type 0x82
で,/dev/sda は fdisk では
$ sudo fdisk -l /dev/sda Disk /dev/sda: 8069 MB, 8069677056 bytes 255 heads, 63 sectors/track, 981 cylinders Units = シリンダ数 of 16065 * 512 = 8225280 bytes Disk identifier: 0xd04c2064 デバイス Boot Start End Blocks Id System /dev/sda1 * 1 933 7494291 83 Linux /dev/sda2 934 981 385560 5 拡張領域 /dev/sda5 934 981 385528+ 82 Linux swap / Solaris
の様に見えています.
オフライン
einundzwanzighundertsechs による投稿:
糸口になるかどうか分かりませんが,grub の shell からディスクがどう見えているか調べることができます.
お世話になります。
コピー元HDDの表示:
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
コピー先HDDの表示:
grub> geometry (hd0)
drive 0x80: C/H/S = 19457/255/63, The number of sectors = 312581808, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type unknown, partition type 0x82
でした。
なお、fdiskの結果も両方とも下記の表示でした。
デバイス Boot Start End Blocks Id System
/dev/sda1 * 1 9658 77577853+ 7 HPFS/NTFS
/dev/sda2 9659 19458 78713019 f W95 Ext'd (LBA)
/dev/sda5 9659 19052 75457273+ 83 Linux
/dev/sda6 19053 19457 3253131 82 Linux swap / Solaris
オフライン
コピー元とコピー先でパーティション番号がズレてます.
jackalope さんの #17 の指示で (hd0,4) となっているところを (hd0,5) に変えれば OK ではないでしょうか.
#16 で fdisk が次のメッセージを吐いてます.
masayukiya@masa2:~$ sudo fdisk -l
[sudo] password for masayukiya:
omitting empty partition (5)
つまり,コピー先には空のパーティションが出来てしまっていて,
linux カーネルはそれを無視するが grub はそれを無視できないと言うことらしいです.
おそらく,
(hd0,4) = 問題の空パーティション
(hd0,5) = /dev/sda5
(hd0,6) = /dev/sda6
と言う割り当てになっているわけですね.
何故,空パーテョションが出来てしまったのかと,それをどうやって削除するのかは ???
コピーソフトが犯人?
最後の編集者: einundzwanzighundertsechs (2009-04-14 16:50:50)
オフライン
einundzwanzighundertsechs による投稿:
コピー元とコピー先でパーティション番号がズレてます.
jackalope さんの #17 の指示で (hd0,4) となっているところを (hd0,5) に変えれば OK ではないでしょうか ・・・
お世話になります。
やってみました。結果は下記:
grub> root (hd0,5)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... failed
Error 12: Invalid device requested
となり、うまくいきませんでした。
オフライン
Error 12 って,device に関する「その他のエラー」で,原因は???です.
やっぱり問題の空パーティションがを悪さしているのでしょうか?
追記:
次で Crush さんも書かれてますが,空パーティションを何とかした方がおそらく解決は早いと思います.
とは言え,もう少しあがいてみたいのですが,よろしいでしょうか?
ただし以下の作業では grub のインストール作業を中途半端な状態で止めるため
コピー先のディスクでは Windows でも boot できなくなります.
コピー先ディスクの MBR のバックアップを取っておいて,後でリストアするか,
最悪でバックアップコピーのやり直しになります.
了承していただけるなら,(hd0) が問題なのか,(hd0,5)が問題なのか切り分けるため
$ sudo grub grub> root (hd0,5) grub> install /boot/grub/stage1 (hd0) (hd0)1+16
を試してください.
最後の編集者: einundzwanzighundertsechs (2009-04-16 20:45:58)
オフライン