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 |
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.
|
|
12-30-2002, 06:13 PM
|
#1
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Rep:
|
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.
|
|
|
12-30-2002, 06:35 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
You need to be root to run mke2fs. So type 'su', enter root password and you can use mke2fs.
|
|
|
12-30-2002, 06:44 PM
|
#3
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
I did do it as root. It doesn't matter. Same thing.
|
|
|
12-30-2002, 07:08 PM
|
#4
|
Member
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122
Rep:
|
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"
|
|
|
12-30-2002, 10:06 PM
|
#5
|
Member
Registered: Jan 2002
Location: Elkton, MD
Distribution: Debian 3.1, SimplyMEPIS 3.3.1, Kanotix 2005-03
Posts: 91
Rep:
|
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.
|
|
|
12-31-2002, 01:57 PM
|
#6
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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
|
|
|
12-31-2002, 02:00 PM
|
#7
|
Member
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242
Rep:
|
/sbin is not in the Red Hat path by default... I learned that after many hours of hitting my head against the keyboard.
|
|
|
12-31-2002, 02:11 PM
|
#8
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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!
|
|
|
12-31-2002, 02:18 PM
|
#9
|
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:
|
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 02:19 PM.
|
|
|
12-31-2002, 02:32 PM
|
#10
|
Member
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242
Rep:
|
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.
|
|
|
12-31-2002, 03:39 PM
|
#11
|
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:
|
If you can't find mke2fs, why not just use mkfs? Works the same and will let you format more than ext2.
|
|
|
12-31-2002, 04:00 PM
|
#12
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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
|
|
|
12-31-2002, 07:02 PM
|
#13
|
LQ Newbie
Registered: Dec 2002
Posts: 15
Rep:
|
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
|
|
|
12-31-2002, 07:38 PM
|
#14
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
commuter,
That makes me feel a whole lot better. Thanks, buddy. I needed that.
(putting the revolver away now.)
|
|
|
12-31-2002, 08:50 PM
|
#15
|
Member
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:49 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
|
|