LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2007, 06:42 PM   #1
Tenicus
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
Grub problems with XP/Slackware


I had grub installed on my ubuntu partition, which I recently deleted as I hadn't used it in almost a year. That left me with XP and Slackware partitions.
Here is the setup
/dev/sda1 < swap
/dev/sda2 < XP
/dev/sda3 < Slack
/dev/sda4 < NTFS space

I tried doing a grub-install /dev/sda (from knoppix live CD, which is where I am now) which looked like it worked fine until I rebooted and got a black grub console.
After searching around I tried this:

source (hd0,3)
linux /boot/vmlinuz ro root=/dev/sda3
initrd /boot/initrd.gz
boot

It goes through the normal boot process until, I assume, the point where it mounts the file systems.
I get the following error:
no /sbin/init found on rootdev fs
Kernel Panic!

any ideas?

I also have no menu.lst or stage1 file in my /boot/grub.
 
Old 12-09-2007, 07:42 PM   #2
Tenicus
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Also, I just checked and /sbin/init does indeed exist on /dev/sda3
 
Old 12-09-2007, 07:54 PM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
try:
Code:
root (hd0,2)
kernel /boot/vmlinuz ro root=/dev/sda3
initrd /boot/initrd.gz
boot
Grub starts counting at 0, so (hd0,3) is your NTFS partition.

HTH

Norm
 
Old 12-09-2007, 08:37 PM   #4
Tenicus
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Indeed, that is what I thought, yet when I type (hd0<tab>), it tells me that
hd0,1 unknown file system
hd0,2 unknown file system
hd0,3 ext2fs
hd0,4 unknown file system

I tried hd0,2 anyways, and got the same error.
 
Old 12-09-2007, 09:19 PM   #5
Tenicus
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I am aware that this is not so much a grub issue but rather something else.
I got lilo to work, but I get another kernal panic error:
No filesystem could mount root, tried:
kernel panic- not syncing. VFS:Unable to mount root fs on unknown block(8,3)

I have no intrd file.
I think I remember that this might have been the problem a long time ago.
How can I create an initrd? (If I am correction in my assumption)
 
Old 12-09-2007, 11:31 PM   #6
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
To create an initrd file you need to use the Slack disk to boot into your system (instructions on the screen when you boot the disk). Or, boot the Slack disk and chroot to the partion containing the Slack system.

Use the mkinitrd command to create it. There should be an initrd readme file in your /boot directory that explains how to do it.
 
Old 12-10-2007, 02:54 PM   #7
Tenicus
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I made an initrd, but it made no difference
In case this helps, this is what I use to boot from the CD

hugesmp.s root=/dev/sda3 rdinit= ro

And THAT works.
 
Old 12-10-2007, 04:34 PM   #8
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Quote:
source (hd0,3)
This line is wrong. Don't know where the word source came from but it's wrong.

it should read

root (hd0,2)
 
Old 12-10-2007, 08:20 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 15.0
Posts: 8,235
Blog Entries: 61

Rep: Reputation: Disabled
If you're using the huge-smp kernel, the one used during installation, you don't need an initrd. You need to create one if you change to the generic-smp kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GRUB problems with Slackware Tenicus Linux - General 21 05-15-2008 11:00 AM
grub(SuSE)/Lilo(Slackware) chain loader problems The Chain Linux - Newbie 32 10-12-2006 06:24 PM
slackware install problems (lilo vs grub) ultimatenoob Linux - Newbie 13 08-07-2006 11:51 AM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 PM.

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