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 |
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-25-2003, 11:43 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Michigan
Distribution: Redhat 9.0
Posts: 6
Rep:
|
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.
|
|
|
07-26-2003, 02:53 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
07-26-2003, 03:39 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Michigan
Distribution: Redhat 9.0
Posts: 6
Original Poster
Rep:
|
you're right, it's not in my $PATH, how would i go about adding /sbin to the $PATH variable?
|
|
|
07-26-2003, 04:00 PM
|
#4
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
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})
|
|
|
07-26-2003, 10:11 PM
|
#5
|
Member
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251
Rep:
|
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.
|
|
|
07-26-2003, 11:31 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:35 AM.
|
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
|
|