Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
|
 |
09-25-2003, 08:52 PM
|
#1
|
Member
Registered: Sep 2003
Location: New York, NY
Distribution: Red Hat 9
Posts: 33
Rep:
|
mkfs not working in Red Hat 9 ?
I was trying to use the mkfs command (in Red Hat 9 - before I found the Floppy Formatter in KDE), and it said that that mkfs command was not found...I'm confused because this book, Red Hat 9 Bible, which was where I obtained my Red Hat 9 distribution, instructs me to use mkfs to make a specific file system...and it clearly doesn't work.
It's not a huge pressing issue for me now that I've found the floppy formatter in KDE, but I'm still curious.
Thanks.
|
|
|
09-25-2003, 09:44 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Is the command in your path?
find / -name mk2fs
or
locate mk2fs
|
|
|
09-25-2003, 10:08 PM
|
#3
|
Member
Registered: Sep 2003
Location: New York, NY
Distribution: Red Hat 9
Posts: 33
Original Poster
Rep:
|
When I do locate mkfs, I get the following:
$ locate mkfs
/usr/share/man/man8/mkfs.ext2.8.gz
/usr/share/man/man8/mkfs.ext3.8.gz
/usr/share/man/man8/mkfs.8.gz
/usr/share/man/man8/mkfs.msdos.8.gz
/usr/share/man/man8/mkfs.vfat.8.gz
/usr/share/man/man8/mkfs.jfs.8.gz
/sbin/mkfs.ext2
/sbin/mkfs.ext3
/sbin/mkfs.cramfs
/sbin/mkfs
/sbin/mkfs.msdos
/sbin/mkfs.vfat
/sbin/mkfs.jfs
/sbin/mkfs.reiserfs
Am I maybe just using the syntax incorrectly ?
|
|
|
09-25-2003, 10:11 PM
|
#4
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Are you logged in as root? You have to be root to run this command. If it doesn't work as root, then you don't have the /sbin in your $PATH. To run the command, you will have to specify the full path to it until you added /sbin to your $PATH
/sbin/mkfs
I guess they named it mkfs instead of mk2fs as well...
|
|
|
09-25-2003, 10:12 PM
|
#5
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Also it appears they've made a command for each type of filesystem as well.. notice you have mkfs.ext2, mkfs.ext3 and so on in your /sbin directory.. ?
|
|
|
09-25-2003, 10:22 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,547
|
locate is a utility to find files on your system. You see that mkfs is located in the /sbin directory.
/sbin is usually not in a users path so that is why there was a command not found error.
./ means the current directory, ../ means one level up.
To see your path environment
echo $PATH
man is the online help pages
example:
man mkfs
|
|
|
09-25-2003, 10:24 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,547
|
Were you thinking of mke2fs 
|
|
|
All times are GMT -5. The time now is 07:28 PM.
|
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
|
|