LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why fdisk is not running? (https://www.linuxquestions.org/questions/linux-newbie-8/why-fdisk-is-not-running-303233/)

AkshatBhandari 03-18-2005 12:46 PM

why fdisk is not running?
 
hi
i'm using REDHAT 9.0 ,i'm logged in as su but still my command like fdisk was not working on terminal is it not the right place to run that command ,or iave to try it in vi editor,may be this something very foolish question but as i;m a newbie

Did any help me out from where should i start in RED hat 9.0
Thanks

visaris 03-18-2005 01:05 PM

Well, it would help if instead of saying something like:
Quote:

command like fdisk was not working on terminal is it not the right place to run that command
you told us exactly what the error message was. If you write the error you get exactly (or copy and paste it) we can help you much faster. I'm not trying to bitch you out for this or anything, it's just that the more information you give, the better we can help.

That being said, I think I have a guess. fdisk and some other root-only commands are frequently placed in /sbin instead of /bin. If /sbin is not in your path, you cannot run any of the programs in it. Try typing:
Code:

your_prompt # export PATH="$PATH:/sbin/"
and see if fdisk works after that.

Or you could try running fdisk with a complete path like so:
Code:

your_prompt # /sbin/fdisk
good luck!

syg00 03-18-2005 01:31 PM

Re: why fdisk is not running?
 
Quote:

Originally posted by AkshatBhandari
i'm using REDHAT 9.0 ,i'm logged in as su but still my command like fdisk was not working on terminal ...
Did you actually login as root, or did you issue the su command from a terminal ???.
Sounds like the latter - to avoid this problem of path not including /sbin, issue following instead;
Code:

su -


All times are GMT -5. The time now is 01:42 PM.