View previous topic :: View next topic |
Author |
Message |
linedpaper Tux's lil' helper
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Thu Apr 24, 2003 1:35 am Post subject: First time boot problem |
|
|
I am booting using lilo. Here is what I got when I tried to boot for the first time.
Warning: unable to open initial console
Kernel panic: No init found. Try passing init: option to kernel.
Not sure how to fix this, any help would be great.
Tim |
|
Back to top |
|
|
Jeld Tux's lil' helper
Joined: 28 Jun 2002 Posts: 84 Location: NYC, US
|
Posted: Thu Apr 24, 2003 5:57 am Post subject: |
|
|
Generally this means that your kernel is confused about the location of the root partition. If you have followed the installation instructions, you have your kernel in a separate /boot partition. Make sure that you have the following in your grub.conf file.
Code: |
title=<Whatever you chose your title to be>
root (your /boot partition)
kernel (your /boot partition)/bzImage root=/dev/<your / partition device name>
|
to make it more clear here is a part of my grub.conf with some comments
Code: |
title=Gentoo Linux
root (hd0,0) # my /boot is hda1
kernel (hd0,0)/bzImage root=/dev/hda5 hda=autotune hdd=ide-scsi # My / is hda5 ( first logical partition ) and my kernel is /boot/bzImage
|
_________________ package JAPH;sub x{$/='$';@1=map{$_=ord;$_--;chr}
split//,<DATA>;@2=map{$_=ord;$_++;chr}split//
,<DATA>;$_=sub{$.++%2?shift@2:shift@1};bless$_;}
1;$x=JAPH->x;for(1..25){print&$x,;}__DATA__
Kt!ouf!fmIdf"$ts@ngqOq`jq |
|
Back to top |
|
|
linedpaper Tux's lil' helper
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Thu Apr 24, 2003 6:38 am Post subject: |
|
|
Ok and I have on other problem. I pretty much started the whole thing over because I was bored. I have a problem with grub. I have Windows XP and there are two NTFS partitions for it. So hda1 and hda2 are WinXP ntfs. So when I run the grub setup at the grub prompt I do the following
root (hd0,0)
because my WinXP partition is the bootable one
setup(hd0,2)
to store grub on my /boot partition of linux. Problem is I get this error message when I do the setup(hd0,2)
Error 17: Unable to mount filesystem.
It's happened twice so far (starting from scratch each time). I tried booting and just ignored it once and had to start over because it screwed up my MBR and I couldn't even boot into windows. It just put a whole bunch of 9's across my screen. Help please!
Tim |
|
Back to top |
|
|
Jeld Tux's lil' helper
Joined: 28 Jun 2002 Posts: 84 Location: NYC, US
|
Posted: Thu Apr 24, 2003 9:24 am Post subject: |
|
|
No, you got it all wrong.
When you say root in grub you should set it to the linux partition containing the kernel, so in your case that would be
next comes the setup part. I usually install grub straight into the MBR, with
You can also install it on the partition where you have linux
but then you will have to mark it active.
In general, since you want to have access to both your systems, you have to decide if you want to use grub to boot XP or XP bootloader to boot Linux. I know how to boot linux using NT/2000 bootloader, and there is a HOWTO, but to boot XP from grub, you would do the following. Install grub to the MBR by
Add an entry to the grub.conf file like follows
Code: |
title Windows XP
rootnoverify (hd0,0)
chainloader +1
|
As a matter of fact after googling this matter I came up with this link that might help you. _________________ package JAPH;sub x{$/='$';@1=map{$_=ord;$_--;chr}
split//,<DATA>;@2=map{$_=ord;$_++;chr}split//
,<DATA>;$_=sub{$.++%2?shift@2:shift@1};bless$_;}
1;$x=JAPH->x;for(1..25){print&$x,;}__DATA__
Kt!ouf!fmIdf"$ts@ngqOq`jq |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|