Any GRUB experts? I clicked somethin' wrong and one won't boot...
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Any GRUB experts? I clicked somethin' wrong and one won't boot...
XP won't boot. I've done something since I booted it last time, and it's been a while.
I got XP master, Ubuntu slave, both on secondary IDE. On a Raidbus PCI card, SuSE, F10, PCLOS. Primary IDE has 2 ODDs.
Grub is on Ubuntu.
partitioning:
Code:
chucknb@chucknb-desktop:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes <---HD2
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000afd18
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 * 263 2351 16779892+ 83 Linux
/dev/sda3 2352 4407 16514820 5 Extended
/dev/sda4 4408 6957 20482875 83 Linux
/dev/sda5 2352 4407 16514788+ 83 Linux
Disk /dev/sdb: 30.7 GB, 30735581184 bytes <---HD0
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006ca0a
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3736 30009388+ 7 HPFS/NTFS
Disk /dev/sdc: 80.0 GB, 80026361856 bytes <---HD1
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00022288
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 7343 58982616 83 Linux
/dev/sdc2 9448 9729 2265165 5 Extended
/dev/sdc3 7344 9447 16900380 83 Linux
/dev/sdc5 9448 9729 2265133+ 82 Linux swap / Solaris
Partition table entries are not in disk order
chucknb@chucknb-desktop:~$
menu:
(XP map looks like slave configuration, which it WAS, but now is not)
If I set BIOS = boot=hd0, I get XP boot.
If I set BIOS = boot=hd1, I get GRUB -> Ubuntu or SuSE or F10 or PCLOS.
Code:
## ## End Default Options ##
title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=c750b94d-415d-4015-8d90-54500d601b5d ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=c750b94d-415d-4015-8d90-54500d601b5d ro single
initrd /boot/initrd.img-2.6.24-23-generic
title Ubuntu 8.04.2, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=c750b94d-415d-4015-8d90-54500d601b5d ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=c750b94d-415d-4015-8d90-54500d601b5d ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 8.04.2, memtest86+
root (hd0,0)
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/hdb1
title XPPro
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title openSuSE chainloader
root (hd2,1)
chainloader +1
title openSUSE in (hd2,1)
root (hd2,1)
configfile /boot/grub/menu.lst
title openSUSE 11.1
root (hd2,1)
kernel /boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata-ST3802110A_5LR74M8V-part2 resume=/dev/disk/by-id/ata-ST3802110A_5LR74M8V-part1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.27.7-9-default
title openSUSE 11.1
root (hd2,2)
kernel /boot/vmlinuz-2.6.27.7-9-default root=UUID=8fab092a-3955-4479-807e-156ad5855365 ro quiet splash
initrd /boot/initrd-2.6.27.7-9-default
title PCLOS
kernel (hd2,4)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdh5 acpi=on resume=/dev/hdd5 splash=silent vga=788
initrd (hd2,4)/boot/initrd.img
title Fedora10
root (hd2,3)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7 rhgb quiet
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
Last edited by buccaneere; 03-22-2009 at 07:45 PM.
Yeah - they've all been installed (except PCLOS) for a while.
I do remember switchin' the XP slave and Ubuntu master about a month ago. I think that's why XP has the 'loop' mapping. I don't remember booting XP since then either...
Everything seems to be configured correctly. Just to confirm:
If you set your bios to boot from the Ubuntu drive, you get the Grub Menu. From the Grub menu you can boot into Ubuntu, PCLinux and Suse and Fedora, but selecting XPPro fails, right?
What exactly happens when you choose XPPro at the Grub menu? Any error messages?
Everything seems to be configured correctly. Just to confirm:
If you set your bios to boot from the Ubuntu drive, you get the Grub Menu. From the Grub menu you can boot into Ubuntu, PCLinux and Suse and Fedora, but selecting XPPro fails, right?
Correct.
Quote:
What exactly happens then you choose XPPro at the Grub menu? Any error messages?
It says 'Starting up', but goes black quickly.
Last edited by buccaneere; 03-22-2009 at 08:36 PM.
As it is now, it is still mapped for slave configuration, from when it was slave on the channel. I changed this a month ago.
I've tried dropping GRUB to edit the entry, but it still did not boot. THIS time, it just holds at 'Starting up'.
Like so:
root (hd1,0)
savedefault
makeactive
chainloader +1
Last edited by buccaneere; 03-22-2009 at 08:45 PM.
cd ~/Desktop
tar xvf testdisk-6.10.linux26.tar.bz2
sudo testdisk-6.10/linux/testdisk_static /dev/sdb
Choose "proceed" on the first screen, then
"intel"
"advanced",
Select the Windows partition (although it should be selected already) and choose
"boot"
"RebuildBS"
"Write"
then press "q" a few times to quit testdisk, reboot and see whether you can boot into Windows.
(If it does not give you an option to "write", it means that the original and rebuild boot sector are identical, and testdisk RebuildBS won't be able to solve your problem)
Since you seem be able to boot into XP by switching the Boot Order in the bios, the Rebuild Boot sector probably is identical, but still I think this is worth a try.
If none of this worked:
Press "c" at the grub menu at boot-up and type
This should list the partitions of the first four hard drive. Judging from the output does Grub detect your XP drive? If yes which one is the XP drive.
Is that the total output of "geometry (hd0)"?
No partition?
Did the other geometry commands show the correct partitions? Did geometry (hd3) give anything? (I have seen a case where the bios skipped one of the numbers, so there is very small chance that the XP drive is on (hd3))
Anyway, it looks like there is a problem with your bios. Look at the different setting in the bios, and see whether changing them makes a difference. (But record the original settings). You can use the "geometry" command to check whether your changes had any effect.
If none of this works, I suggested to set your bios to boot from the XP drive, and chainload the ubuntu grub menu from the XP boot menu. I can show you how to do that, but lets first see whether playing with the bios has any effect.
I did not modify menu.lst. I only booted to GRUB, and edited each line of the entry to several different configs, including the one above; no title entered of course, just the map lines, the rootnoverify lines, makeactive, chainloader, boot...
None worked. Some did NOT hang, and CTL+ALT+DEL rebooted. Other attempts DID hang, and power button reboot was necessary.
Quote:
Is that the total output of "geometry (hd0)"?
No partition?
Edit: I hadn't seen your last post then I wrote this.
Quote:
See the picture attached? "File system unknown."
Actually that picture is exactly how it is supposed to be. You are booting from the ubuntu drive and the grub at boot up always sees the boot drive as (hd0). You were able to boot your other Linux', which use (hd2,?) in menu.lst. So that drive had to be (hd2). That makes the XP drive (hd1). Grub does not recognize an "ntfs" filesystem . So you get "File system unknown"
In other words, I have no idea what the problem could be.
one more time, maybe you had a typo the last time.
If you are bored, you can also see what happens if you leave out one or two of the map lines. But I don't think that will get you anywhere.
It's getting late for me. I'll check back in tomorrow evening , and if you haven't solved your problem by then, I'll write up instructions how to add your various Linux OSs to the XP boot loader.
Exactly the one you used to have in menu.lst. Which is the same as the one in my last post, since as far as I know the order of the commands don't matter.
That's the problem: Everything is exactly how it supposed to be and still you cannot boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.