Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
why does one need an initrd if using LVM?

why does one need an initrd if using LVM?

2003-05-03       - By Robert P. J. Day

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  


(perhaps related to an earlier issue as to why one needs
an initrd when using ext3 ...)

earlier today, when demonstrating to a class how to rebuild
a kernel, i suggested that one could avoid having to deal with
creating an initrd.img if one built all necessary drivers into
the kernel.

since we were using ext3 filesystems and logical volumes,
i was very careful to tell everyone to add these features to
their kernel, and not leave them as modules. since they all
did that, i told them to skip building an initrd.img and
just reboot.

bad idea -- the boot hung at trying to mount the root
filesystem. i couldn 't figure out why since the kernel had
clearly loaded and started to run, so what was the problem?

one student just added the "initrd " line to her grub.conf
file for that kernel image, and it worked fine. puzzling.
so i ripped open that initrd.img and found just ext3.o,
jbd.o and lvm-mod.o. but why were these needed in the
initrd?

as a test, i ran "mkinitrd " against the new kernel,
got my new initrd.img, and opened it up to find ...
no module at all. not surprising since everything was
in the kernel, and "mkinitrd " was smart enough to figure
that out. but using that module-less initrd.img got the
boot to work.

what gives? i checked the /etc/fstab, and it turns
out that the /boot filesystem (a real primary partition,
not a logical volume) was listed with a LABEL field,
but even changing that back to a /dev entry didn 't
fix things.

so why is initrd.img necessary for LVs even when it has
no modules?

rday