LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-28-2023, 01:17 AM   #16
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by mrmazda View Post
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.
 
Old 07-28-2023, 02:16 AM   #17
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
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
 
Old 07-28-2023, 02:44 AM   #18
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0
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.
 
Old 07-28-2023, 10:42 AM   #19
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0
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
 
Old 07-28-2023, 11:54 AM   #20
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
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:
Code:
man mkinitrd
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 FileSystem, 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
 
Old 07-28-2023, 01:11 PM   #21
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0
That was a pretty good explanation. Learned it. Meanwhile will run the code tmrw and let you know. Thanks again.
 
Old 07-29-2023, 12:15 AM   #22
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0
Command says image already exists in /boot. Rebooted. Same error.
 
Old 07-29-2023, 12:27 AM   #23
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
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.
 
Old 07-29-2023, 08:07 AM   #24
redhatanirban
Member
 
Registered: Oct 2007
Posts: 46

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
boot issues, initrd


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changed Motherboard + RAM & now PartedMagic/Clonezilla Live CDs can't boot jadukor Linux - General 7 11-14-2011 10:26 PM
Installed Ubuntu but it changed my boot loader. I want this changed... mdorries Linux - Distributions 8 05-31-2007 08:13 PM
Changed Motherboard: System Won't boot - Kernel Panic n1wil Red Hat 1 06-16-2006 09:45 AM
Changed motherboard linux not booting dfilkovi Linux - General 9 03-10-2006 07:36 AM
Changed motherboard and cannot get Linux to boot. davidcf Mandriva 7 10-03-2003 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration