LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-03-2005, 08:48 PM   #1
citro
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 1
can't mount some initrd images?!


Hi there, I have got a really strange problem.
For my setup, I need to edit the initrd image files when I update the kernel.
Today it gave me a very very very strange error on some (not all!) of my initrd files:
1) I unzipped them
2) I tried to mount the image with this command:
mount -o loop initrd-2.6.9-1.681_FC3smp.img /mnt/loop1
mount: you must specify the filesystem type

Funny thing is, I can't mount them but the kernel can boot with them without problems! I tried to remake some initrd's with mkinitrd, but I cannot mount the resulting files!

Does anybody have a clue how this could have happened?
And yes, my system is Fedora Core 3, Kernel 2.6.9 from Fedora.

TIA!
Citro
 
Old 01-03-2005, 10:30 PM   #2
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
I've always used

mount initrd.img mountpoint -o loop

but I don't think the difference in order matters. I've never had to give a fs type option. You might try specifying the fstype with -t . I'll take your word you gunzipped them, as you obviously know that having the file gzipped will stop you cold. Odd. Do you have fs support for the initrd fs compiled in? Maybe the modules aren't loading if you don't.

Last edited by kevinalm; 01-03-2005 at 10:33 PM.
 
Old 06-09-2005, 03:00 AM   #3
sanne
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE, Gentoo, Ubuntu, Slackware, Red Hat
Posts: 2

Rep: Reputation: 0
Same problem, I would really like to see / edit my initrd. Using SuSE9.3 now, but I always had your same problem. Is there a "initrd fs" ??? I never heard nothing about that, and can't find it in my kernel.. still my running kernels boots using this initrd.. Wat fs is it?

I also tried to convert my SuSE system to reiser4..
changed the sysconfig so to include both reiserfs (currently used) and reiser4,
mkinird to update initrd modules .. it now includes reiser4 modules,
installed reiser4 progs,
then rebooted to gentoo,
mounted my suse system to /mnt,
tar to backup all data,
format as reiser4,
restore all data,
changed /etc/fstab so to have reiser4 instead of reiserfs on /,
reboot...

system panics because it can't find a reiserfs root... it must be some check in my initrd which I can't change?
 
Old 06-10-2005, 02:36 AM   #4
citro
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 1
I'm sorry I didn't post earlier, but I found out what it is: it's a cpio archive. use cpio's man page to find out how to extract the files

Greets, citro

PS: I think this would help you, too:
mkinitrd --with=<module_name> initrd <kernel>
Replace <module_name> with the name of the missing module and <kernel> with the kernel version number, for me this is "2.6.10-1.770_FC3smp" or similar. The whole command looks like this here:
mkinitrd --with=sata_sil --with=sd_mod initrd 2.6.10-1.770_FC3smp
and adds the two modules sata_sil and sd_mod to the initrd. Copy the resulting file "initrd" over to your boot directory and overwrite the existing initrd (BACKUP IT BEFORE OVERWRITING!)

Last edited by citro; 06-10-2005 at 02:41 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount more than 8 iso images el_pajaro! Debian 1 08-23-2005 10:51 AM
initrd images in vidalinux doralsoral Linux - Software 0 02-06-2005 09:21 AM
How to mount ISO images 6u4nYu Linux - General 6 12-22-2004 09:02 PM
Where can I find some initrd images? Falieson Linux - Software 1 08-30-2004 04:44 PM
mount cd images in redhat 9 Greggen Linux - Newbie 61 07-09-2003 02:51 AM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration