R2-Duck2
June 24th, 2010, 04:04 AM
Situation:
Windows XP does not boot when selected from the GRUB menu.
No XP install disk available.
PC boots to Ubuntu (Grub2) without problem.
sudo fdisk -l shows:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6100 48996048+ 7 HPFS/NTFS
/dev/sda2 17973 19457 11928262+ 1c Hidden W95 FAT32 (LBA)
/dev/sda3 6100 17972 95363073 5 Extended
/dev/sda5 6100 17602 92386304 83 Linux
/dev/sda6 17602 17972 2975744 82 Linux swap / Solaris
If there is no Windows install disk, it is my understanding an Ubuntu Live CD can be used (or booting from Ubuntu?) and the following commands can be entered from a Terminal:
sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
The above should reboot the machine into Windows XP, with no GRUB, so Ubuntu would not show. Would presume Ubuntu is still in /dev/sda5?
Would booting from an Ubuntu Live CD, and manually installing GRUB with the following command work to get GRUB installed and for the pc to be able to boot from either XP or Ubuntu:
grub-install /dev/sda
If this is not the route to go, is there a way to accomplish this? Any suggestions?
Thanks for your help. ;)
Windows XP does not boot when selected from the GRUB menu.
No XP install disk available.
PC boots to Ubuntu (Grub2) without problem.
sudo fdisk -l shows:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6100 48996048+ 7 HPFS/NTFS
/dev/sda2 17973 19457 11928262+ 1c Hidden W95 FAT32 (LBA)
/dev/sda3 6100 17972 95363073 5 Extended
/dev/sda5 6100 17602 92386304 83 Linux
/dev/sda6 17602 17972 2975744 82 Linux swap / Solaris
If there is no Windows install disk, it is my understanding an Ubuntu Live CD can be used (or booting from Ubuntu?) and the following commands can be entered from a Terminal:
sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
The above should reboot the machine into Windows XP, with no GRUB, so Ubuntu would not show. Would presume Ubuntu is still in /dev/sda5?
Would booting from an Ubuntu Live CD, and manually installing GRUB with the following command work to get GRUB installed and for the pc to be able to boot from either XP or Ubuntu:
grub-install /dev/sda
If this is not the route to go, is there a way to accomplish this? Any suggestions?
Thanks for your help. ;)