Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
07-28-2023, 01:17 AM
|
#16
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
Dracut's initial release was 13 months after FC9's release. If you plan on rebuilding its initramfs, I suggest you give the (already installed?) mkinitrd a try before messing with installation or use of dracut.
|
Hi please let me know how to make use of initrd for rebuilding. I have not done that before. I am using fc15 live dvd for linux rescue. Let me know if any further information is required. TIA.
|
|
|
07-28-2023, 02:16 AM
|
#17
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
It's not clear exactly what your meaning of "rescue mode" is. If you mean you boot Fedora 15, then chroot into Fedora Core 9, then you should be able to do the following:
Code:
# mkinitrd --help
usage: mkinitrd [--version] [--help] [-v] [-f] [--preload <module>]
[--image-version] [--with=<module>]
<initrd-image> <kernel-version>
(ex: mkinitrd /boot/initramfs-2.6.35.11-83.fc14.i686.PAE.img 2.6.35.11-83.fc14.i686.PAE)
#
This should confirm the syntax required to regenerate your FC9 initrd. It may differ. I pasted the above from Fedora 14. I don't have FC9 on a disk in a working PC to confirm.
You'll need to check in /lib/modules/ and /boot/ to get the required kernel version to use. Also it's possible you may find the new initrd located in your current directory and need to move it to /boot/. I would backup the original initrd before proceeding.
I expect the command to run will resemble the following:
Code:
# mkinitrd /boot/initramfs-2.6.25.25-01.fc9.i686.img 2.6.25.25-01.fc9.i686
|
|
|
07-28-2023, 02:44 AM
|
#18
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
Yes please let me know how to use initrd commands for that. I am using fc15 for linux rescue. I have not done before. If you need any further information kindly let me know.
|
|
|
07-28-2023, 10:42 AM
|
#19
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
I mean linux rescue and changing to chroot /mnt/sys image. My /boot have two images: initrd-2.6.25-14.fc9.i686 & initrd-2.6.27.25-78.2.25.fc9.i686.img.but no initramfs image. /lib/modules have 2.6.25-14.fc9.i686 & 2.6.27.25-78.2.25.fc9.i686.img. Let me know further actions. Thanks in advance
|
|
|
07-28-2023, 11:54 AM
|
#20
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
Even though you booted F15 for rescue purposes, once you've chrooted into FC9, you are running the installed FC9 system, so it's the FC9 commands you are running, and the FC9 man pages you have access to: Once upon a time many many moons ago a term was coined for a boot assistant to the kernel, called an INITialization Ram Disk, or initrd. Some years later, apparently after FC9 release, someone in silliness decided it needed a longer, more technically appropriate, but functionally no more than change for the sake of change, name: INITialization RAM File System, or initramfs. Both initrd and initramfs are functional equivalents.
Code:
# mkinitrd /boot/initrd-2.6.27.25-78.2.25.fc9.i686.img 2.6.27.25-78.2.25.fc9.i686
|
|
|
07-28-2023, 01:11 PM
|
#21
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
That was a pretty good explanation. Learned it. Meanwhile will run the code tmrw and let you know. Thanks again.
|
|
|
07-29-2023, 12:15 AM
|
#22
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
Command says image already exists in /boot. Rebooted. Same error.
|
|
|
07-29-2023, 12:27 AM
|
#23
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
That's to be expected. It doesn't want to run except by someone who knows what he's doing, a safety feature. You're intending to recreate what you already have, but with some required different content. That's why I pointed you to the man page instruction to read. There should be a force it option, or you can rename or remove the existing one first before running mkinitrd. Rebooting before successfully running mkinitrd won't do anything but waste time.
|
|
|
07-29-2023, 08:07 AM
|
#24
|
Member
Registered: Oct 2007
Posts: 46
Original Poster
Rep:
|
Well i have left that project. Very tiring. Was doing it so that I could learn. I am installing fc38. I will follow up from there. Thanks a lot to ALL who helped me out and reach up a bit higher in my conquest. Thanks again.
|
|
|
All times are GMT -5. The time now is 09:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|