LinuxQuestions.org
Review your favorite Linux distribution.
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 12-30-2002, 05:13 PM   #1
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
Command not found


When I try to use mke2fs command I am told, "Command not found." However, if I search the man pages (man mke2fs) I see an explanation of it.

Is there something I need to do to "activate" commands that are "not found?"

I have researched this, but have nothing so far.

I am running RH8.

Thank you in advance.
 
Old 12-30-2002, 05:35 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to be root to run mke2fs. So type 'su', enter root password and you can use mke2fs.
 
Old 12-30-2002, 05:44 PM   #3
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
I did do it as root. It doesn't matter. Same thing.
 
Old 12-30-2002, 06:08 PM   #4
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Rep: Reputation: 15
have you tried "locate"? Type "updatedb" then "locate mke2fs" It should be under /sbin. So you can run it as root by typing "./sbin/mke2fs" or switching to /sbin and typing "./mke2fs"
 
Old 12-30-2002, 09:06 PM   #5
Darkstar
Member
 
Registered: Jan 2002
Location: Elkton, MD
Distribution: Debian 3.1, SimplyMEPIS 3.3.1, Kanotix 2005-03
Posts: 91

Rep: Reputation: 15
If you're in an X session when you su, it won't work. Try opening another another console (Alt-F2), login as root and then run the command from there.
 
Old 12-31-2002, 12:57 PM   #6
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Ubien (et al) thank you. I was able to run the command ./mke2fs /dev/fd0 from within sbin. (I'll have to remember that)

Unfortunately, the command has not helped me trouble shoot my floppy access problem as suggested by another linux friend. It just sits there--the command that is.

I'll return to the hardware forum to pursue this further.

Thank you again and happy new year!

Thomas
 
Old 12-31-2002, 01:00 PM   #7
KnightAbel
Member
 
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242

Rep: Reputation: 30
/sbin is not in the Red Hat path by default... I learned that after many hours of hitting my head against the keyboard.
 
Old 12-31-2002, 01:11 PM   #8
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
LOL! Good Knight, you should see my forehead!

I built this machine a couple of weeks ago and have not been able to run BIOS update from motherboard website due to the floppy not being accessible.

But like I tell my kids... perseverance builds character!
 
Old 12-31-2002, 01:18 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by KnightAbel
/sbin is not in the Red Hat path by default... I learned that after many hours of hitting my head against the keyboard.
It is not in the user path, but is definitely in root's path. Make sure you login as root or 'su -' to root instead of a plain 'su'. Almost all binaries in /sbin and /usr/sbin are written for execution by the superuser. Although there are 'harmless' binaries like /sbin/lsmod that can be run properly by a normal user. If Redhat started including /sbin and /usr/sbin in the default user paths, I'd flame them to death .. because /sbin for superuser-binaries that root needs before the /usr filesystem is mounted. And /usr/sbin the ones not so essential ones that can wait.

Last edited by nxny; 12-31-2002 at 01:19 PM.
 
Old 12-31-2002, 01:32 PM   #10
KnightAbel
Member
 
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242

Rep: Reputation: 30
Quote:
Originally posted by nxny
It is not in the user path, but is definitely in root's path. Make sure you login as root or 'su -' to root instead of a plain 'su'. Almost all binaries in /sbin and /usr/sbin are written for execution by the superuser. Although there are 'harmless' binaries like /sbin/lsmod that can be run properly by a normal user. If Redhat started including /sbin and /usr/sbin in the default user paths, I'd flame them to death .. because /sbin for superuser-binaries that root needs before the /usr filesystem is mounted. And /usr/sbin the ones not so essential ones that can wait.
hmm... well alright, I usually use su instead of logging in as root though. the only time I login as root is when I know I'm gonna be doing alot of work on my system, like when I recompile the kernel.
 
Old 12-31-2002, 02:39 PM   #11
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
If you can't find mke2fs, why not just use mkfs? Works the same and will let you format more than ext2.
 
Old 12-31-2002, 03:00 PM   #12
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Please consider this matter closed. I thank you all and am very embarrassed to confess that the damned floppy drive had no power to it.

Sorry to all, but thank just the same. I did learn some things about commands being found in different files.

Happy new year and sincere regards,
Thomas
 
Old 12-31-2002, 06:02 PM   #13
commuter
LQ Newbie
 
Registered: Dec 2002
Posts: 15

Rep: Reputation: 0
I got a good hardy laugh from that!
I had the same problem with my cd writer i was going nuts and finally i looked inside the case and whammo no power!
You are not the only one!
commuter
 
Old 12-31-2002, 06:38 PM   #14
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
commuter,

That makes me feel a whole lot better. Thanks, buddy. I needed that.

(putting the revolver away now.)
 
Old 12-31-2002, 07:50 PM   #15
KnightAbel
Member
 
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242

Rep: Reputation: 30
LOL. Don't worry, it happens to all of us. I once disconnected the ide ribbon from the controller without realizing it, I was going nuts. hehe
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
command not found murshed Linux - Newbie 8 11-22-2007 04:51 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
command not found ginda Linux - General 3 07-16-2005 04:15 PM
Command not found nfis Linux - Software 9 11-25-2003 11:00 PM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM

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

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