Can't boot Windows Xp from GRUB
Hello,
I'm a newbie in informatics and Linux. I'd deleted a disk partition with Ubuntu in my machine and GRUB was installed there. Since this, I had been unable to load GRUB. I restored it using fdisk -l and then I updated menu.lst and fstab and finally Ubuntu runs ok from GRUB. (I'd installed my mistake linux in two different disk partitions). However, I have another partition with FreeDOS and Windows Xp and both OSes doesn't boot. When I try to run FreeDOS a message apperas telling me there is no kernel and when I try to start Windows appears the login screen with the Windows logo for an instant and then a blue screen and my laptop reboots. I access both Windows Xp and FreeDOS through a sub menu inside FreeDOS option in GRUB selection screen. This is my menu.lst output: Code:
# menu.lst - See: grub(8), info grub, update-grub(8) Code:
# /etc/fstab: static file system information. |
[quote]Hello,[quote]Gudday - it helps if you edit your profile to show your distro and location. Thanks.
Quote:
[quote]Since this, I had been unable to load GRUB.[quote]Yep - deleting GRUB will do that. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
fstab only shows root and swap - presumably for ubuntu. What is the output of fdisk -l? Code:
title Ubuntu 8.04.1, kernel 2.6.24-19-generic Code:
# This entry automatically added by the Debian installer for a non-linux OS You have two sets of entries for Ubuntu, in two places. If you have only one installation of Ubuntu, delete the entries which do not apply. There is no entry for Windows in the menu.lst supplied. The information supplied is not consistent. Please correct this. |
Hello,
Quote:
Quote:
Quote:
Then I typed... Code:
sudo grub This is my fdisk -l output: Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes Quote:
However I don't mind if I cannot run FreeDOS again, actually I've never used it. I'm principally interested in be able to use Windows again. Quote:
Quote:
Quote:
Quote:
Code:
# This entry automatically added by the Debian installer for a non-linux OS Quote:
Thanks |
This is menu.lst with unneeded entries deleted.
Code:
# menu.lst - See: grub(8), info grub, update-grub(8) Quote:
Thanks |
[url=http://en.wikipedia.org/wiki/Blue_Screen_of_Death]This is what a BSOD looks like.[/quote]
Looking at fstab -l output, sda1 a fat32 partition, which would normally be Windows XP. The following entry should boot WinXP happily. title Windows XP root (hd0,0) savedefault makeactive chainloader +1 Though I'd normally prefer a rootnoverify but, apparently, grub is smart enough these days. savedefault is only needed if you want XP to be the default boot option. Recommend you try doing your routine work in Ubuntu and do a special boot only for those annoying 'dows-only things. It will quickly become a preference. (I take it there is no problem booting and running ubuntu?) The puzzle is that this entry is identical to your one for freedos. (The title makes no difference). That GRUB entry will set the root partition to sda1 (C:\) then pass the boot process to whatever is there to catch it. I suspect there is a bootloader there which would normally allow you to choose between XP and FreeDOS - is this correct? |
Quote:
I've had to format the partition and reinstall Windows. Thanks everybody. |
Niggle - NTFS is not a bootloader. It's a file-system.
But... well done on your solution. I think... |
All times are GMT -5. The time now is 04:39 PM. |