LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problems with Woody/grub (https://www.linuxquestions.org/questions/debian-26/problems-with-woody-grub-239316/)

RaMoN75 10-06-2004 02:53 AM

Problems with Woody/grub
 
Recently I installed Debian (Woody)with a bf-2.4.25.iso from an ftp server. Everything works fine. The I installed grub (0.9.5):
apt-get install grub grub-doc
grub -install --root-directory=/boot /dev/hda (on MBR)
update-grub (to make a menu.lst)
The menu.lst looks like:
##### menu.lst ######
default 0
timeout 10

title Debian GNU/Linux, kernel bf-2.4.25
root (hd0,0)
kernel /boot/vmlinuz-2.4.25 root=/dev/hda2 ro
savedefault
boot
##################

Ran grun-update again
The device.map looks OK too (hd0 for /dev/hda and fd0 for /dev/fd0

Then I removed LILO:
apt-get remove lilo
dpkg --purge lilo

But when I reboot, the shit happens. The menu shows, i select the right kernel and grub loads the kernel, but stops after a while.
These are the last 5 messeges i get:

EXT3fs mounted filesystem with orderd data mode
VFS: Mounted root (ext3 filesystem) readonly
Freeing unused kernel memory: 92K freed
Warning: Unable to open an initial console
Kernel panic: No init found. Try passing init= option to kernel

Is it that I haven't got an initrd image? Can someone please help me??

PS
My partitions scheme look like:
/boot hda1 100MB ext3 Primary
/ hda2 500MB ext3 Primary
/usr hda5 3000MB ext3 Logical
/var hda6 2000MB ext3 Logical
/tmp hda7 500MB ext3 Logical
/home hda8 12000MB ext3 Logical
swap hda9 400MB swap Logical

Moloko 10-06-2004 04:29 AM

Have you tried adding the initrd line manually?

title Debian GNU/Linux, kernel bf-2.4.25
root (hd0,0)
kernel /boot/vmlinuz-2.4.25 root=/dev/hda2 ro
initrd /boot/initrd.img-2.4.25
savedefault
boot

RaMoN75 10-06-2004 05:30 AM

Haven't tried it yet. Going to do it 2night. Hope it helps. Have read many articles on how to install grub, but it never mentioned anything about initrd images.
Thnz

gorilla 12-16-2004 06:26 AM

I did the changes on a laptop that I have been having problems booting a new kernel on and it worked great.

Thanks,


All times are GMT -5. The time now is 09:50 AM.