Unix Technical Forum

Accessing initrd.img - How?

This is a discussion on Accessing initrd.img - How? within the Debian Linux support forums, part of the Debian Linux category; --> Hello! I am trying to access initrd.img but no success so far! I am using mount -t cramfs initrd-xxx.img ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:38 AM
Paulo da Silva
 
Posts: n/a
Default Accessing initrd.img - How?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:38 AM
Michael Paoli
 
Posts: n/a
Default Re: Accessing initrd.img - How?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com