Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problems with Woody/grub

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
RaMoN75
Posts: 2
Joined: 2004-10-06 08:06

Problems with Woody/grub

#1 Post by RaMoN75 »

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 crap 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

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

Grub's responsibility is over once the kernel started to load, so the problem lies somewhere else.
The init process is not able to open a console to work on. This probably means that your /etc/inittab file is garbled. Could you post it here?

RaMoN75
Posts: 2
Joined: 2004-10-06 08:06

#3 Post by RaMoN75 »

Got it working tonight. Re-installed Debian. Re-installed grub, but this time i did it manually (no grub-install). Installed grub on a floppy. Ran a mkinitrd to create an image (don't know if that did the job), booted from the floppy and then I ran into the grub shell. After that i got it working i created a /boot/menu.lst and gave an init 6: YESSSS . It's working now.
But thnx for your effort!

Post Reply