Ubuntuのgrubを用いてWindowsとデュアルブートする
Ubuntuのgrubを用いてWindowsとデュアルブートする grubをもちいて、Ubuntu側の設定でWindowsとデュアルブート 参考はこちら 「 GRUB2 」 「 Grub2 でのUUID 変更方法を教えてください。 」 構造(流れ) /etc/default/grubを編集 sudo update-grub /boot/grub/grub.cfgへ反映される 手動で追加 1.手動で追加する場合は、/etc/grub.d/40_customに、grub.cfgに書かれているようにOS設定を登録 2.sudo update-grub で完了のはず 編集する $ sudo gedit /etc/grub.d/40_custom 以下を追加 menuentry "Windows XP Service Pack 3 (on /dev/sdb1)" { insmod part_msdos insmod ntfs set root='(hd1,1)' chainloader +1 } ※(hd1,1)・・・HDDの2番目、2番目のパーティションの意味(どちらも0オリジン)。 反映 $ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.35-28-generic Found initrd image: /boot/initrd.img-2.6.35-28-generic Found linux image: /boot/vmlinuz-2.6.35-22-generic Found initrd image: /boot/initrd.img-2.6.35-22-generic Found memtest86+ image: /boot/memtest86+....