Linux Debian support - Accessing initrd.img - How?

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > March 2006 > Accessing initrd.img - How?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Accessing initrd.img - How?
Paulo da Silva

2006-03-21, 2:54 am

Hello!

I am trying to access initrd.img but no success so far!

I am using
mount -t cramfs initrd-xxx.img -o loop
but the filesystem is not recognized. I have the cramfs module loaded.

I also tried to gunzip the initrd.img first. The same problem.

What's wrong?

Thanks
Michael Paoli

2006-03-21, 2:54 am

Paulo da Silva wrote:
> I am trying to access initrd.img but no success so far!
> I am using
> mount -t cramfs initrd-xxx.img -o loop
> but the filesystem is not recognized. I have the cramfs module loaded.
> I also tried to gunzip the initrd.img first. The same problem.
> What's wrong?


$ md5sum *
b49a7955be5e286eff873a9bd157793a debian-31r0a-i386-binary-1.iso
$ sudo sh -c '(umask 022 && mkdir /tmp/debian-31r0a-i386-binary-1) &&
mount -t iso9660 -o ro,nodev,nosuid,noatime,loop
debian-31r0a-i386-binary-1.iso /tmp/debian-31r0a-i386-binary-1'
$ cd /tmp/debian-31r0a-i386-binary-1/install
$ <initrd.gz >/tmp/initrd gzip -d
$ file /tmp/initrd
/tmp/initrd: Linux rev 0.0 ext2 filesystem data
$ sudo sh -c '(umask 022 && mkdir /tmp/initrd.d) && mount -t ext2 -o
ro,nosuid,nodev,noatime,loop /tmp/initrd /tmp/initrd.d'
$ mount | tail -1
/tmp/initrd on /tmp/initrd.d type ext2
(ro,nosuid,nodev,noatime,loop=/dev/loop1)
$

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com