LinuxQuestions.org
Visit Jeremy's Blog.
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 03-18-2005, 12:46 PM   #1
AkshatBhandari
LQ Newbie
 
Registered: Mar 2005
Location: India
Distribution: RED HAT 9.0
Posts: 5

Rep: Reputation: 0
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

Last edited by AkshatBhandari; 03-18-2005 at 12:47 PM.
 
Old 03-18-2005, 01:05 PM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
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!
 
Old 03-18-2005, 01:31 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,288

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
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 -
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
What is this error im getting when running fdisk? Dachy Slackware 4 06-07-2005 01:02 PM
running fdisk in linux Lrr Linux - Newbie 11 03-03-2005 12:12 AM
I am haveing trubles running fdisk on my raid BrokenOne Linux - Hardware 2 10-13-2003 03:06 PM
running FDISK Juniper34 Linux - Newbie 2 08-13-2003 07:25 PM


All times are GMT -5. The time now is 05:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration