Re: Upon boot, many strange and useless modules are loaded

From: Mark Ferlatte (ferlatte_at_cryptio.net)
Date: 07/30/03

  • Next message: Andy Saxena: "Re: moving mail to imap"
    Date: Wed, 30 Jul 2003 10:46:23 -0700
    To: DebianUser list <debian-user@lists.debian.org>
    
    
    

    mody@quick.cz said on Wed, Jul 30, 2003 at 12:15:19PM +0200:
    > On Tue, Jul 29, 2003 at 08:09:34PM -0400, Greg Folkert wrote:
    > > In /etc/modutil/aliases put in:
    >
    > <...>
    >
    > > If you don't need any of them... uncomment all of them.
    > >
    > > Then run "update-modules"
    >
    > Hmm, didn't help. :-( uncommented all but piix, run update-modules,
    > rebooted, but there are still many unused modules still loaded.

    If you're using the default Debian kernel, it loads all of the modules from the
    initrd, before it even mounts root.

    If you want to see what's going on, run:

    mount -oloop /initrd.img /mnt

    and look in /mnt. It's a cramfs, which is read-only. The loadmodules script
    shows you all of the modules that are loaded on boot.

    If you want to change this stuff, you need to do this:

    mkdir /tmp/initrd
    cp -a /mnt/* /tmp/initrd
    edit scripts in /tmp/initrd as needed.
    mkcramfs /tmp/initrd /boot/initrd.img-2.4.21-3-686-mine
    Change the /initrd.img symlink to point to /boot/initrd.img-2.4.21-3-686-mine
    Run lilo.
    Reboot.

    I do this to force the loading of hardware RAID modules on boot, but you can
    remove the IDE modules this way also.

    M

    
    

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


  • Next message: Andy Saxena: "Re: moving mail to imap"

    Relevant Pages

    • Re: Debian switches driver letters preventing boot
      ... that does a "modprobe -q hpt366" before it loads the generic ide module. ... The hpt366 module was already in the initrd image. ... My menu.lst entry says to boot from /dev/hda1 which oddly enough has ...
      (Debian-User)
    • Re: Debian switches driver letters preventing boot
      ... that does a "modprobe -q hpt366" before it loads the generic ide module. ... The hpt366 module was already in the initrd image. ... My menu.lst entry says to boot from /dev/hda1 which oddly enough has ... it as /dev/sda before udevplug discovers the rest of the PCI storage ...
      (Debian-User)
    • Re: Debian switches driver letters preventing boot
      ... I created a modified initrd ... that does a "modprobe -q hpt366" before it loads the generic ide module. ... The hpt366 module was already in the initrd image. ... My menu.lst entry says to boot from /dev/hda1 which oddly enough has ...
      (Debian-User)
    • Re: booting from ISO image on HD?
      ... I don't think you can predict every concievably thing a distro initrd can do. ... the only purpose of the initrd is to 1) find out what kernel modules are ... there is a hard disk where that iso image resides. ... The normal boot mechanism starts with the bios loading a boot loader ...
      (comp.os.linux.misc)
    • Re: [i386 BOOT CODE] kernel bootable again
      ... > of sectors per track in its boot sector. ... or a menu based bootloader on the created FAT filesystem when told to ... So if you just want to put a kernel and initrd on a floppy, ... If you want to put them on your USB thumb drive, ...
      (Linux-Kernel)