Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
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.
Distribution: SuSE, Gentoo, Ubuntu, Slackware, Red Hat
Posts: 2
Rep:
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?
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!)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.