[CentOS] mount initrd

Thu Jan 25 10:07:22 UTC 2007
Ralph Angenendt <ra+centos at br-online.de>

Denis Machard wrote:
>    I try to mount the file /boot/initrd-2.6.9-42.ELsmp  but I have a
>    error

[...]

>    [root at localhost ~]# mount initrd-2.6.9-42.ELsmp  /tmp -o loop
>    [root at localhost ~]# mount: you must specify the filesystem type
>    
>    why ?

Because your kernel is missing cpiofs support.

[root at shutdown tmp]# file initrd
initrd: ASCII cpio archive (SVR4 with no CRC)
[root at shutdown tmp]# cat initrd | cpio -i --make-directories
4844 blocks
[root at shutdown tmp]#

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...80300 München | ....to right-justify any idea, even one
Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other
Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070125/fc37d88a/attachment-0005.sig>