Initrd /dev scripts?

Christopher K. Johnson ckjohnson at gwi.net
Thu Jun 1 18:10:02 UTC 2006


Clint Olson wrote:
> Bob Chiodini wrote:
>> On Thu, 2006-06-01 at 10:33 -0700, Clint Olson wrote:
>>  
>>> Hi!
>>>   Hey, I'm trying to get FC5 to work with coLinux 
>>> (http://www.colinux.org).  I've got it so that it boots just fine -- 
>>> however, apparently FC5 creates its /dev device nodes at boot time, 
>>> via a script run from initrd.  Since coLinux doesn't execute this 
>>> initrd, most of the devices normally available in /dev simply aren't 
>>> there when I boot via coLinux.  I'm trying to figure out how to 
>>> extract the initrd so I can find the script and migrate it over to 
>>> something that gets executed when coLinux boots.  Any pointers?
>>>
>>> Clint Olson
>>>
>>>
>>>     
>>
>> Clint,
>>
>> The initrd image is a compressed cpio archive.  You can uncompress it
>> with gunzip and cpio its contents.
>>
>> Bob..
> Ahh, thanks.  Everything I was googling was saying that it was a 
> gzipped ext2 filesystem, but trying to mount it as such wasn't 
> working.  Cpio did the trick.
>
> Clint Olson
>
Your friend in such situations is often the file command:

[chris at chris ~] file /boot/initrd-2.6.16-1.2122_FC5.img
/boot/initrd-2.6.16-1.2122_FC5.img: gzip compressed data, from Unix, 
last modified: Wed May 31 22:38:04 2006, max compression
[chris at chris ~]$ gunzip </boot/initrd-2.6.16-1.2122_FC5.img 
 >initrd-2.6.16-1.2122_FC5.uncompressed.img
[chris at chris ~]$ file initrd-2.6.16-1.2122_FC5.uncompressed.img
initrd-2.6.16-1.2122_FC5.uncompressed.img: ASCII cpio archive (SVR4 with 
no CRC)

Chris

-- 
   "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
   Chris Johnson, RHCE #804005699817957




More information about the fedora-list mailing list