LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-22-2004, 12:21 PM   #1
Add1Sun
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Rep: Reputation: 0
Can't find fdisk


Hm, OK this may be a stupid problem...

I need to add a partition. I am running Fedora Core 1, fresh install and I have about 3.5 G of free disk space left over. I have decided what I want to do with it now so I need to partition it.

I am logged in as root but when I try to fdisk (either plain or with -l) all I get back is "bash: fdisk: command not found"

I did a whereis fdisk and it says /sbin/fdisk. I thought maybe I needed to go to the /sbin dir to use it. I tried that and same result.

The man page for it works fine, but not much help if I can't actually use it. Any help on this would be much appreciated.
 
Old 04-22-2004, 12:31 PM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
how about when you type:
/sbin/fdisk -l /dev/hda

You need to do it as root...
 
Old 04-22-2004, 12:48 PM   #3
Add1Sun
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Original Poster
Rep: Reputation: 0
Ah, OK that worked. Isn't it a bit weird to have to do the /sbin thing though? I've never seen that before. Can/should I move it somehow or just know that that is how it is set up on my system?
 
Old 04-22-2004, 12:53 PM   #4
ViNsAniTy
LQ Newbie
 
Registered: Apr 2004
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 28

Rep: Reputation: 15
I wouldn't suggest you moving it, you could however put sbin in your PATH so you wouldn't need to type it everytime, but I'm not exactly sure if that is advisable....
 
Old 04-22-2004, 01:03 PM   #5
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
If you are root, it's your job to use programs in /sbin, so you can safely put sbin in root's path. If you put it in your users path, won't be that big problem, because they're going to get a permission denied error.
 
Old 04-22-2004, 01:38 PM   #6
Add1Sun
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Original Poster
Rep: Reputation: 0
Excellent. I did put it in the PATH, so I'm good to go now. Thanks for everyone's timely help.
 
  


Reply



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
sure, fdisk -l to find devices ... stabu Slackware 7 10-02-2005 01:10 AM
cannot find usb-storage with fdisk -l Gerard_2009 Linux - Hardware 2 06-14-2005 02:12 PM
fstab can't find a file system fdisk can rharvey@cox Linux - Hardware 1 06-02-2004 08:36 PM
can't find fdisk? nigham Linux - Newbie 4 02-06-2004 01:57 AM
Slackware 9.1 fdisk doesnt find hard drive lazyday Linux - Laptop and Netbook 5 02-04-2004 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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