Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-31-2008, 05:36 PM   #1
Registered: Feb 2007
Distribution: CentOS
Posts: 34

Rep: Reputation: 17
Question Error while building initramfs image for custom kernel

I configured and built a custom kernel of mine, and it needs initramfs image because the scsi support (my HDD is SATA) and the filesystem support are moduled. So, I downloaded mkinitramfs, took a look at the man page and tried to build one. Got the following:

$ mkinitramfs -o initramfs.img-2.6.26 2.6.26
which: no ata_id in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
cp: missing destination file operand after `/tmp/tmp.WFPITx8TCC/sbin/'
Try `cp --help' for more information.
Error has occured!
Any help? I didn't use the one from the complete initramfs-tools, because the distro I am using (paldo) doesn't have such package, and it doesn't seem to have a source available.
Old 08-01-2008, 12:24 PM   #2
LQ Newbie
Registered: Aug 2006
Posts: 17

Rep: Reputation: 0
Typically mkinitramfs is a script, which you should be able to edit. Add "set -v" in the script which will echo the lines. It looks like the "cp" is missing its required destination.
Old 08-01-2008, 06:14 PM   #3
Senior Member
Registered: Jan 2008
Distribution: Arch/Knoppix
Posts: 1,823
Blog Entries: 14

Rep: Reputation: 282Reputation: 282Reputation: 282
Which distro are you using? Typically each one has it's own mkinitrd/mkinitramfs script. You wouldn't want to use ubuntu's script in slackware or vice versa, for example.

Whoops, wasn't paying attention, I see you're using paldo without a script. Defer to the advice already given....

Last edited by mostlyharmless; 08-01-2008 at 06:15 PM. Reason: add info


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
kernel panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 06:06 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 04:05 AM
after building a custom kernel h/w Debian 5 08-21-2003 11:13 PM
Building a custom kernel eastj1974 Linux - Newbie 7 07-01-2003 01:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

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