initrd.img and booting

From: john gennard (joney_at_clara.co.uk)
Date: 10/21/04

  • Next message: nx13372a: "aptitude, dpkg, apt"
    Date: Thu, 21 Oct 2004 10:19:06 +0100
    To: debian-user@lists.debian.org
    
    

    I have a Sid installation with the 2.6.7-1 kernel, and have
    just compiled 2.6.8 (after weeks of trying, I cannot
    configure my USB network adaptor and hoped this might give
    me some clue to the problem).

    After creating the kernel-image.deb, I got the following
    message and selected b. (not wishing to find I couldn't
    boot at all):-
    ----------------------
    Unpacking kernel-image-2.6.8.1910 (from
    kernel-image-2.6.8.1910_10.00.Custom_i386.deb) ...
    Setting up kernel-image-2.6.8.1910 (10.00.Custom) ...
    /initrd.img does not exist. Installing from scratch, eh?
    Or maybe you don't want a symbolic link here. Hmm? Lets See.

    I note that you have an old initrd symbolic link in place. The name of
    the symbolic link is being changed to initrd.img I have two options
    here. I can: (A) delete the old symbolic link (default). You shall
    need to update the boot loader (b) Igore it and do nothing

    Please select one of a, or b:

    Please note that initrd points to the wrong image now
    Searching for GRUB installation directory ... found: /boot/grub .
    Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
    Searching for splash image... none found, skipping...
    Found kernel: /boot/vmlinuz-2.6.8.1910
    Found kernel: /boot/vmlinuz-2.6.7-1-386
    Updating /boot/grub/menu.lst ... done
    --------------------

    /boot/grub/menu.lst includes the following (ignoring the recovery
    mode entries):-
    ---------------------
    title Debian GNU/Linux, kernel 2.6.8.1910
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.8.1910 root=/dev/hda9 ro
    initrd /boot/initrd.img-2.6.8.1910
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.7-1-386
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.7-1-386 root=/dev/hda9 ro
    initrd /boot/initrd.img-2.6.7-1-386
    savedefault
    boot
    --------------------

    2.6.7 still boots, but 2.6.8 does not - I expected this,
    but I'm confused. For example, why are the entries for vmlinuz
    required? If they were used wouldn't the booting of 2.6.7 fail?

    /initrd is a link to boot/intrd.img-2.6.7-1
    /initrd.img is a link to boot/initrd.img-2.6.8
    /vmlinuz is a link to boot/vmlinuz-2.6.8
    /vmlinuz.old is a link to boot/vmlinuz-2.6.7-1

    What I would like to know (I don't want to experiment myself),
    is how do I arrange things so that grub will boot whichever
    kernel I select? Also, is there a URL or reference listing
    what should be compiled directly into a kernel to avoid the
    need to create an intrd.img?

    Can anyone give me an explanation please?

    John

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: nx13372a: "aptitude, dpkg, apt"

    Relevant Pages

    • Fatal trap 12 during boot of 5.3-BETA7 installation CD
      ... I've got a Compaq Presario S3500CL desktop machine and every time I boot the ... 5.3-BETA7 miniinst installation CD, ... I've never reported a kernel Fatal trap before, ... pci0: ...
      (freebsd-current)
    • Help: Multi OS wont boot some OS - Grub Boot loader
      ... for default installation). ... I can boot only into SUSE and Kubuntu. ... a blank screen while trying to boot Mandriva issues a Kernel panic with the ... # Set the default entry to the entry number NUM. ...
      (comp.os.linux.setup)
    • Re: Lilo: fatal: raid_setup: stat("/dev/hda")
      ... After latest upgrade installation of lilo fails. ... # Kernel image management overrides ... # Specifies the boot device. ...
      (Debian-User)
    • Kernel 2.4 and ASRock
      ... I've hit a problem with my Linux installation - in that I upgraded to the ... kernel from backports.org and my system hangs during boot. ... during boot with an infinate amount of "Lost Interrupt" errors on my IDE ... K7S8X MB) - and that it is fixed with the 2.6 BIOS upgrade. ...
      (Debian-User)
    • RE: Failing boot - Kernel panic
      ... Please append a correct "root=" boot option ... Kernel panic: VFS: Unable to mount root fs on 03:41 ... I'm using lilo as my boot manager for a multi-os ... without a problem-- and my Debian installation from ...
      (Debian-User)