LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2007, 05:13 PM   #1
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Rep: Reputation: 15
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)
kernel /boot/vmlinuz root=/dev/sdb2 ro vga=791
boot

which fine it boots Slackware until;

VFS:Cannot open root device @sdb@ or unkown block (0,0)
Please append a correct @root=@ boot option
Kernel Panic - not syncing: VFS:Unable to mount root fs on unknown-block (0,0)
ok i reboot and boot again to make sure i havent done anything stupid. same thing.

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.

Last edited by edM; 10-09-2007 at 05:24 PM.
 
Old 10-09-2007, 09:59 PM   #2
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
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.
 
Old 10-09-2007, 10:05 PM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Yep, probably no initrd line in the menu.lst instructions. Try rerunning the grub setup.
 
Old 10-09-2007, 11:18 PM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Why are you installing to sda ? Install to sdb where slack is present
 
Old 10-10-2007, 04:43 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
> 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.
 
Old 10-10-2007, 05:29 AM   #6
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
OK thanks for the advice.



Quote:
Originally Posted by arubin View Post
> 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.

From what I read, I thought you had to install it the MBR? which would be sda1, which is WinXP?
 
Old 10-11-2007, 07:15 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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?
 
Old 10-11-2007, 08:43 AM   #8
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
This worked for me

Quote:
root (hd 1,1)
kernel /boot/vmlinuz root=/dev/sdb2 ro noinitrd vga=791
boot
The 'noinitrd' option will make it boot properly. Slack 12 with the default kernel does not need initrd but you must tell grub.
 
Old 10-11-2007, 03:03 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Quote:
Slack 12 with the default kernel does not need initrd but you must tell grub.
I do not think that is the case.

I use a kernel which does not need initrd. This is my entry for grub

Quote:
title SlackwareLinux-12.0-smp-070708
root (hd1,0)
kernel /boot/vmlinuz-smp-070708 root=/dev/sdb1 ro
savedefault
boot

Last edited by arubin; 10-11-2007 at 03:03 PM. Reason: error in grammar
 
Old 10-11-2007, 11:06 PM   #10
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
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.
 
Old 10-13-2007, 02:33 AM   #11
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
Quote:
Slack 12 by default asks to use the generic kernel, which requires a initrd. The huge kernel doesn't
Ok thanks for the correction. I do not remember specifying a kernel during install and my /boot/vmlinuz points to the huge kernel so I just made the assumption.

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.
Interesting option. As a matter of personal preference I like to choose which system to boot from grub, rather than from the BIOS. Once grub is set up, all I need to do is press the down arrow and hit enter. This is quicker for because I use both OS's fairly often.
 
Old 10-13-2007, 02:52 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by duryodhan View Post
Slack 12 by default asks to use the generic kernel, which requires a initrd.
Hmmm ... I thought the default kernel for Slack 12.0 was huge-smp, wasn't it ? And it doesn't require any initrd.
 
Old 10-13-2007, 06:33 AM   #13
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
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!
 
Old 10-13-2007, 10:41 AM   #14
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
Hmmm ... I thought the default kernel for Slack 12.0 was huge-smp, wasn't it ? And it doesn't require any initrd.
The readme file in Slack clearly states, you shouldn't use HUGE SMPS for anything at all, ever. Only to find out what is the stuff you need etc. etc. Using huge smps anytime for actual use is just wrong.

I didn't install slack12, I upgraded so I don't know what exactly happens on an install, I used my own kernel throughout .
 
Old 10-13-2007, 11:37 AM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Booting GRUB naren_0101bits Fedora 4 06-02-2006 01:35 AM
booting problem with Grub! ajroberts Ubuntu 2 04-27-2006 07:17 AM
Problem With Booting XP using GRUB bowb4steve Linux - Newbie 2 10-28-2004 08:25 PM
booting problem using grub tacca *BSD 3 10-23-2004 03:58 PM
RH 9 Problem Booting with Grub scottym Linux - Distributions 1 08-03-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration