How can I make Grub boot 2.16 from hda3? (Solved)

Booting, installing, newbie
Post Reply
Message
Author
robertito
Posts: 23
Joined: Sat 05 May 2007, 18:52

How can I make Grub boot 2.16 from hda3? (Solved)

#1 Post by robertito »

I have 1GB RAM and HD partitioned hda1,2,3 and swap. Partitions hda1 and 2 have 2.15CE working fine, loaded from an iso burned on a CD,
I wanted to try 2.16 on hda3 and followed the same procedure as for 2.15, and although it works OK from the disc, and apparently loads on hda3, attempts to run it always fail with the message "Error 15: File not found"
I've tried various GRUB settings, but without success.
Any ideas what to try next, please ?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#2 Post by muggins »

robertito,

for grub problems it's best if you post a copy of your menu.lst file, as often others might see something you're missing like a typo etc. where are initrd.gz & vmlinuz on hda3, in /boot, or under / directory? and is menu.lst pointing to their location?

Bruce B

#3 Post by Bruce B »

also at the grub menu type c

then find /boot/vmlinuz so we can all know where it is.

esc to get back to grub

robertito
Posts: 23
Joined: Sat 05 May 2007, 18:52

#4 Post by robertito »

Hello muggins and Bruce....is this what you want to see ?

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Tue May 22 07:50:58 2007
#
# The backup copy of the MBR for drive '/dev/hda' is
# here '/boot/grub/mbr.hda.3796'. You can restore it like this.
# dd if=/boot/grub/mbr.hda.3796 of=/dev/hda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz root=/dev/hda3 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,0)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/hda1)
root (hd0,0)
setup (hd0,0)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)
Thanks...robertito

robertito
Posts: 23
Joined: Sat 05 May 2007, 18:52

#5 Post by robertito »

Not sure what vmlinuz does but it wasn't in the boot menu with grub, so I moved it so it looks like hda1 and 2 do.

Now the error message reads:
Kernel panic - not syncing: No init found. Try passing init = option to kernel

So what do i do next, folks ?

Bruce B

#6 Post by Bruce B »

Your grub menus entries are the types used for normal installations. See this example:

title Linux (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal


A typical co-exist install would look like this (lots of differences)


title Linux (on /dev/hda1)
root (hd0,0)
kernel /vmlinuz root=/dev/ram0 ro vga=normal
initrd /initrd.gz


You will have to figure out what kind of installs you made.

Then adjust the grub menu.lst and vmlinuz and initrd.gz locations to match your menu.lst.

Also remember that GRUB / Linux is stricter than an English teacher with a bun in her hair. You have to have everything exact, syntax, file locations, spelling, everything. You also have to be a careful worker, or she'll slap your knuckles with a ruler.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

it seems you've done a co-exist install & grub is looking for initrd.gz, so either modify menu.lst for co-exist, as mentioned by bruce, (making sure that the command for initrd.gz points to where initrd.gz is), or if you want a normal install, like your other partitions, just re-install pup2.16...it takes 10 minutes max.

robertito
Posts: 23
Joined: Sat 05 May 2007, 18:52

#8 Post by robertito »

muggins.....my 2.16 works fine from the CD, but when I try to install it using the Universal Installer, it does not recognise the CD files. Is there some other way of installing from the CD, without using the Puppy Universal Installer ?
Thanks for your interest....

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#9 Post by muggins »

i think you'll find that what's happening is when you run the universal installer, it looks for vmlinuz on the mounted cdrom, but if you run pmount or mut after booting the cdrom, you'll see that the cdrom isn't mounted.

so the solution is mount the cdrom before running the installer and it should work OK.

if not, just mount the cdrom & copy vmlinuz, initrd.gz, pup_216.sfs & zdrv_216.sfs to /mnt/hda3, then alter menu.lst, as mentioned by bruce above:
title Linux (on /dev/hda3)
root (hd0,2)
kernel /vmlinuz root=/dev/ram0 ro vga=normal
initrd /initrd.gz
N.B. with co-exist, (aka frugal), install it's /dev/ram0 not /dev/hda3. also, if you have initrd.gz & vmlinuz in /boot, then you have to alter menu.lst accordingly.

robertito
Posts: 23
Joined: Sat 05 May 2007, 18:52

#10 Post by robertito »

I got into a complete muddle, so I re-formatted the disc with three ext 3 partitions plus swap, installed 2.16 on hda1 and a MBR Grub, and now it boots from hdd and does everything I want to do (for the moment !) So thanks for your interest folks, and I'll keep my fingers crossed.

Post Reply