LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-25-2003, 11:43 PM   #1
tasadar
LQ Newbie
 
Registered: Jul 2003
Location: Michigan
Distribution: Redhat 9.0
Posts: 6

Rep: Reputation: 0
problem with mke2fs


i'm trying to run the buildk file that comes with the ltsp_initrd_kit. It asks me a couple questions about my setup then fails at the command:
mke2fs -F -q -m 0 -N 200 initrd.ltsp 2500
then gives me the error:
./buildk: line 307: mke2fs: command not found
mke2fs failed!

the part i'm having problems with is even after i installed the e2fs programs from romfind i still can't execute any of the e2fs commands that are included with the rpm.

Any help will be apreciated, i really think i'm just overlooking something.
 
Old 07-26-2003, 02:53 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
A PATH issue? Try doing (as root in a terminal):
updatedb
And then:
locate e2fsck
or whatever e2 app you wanna look for. See if it's in your PATH by echoing your path:
echo $PATH
If the location where e2fsck (or mke2fs) are located is outside the $PATH you probably will wanna either symlink them to a location with your PATH or edit your $PATH variable to reflect that location.

HTH

Cool
 
Old 07-26-2003, 03:39 PM   #3
tasadar
LQ Newbie
 
Registered: Jul 2003
Location: Michigan
Distribution: Redhat 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
you're right, it's not in my $PATH, how would i go about adding /sbin to the $PATH variable?
 
Old 07-26-2003, 04:00 PM   #4
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Well it all depends on which shell you are using.

For Bourne, bash, korn -

PATH="/sbin:${PATH}"
export PATH

For csh, tcsh -

set path = (/sbin ${path})
 
Old 07-26-2003, 10:11 PM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
e2fsk may require root to run. Most programs in /sbin do so.
If you are running as root /sbin should be in your $PATH as most commands requiring root privileges are in /sbin or /usr/sbin.
 
Old 07-26-2003, 11:31 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by camelrider
e2fsk may require root to run. Most programs in /sbin do so.
If you are running as root /sbin should be in your $PATH as most commands requiring root privileges are in /sbin or /usr/sbin.
Apparently in newer versions of RH this is not the case. I am guessing they assume you will either know this and add it in your PATH yourself, OR that you are going to use gui tools that are bound with full path to accomplish most tasks.

Just an FYI..

Cool
 
  


Reply


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
about mke2fs -j -O dir_index kpachopoulos Linux - General 1 11-12-2005 08:30 AM
mke2fs problem cuco76 Fedora 9 11-22-2003 06:06 PM
accidental mke2fs sarahan Linux - General 1 11-15-2003 04:58 AM
mke2fs appler Linux - Newbie 2 03-04-2003 05:54 PM
mke2fs problem vaibhavk Linux - General 2 01-15-2002 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 AM.

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