Originally Posted by aroche
I have been trying to get linux to boot by PXE now i have found tons of documents which i am going to get cracking on, but i am getting confused on some things.
1. Initrd in Mandrake 2006 can you mount it ?
2. Initramfs i think i have this one sorted in my head
Anyway i am very confused over the whole initrd setup in linux and i am wondering can someone please explain this to me before i go out of my mind
According to the link you provided:
The boot process in Debian is a two-stage process, involving the initial RAM filesystem (initramfs for short, sometimes it is also referred to as initrd, which stands for initial RAM disk)
So initramfs and initrd are the same thing. I have always seen it called initrd. This is loaded with the kernel at boot time as the initially mounted filesystem, which allows (among other things) the kernel to have immediate access to driver modules that might be required to access the hard drives. The usual situation is that this gets traded out for a hard disk filesystem later in the booting process, but not always; live CDs like KNOPPIX and embedded systems sometimes leave the original initrd serving as the root of their filesystem.
Traditionally, initrds are compressed (gzip) file systems, although apparently recently Fedora Core has started using cpio. For the traditional ones, you can gunzip them and look at their contents as follows (doing this might be instructive):
cat initrd.gz | gunzip > initrd.img
mount -o loop initrd.img /mnt/temp
The second command needs to be done as root
(Adjust the file names/paths as needed). You can now use your standard tools (such as ls
, etc.) to look at the filesystem at /mnt/temp. You can also use dumpe2fs
(assuming the file system on initrd.img is ext2) to look at the properties of the filesystem as if it were a real partition.
Hope this gets you started.