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 12-24-2007, 05:28 PM   #1
aggiedvm
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Fdisk command not working


I'm trying to work with some of my partitions so I used the fdisk command and heres what I got.

[aggiedvm@localhost ~]$ su fdisk
su: user fdisk does not exist
[aggiedvm@localhost ~]$ su
Password:
[root@localhost aggiedvm]# fdisk
bash: fdisk: command not found
[root@localhost aggiedvm]# fdisk -l
bash: fdisk: command not found

Does anyone haave an explanation why it would do that?? or a way to fix it?
 
Old 12-24-2007, 05:37 PM   #2
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello aggiedvm

Your command 'su' is trying to use 'fdisk' as a modifier or switch and it is not applicable to the su command.

Try issuing su first and you will be asked for your root password.

Then run the fdisk command.

You will also need to be aware of the variants of su.

Simply issuing the command:

su

will give you roots editing rights without giving you access to the whole of roots environment like the access to various folders contained in the path statement. To gain the ability to run the fdisk command you will need to use the:

su -

variant of the command. That's a space and minus sign after the su.

Last edited by bbfuller; 12-24-2007 at 05:48 PM.
 
Old 12-24-2007, 05:48 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,141

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Use "su -" instead of "su".
Or run it as /sbin/fdisk - this is probably a path issue.
 
Old 12-24-2007, 09:27 PM   #4
aggiedvm
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, that worked.

Aggiedvm
 
  


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
About fdisk command satimis Linux - Software 5 04-05-2006 11:29 AM
fdisk command, for / value / do - unsure linuxchump Programming 4 03-13-2005 04:56 AM
fdisk command - can't get it to work!! sknarf Linux - Software 4 06-23-2004 01:59 AM
fdisk command thefetus Linux - Newbie 5 11-19-2003 02:15 PM
fdisk not a command? toob Linux - Newbie 11 04-26-2003 10:56 PM

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

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