GRUB booting problem
Yes I know there are loads of Q&As on GRUB...........
ok so i want to use GRUB for a change (on a fresh install). Install Grub pkg. grub-install (hd0,0) //which is sda WinXP. sdb is slack. ok thats all fine, it find the 2 hds and a floppy. reboot Slack. Grub shell pops up. check if i can boot WinXP, yup works fine. reboot win, and check if slack boots. Code:
root (hd 1,1) so my next guess is check the config, probably sdb is pointing to (0,0) than (1,1)...hm but their is no /boot/grub/gub.conf, or under /etc/ or anywhere! bah. their is only a generic menu.lst.sample, not a properly created menu.lst thanks for any help, ideas. |
If the kernel is panicking it's not grub's fault, unless you've given the kernel the wrong arguments. Have you made an initrd? It looks like the kernel gets lost as it doesn't have the disk driver or filesystem module and can't read the disk.
|
Yep, probably no initrd line in the menu.lst instructions. Try rerunning the grub setup.
|
Why are you installing to sda ? Install to sdb where slack is present
|
> Why are you installing to sda ? Install to sdb where slack is present
I think installing to sda is the right thing to do. I suspect that editing /boot/grub/menu.1st is the thing to do. Presumambly it need an initrd line. |
OK thanks for the advice.
Quote:
From what I read, I thought you had to install it the MBR? which would be sda1, which is WinXP? |
Did you give up?
For the record, the MBR is the first 512 bytes of a whole hard drive (sda in your case), not part of any partition. Grub calls the whole hard drive (hd0). So if you want to install grub to the MBR then it is right to setup (hd0). If WinXP is installed on the first partition, then grub will see that as (hd0,0). If slackware is installed on the second partition of the second drive then it is (hd1,1). But, something tells me that you have only one hard drive -is that correct? Do have one or two hard drives -physical disks I mean? sdb means a second whole hard drive. grub-install (hd0,0) installs grub to the first *partition* of the first drive. This is what's called the 'superblock' of the partition -the first 512 bytes of the *partition* -not the same as the MBR. What commands did you use to start WinXP? Or did you run them from a menu.lst file which you have configured? Please post the exact commands you used or the contents of your menu.lst If you have a menu.lst file, did you create it manually? Have you tried using the grubconfig utility that comes with the slackware grub package? |
This worked for me
Quote:
|
Quote:
I use a kernel which does not need initrd. This is my entry for grub Quote:
|
if you have sda and sdb, then you have 2 HDDs. Why mess with the WinXP loader?
Install grub to sdb. In BIOS you can easily select to boot to whichever HDD you want. Each HDD has a MBR. Slack 12 by default asks to use the generic kernel, which requires a initrd. The huge kernel doesn't . I would always recommend to run your own kernel, without an initrd. |
Quote:
Quote:
|
Quote:
|
Fixed.
Last night I reinstall lilo, and the kernel was still panicking. hmmm not the bootloader then. I was being an idiot. wasnt loading the sata driver, must of turned it off when i was reconfiguring my kernel last week. But thanks for all the replys. have to go down all the wrong routes first! |
Quote:
I didn't install slack12, I upgraded so I don't know what exactly happens on an install, I used my own kernel throughout :). |
Well, I'm pretty sure the default is huge-smp. I mean, it's not a bad option for an install kernel, because it has many things built-in. After that, however, it is recommended that if you have a bit of patience, that you compile your own kernel. I recommend using the generic '.config' file, and going from there. It saves time for me, doing it this way.
|
All times are GMT -5. The time now is 07:48 PM. |