Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[initrd] ne veux pas se monter ... (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Fri Aug 28, 2009 1:40 pm    Post subject: [initrd] ne veux pas se monter ... (résolu) Reply with quote

Bonjour,



A titre informatif, j'aimerais monter le fichier "initrd.img" ... Mais ... c'est sur une distro Red Hat Enterprise Linux 5.... (oui, je sais ...)...



Donc, ca se trouve ici : http://pix-mania.dyndns.org/mediawiki/index.php/Initrd



et en gros, je suis coincé ici :

Code:
[root@wk01lhe boot]# gunzip < initrd-2.6.18-128.1.10.el5.img > initrd.img

[root@wk01lhe boot]# ls -lh initrd-2.6.18-128.1.10.el5.img initrd.img
-rw------- 1 root root 3.1M Jun  8 14:48 initrd-2.6.18-128.1.10.el5.img
-rw-r--r-- 1 root root 7.0M Aug 28 15:07 initrd.img

[root@wk01lhe boot]# mount -o loop initrd.img /mnt
mount: you must specify the filesystem type

[root@wk01lhe boot]# mount -o loop -t cramfs initrd.img /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[root@wk01lhe boot]# mount -o loop -t romfs initrd.img /mnt
mount: unknown filesystem type 'romfs'



Je ne sais pas du tout quel est le type de FS qu'il faut utilsier ..


Une idée ??
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org


Last edited by loopx on Mon Aug 31, 2009 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
ppg
Apprentice
Apprentice


Joined: 05 Oct 2008
Posts: 178
Location: Toulouse

PostPosted: Fri Aug 28, 2009 2:39 pm    Post subject: Re: [initrd] ne veux pas se monter ... Reply with quote

loopx wrote:
Bonjour,



A titre informatif, j'aimerais monter le fichier "initrd.img" ... Mais ... c'est sur une distro Red Hat Enterprise Linux 5.... (oui, je sais ...)...



Donc, ca se trouve ici : http://pix-mania.dyndns.org/mediawiki/index.php/Initrd



et en gros, je suis coincé ici :

Code:
[root@wk01lhe boot]# gunzip < initrd-2.6.18-128.1.10.el5.img > initrd.img

[root@wk01lhe boot]# ls -lh initrd-2.6.18-128.1.10.el5.img initrd.img
-rw------- 1 root root 3.1M Jun  8 14:48 initrd-2.6.18-128.1.10.el5.img
-rw-r--r-- 1 root root 7.0M Aug 28 15:07 initrd.img

[root@wk01lhe boot]# mount -o loop initrd.img /mnt
mount: you must specify the filesystem type

[root@wk01lhe boot]# mount -o loop -t cramfs initrd.img /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[root@wk01lhe boot]# mount -o loop -t romfs initrd.img /mnt
mount: unknown filesystem type 'romfs'



Je ne sais pas du tout quel est le type de FS qu'il faut utilsier ..


Une idée ??


squashfs peut être.
Back to top
View user's profile Send private message
UB|K
l33t
l33t


Joined: 27 May 2004
Posts: 786
Location: Villeurbanne, France

PostPosted: Fri Aug 28, 2009 2:45 pm    Post subject: Reply with quote

salut,
un initrd c'est en général une archive cpio.gz alors je sais pas si on peut le monter mais tu peux toujours le décompresser...
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Sun Aug 30, 2009 6:05 pm    Post subject: Reply with quote

UB|K wrote:
salut,
un initrd c'est en général une archive cpio.gz alors je sais pas si on peut le monter mais tu peux toujours le décompresser...


Bah, d'après ce que j'ai lu .. tu dois pouvoir y avoir accès .. décompression ou montage .. J'ai juste réussi à décompacter, mais le montage hum ... Je doute fort qu'il y ai une nouvelle décompresion à effectuer ...



Tout ca est à titre informatif, car j'apprend un peu le boot réseau ... :) Pour le boulot, je dois faire des schémas, donc si vous avez des infos intéressante/tuto/schema etc, suis preneur aussi :)
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Mon Aug 31, 2009 7:54 am    Post subject: Reply with quote

Perdu, ca fonctionne pas avec squashfs :(



Code:
[root@wk01lhe boot]# mount -o loop -t squashfs initrd.img /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Mon Aug 31, 2009 9:39 am    Post subject: Reply with quote

Pour extraire un initrd zcat <moninitrd> | cpio -i

Pour le monter, via fuse et unpackfs ou archivemount http://sourceforge.net/apps/mediawiki/fuse/index.php?title=ArchiveFileSystems
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Mon Aug 31, 2009 1:19 pm    Post subject: Reply with quote

GentooUser@Clubic wrote:
Pour extraire un initrd zcat <moninitrd> | cpio -i

Pour le monter, via fuse et unpackfs ou archivemount http://sourceforge.net/apps/mediawiki/fuse/index.php?title=ArchiveFileSystems



Je viens de tester le "cpio" et ca fonctionne :)


Je vais checker l'autre méthode ..




EDIT: merci ;)
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum