LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-01-2003, 02:22 AM   #1
tfricke
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Question mkinitrd: Can't create temp dir, exiting...??


Ok so I'm trying to compile a new kernel I have read several tutorials on them and I followed them and it always fails at the same point. when I try to do

/sbin/mkinitrd /boot/initrd-2.4.20-4 2.4.20-4

I get the message
mkinitrd: Can't create temp dir, exiting

I've tried to use all the options for specifying root device temp directory and anything else I could think of. The directory is there it's writable but for some reason it just won't go.

anybody have any ideas?

Oh yeah the part where it fails in the script is here.

# should be nothing to change below...

PATH=/sbin:/usr/sbin:$PATH

tmp_dir=`mktemp -qd $root_dir/$tmp_dir/mkinitrd.XXXXXX`
if [ $? -ne 0 ]; then
echo "$0: Can't create temp dir, exiting..."
exit 1
fi
 
Old 11-01-2003, 04:48 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Are you root when you try this?
 
Old 11-01-2003, 08:50 AM   #3
tfricke
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Yes I'm logged in as root when I tried this. I've also tried this using a terminal window in X and without X.
 
Old 11-01-2003, 11:04 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
You may have a problem with mktemp. If you look in man mktemp there are a couple examples you can try just to see if mktemp is working properly.
 
Old 11-01-2003, 05:53 PM   #5
tfricke
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
got it to work sort of.

Well I finally managed to get it to build the initrd I had to use the -t -k and -i flags instead of passing the parameters directly. Not sure if this is new with Suse 8.2 or not.

But I still can't get it to boot on the new kernel. I keep getting a panic on trying to load the reiserfs modules.

I orginally tried to compile reiserfs into the Kernal but it would error while compiling so I imagine there is some problem with it. I'll just try again some other time.

Thanks for the answers.

Tobias
 
  


Reply



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
Strange files in temp dir stefaandk Linux - General 4 11-24-2005 04:24 PM
temp dir for suse 9.3 rajen_iiit Linux - Software 2 08-10-2005 06:58 AM
howto create module dependencies especially for mkinitrd david.skinner Linux - Software 0 01-10-2005 12:55 PM
Can I share temp dir? powadha Linux - General 1 03-06-2004 07:19 AM
Create public_html dir during adduser MikeeX Slackware 5 06-24-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 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