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

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

 



amrut h wrote:
> I tried the following command (google)
> $mv initrd.img initrd.img.gz
> $gzip -d initrd.img
> $mount -o loop initrd.img /mnt/temp1
>
> But this gives error saying unrecognized file system. My root
> filesystem is ext3. Evne when i pass it (-t ext3), the error remains
What distribution generated that initrd? Some distros (recent RH/Fedora)
don't use an ext2 image anymore but a cpio archive. Try this after
unzipping:

cpio -it <initrd.img

You could also try to identify the image type using 'file':

file initrd.img

---
fm

--
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