[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernal gone? not booting



Hello Andrew, 

On Thu, Oct 05, 2006 at 12:01:28PM +0000, Andrew Critchlow wrote:
>    When I load up the machine I get grub>

Grub as a nice commandline interface. Try: 


-----------------------------------------------------------------
grub> help
-----------------------------------------------------------------

We're going to have to do the following. Tell grub:

1) what disk contains your Debian install
2) where on that disk your kernel is
3) where your initrd file is (if any)
4) boot

To find out if you're truly without a kernel, you're going to have to
use grub to look on the harddrive. 

Give the commando "root (hd" and try to finish it with tabs. You should
get this kind of output:

-----------------------------------------------------------------
grub> root (hd0,
 Possible partitions are:
 Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
 Partition num: 1,  Filesystem type unknown, partition type 0x82
 Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
-----------------------------------------------------------------

In my case, the root filesystem is on the first partition of the first
hardrive: (hd0,0)

-----------------------------------------------------------------
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
-----------------------------------------------------------------

Helpfull Grub/Linux Partition Naming Table:
--------------------------------
/dev/sda	(hd0)
/dev/hda	(hd0)
/dev/hda1	(hd0,0)
/dev/hda2 (hd0,1)
/dev/hda3 (hd0,2)
/dev/hdb	(hd1)
/dev/hdb1	(hd1,0)
/dev/hdb2	(hd1,1)


Then, you have to define your kernel to grub. Give the following
command, and press tab a few times. You should see a few kernels here.

-----------------------------------------------------------------
grub> kernel /boot/
 Possible files are: System.map-2.6.17.1-desktops
config-2.6.17.1-desktops vmlinuz grub vmlinuz-test
vmlinuz-2.6.17.1-desktops System.map-2.6.16-desktops conf
ig-2.6.16-desktops vmlinuz-2.6.16-desktops System.map-2.6.17-desktops
config-2.  6.17-desktops vmlinuz-2.6.17-desktops
config-2.6.15.4-desktops vmlinuz-2.6.15-d esktop-exp
System.map-2.6.15.4-desktops vmlinuz-2.6.15.4-desktops
-----------------------------------------------------------------

If you do not see any vmlinuz-* files, you're in trouble.

If you *do* see any, pick one. 

Next, you may need an initrd image: 


-----------------------------------------------------------------
grub> initrd  /boot/init
-----------------------------------------------------------------

Again: finish the command by hitting the TAB button a few times. You
should see a few initrd files. Pick one.

Now type: 

-----------------------------------------------------------------
grub> boot
-----------------------------------------------------------------


Cross your fingers...

Once you've logged in, change to your root account and run: update-grub

There should be a /boot/grub/menu.lst file. This is de configurationfile
of GRUB. update-grub fills that file by looking for kernels in /boot/. 

Hope this helps. If not, there's always Knoppix and chroot. ;-)
First try this. If this doesn't help, we'll look into another solution.
 
>    It does not boot. I remember when installing lynx it said it was going to
>    remove a kernal, how do I find out where the kernal is and how can I boot
>    from it to get my system up and running?

Odd that lynx would remove your kernel.


Kind regards, 

Maarten


-- 
Maarten Verwijs 



Reply to: