Ubuntu Linux,Windows XPデュアルシステム再インストールGrub 2
3760 ワード
一般的にLinuxをインストールし、WindowsデュアルシステムはWindowsをインストールしてからLinuxをインストールします.この場合、Grubは自動的にWindowsを検出して起動リストに追加します.インストール順序が逆の場合は、次の解決策があります.取付Grub4Dos Ubuntu LiveCDを使用してMBR にGrubをインストール
新版のUbuntuではGrub 2を使用していますが、コマンドはGrubと少し異なりますが、大体次のように操作されています.
ここでdiskとsdaはLinuxが存在するハードディスクに基づいて調整する必要があります.
以下はgrub-setupのヘルプ情報です
リファレンスリンク http://members.iinet.net/~herman546/p20/GRUB2%20Bash%20Commands.html#Re-install_GRUB_from_Live_CD
新版のUbuntuではGrub 2を使用していますが、コマンドはGrubと少し異なりますが、大体次のように操作されています.
my-desktop:~$ sudo grub
-setup -d /media/disk/boot/grub /dev/sda
ここでdiskとsdaはLinuxが存在するハードディスクに基づいて調整する必要があります.
以下はgrub-setupのヘルプ情報です
my-
desktop
:~
$ sudo grub
-setup --
help
Usage
:
grub
-
setup [OPTION]
...
DEVICE
Set up images to boot from DEVICE
.
DEVICE must be a GRUB device (e
.
g
.
`(hd0
,
1
)
'
).
-b, --boot-image=FILE use FILE as the boot image [default=boot.img]
-c, --core-image=FILE use FILE as the core image [default=core.img]
-d, --directory=DIR use GRUB files in the directory DIR [default=/boot/grub]
-m, --device-map=FILE use FILE as the device map [default=/boot/grub/device.map]
-r, --root-device=DEV use DEV as the root device [default=guessed]
-f, --force install even if problems are detected
-s, --skip-fs-probe do not probe for filesystems in DEVICE
-h, --help display this message and exit
-V, --version print version information and exit
-v, --verbose print verbose messages
Report bugs to <[email protected]>.
リファレンスリンク