Re: how to see the contents of initrd (kernel 2.6)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..

> I tried the following command (google)
> $mv initrd.img initrd.img.gz
> $gzip -d initrd.img
> $mount -o loop initrd.img /mnt/temp1

Instead of renaming initrd.img, do something like this:
$ gunzip -f -d -S "" the-initrd.img > ./test
then mount it
$ mount -o loop ./test /mnt/<whatever your wish>

I tested it on my RH 9 box and it works.

To be sure, use "file" command to reveal the real format of your initrd:
$ file -k -z initrd.img

> But this gives error saying unrecognized file system. My root
> filesystem is ext3. Evne when i pass it (-t ext3), the error remains.

Big chance, you're doing something wrong when decompressing the initrd 
image, not the fault of mount.

regards,

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux