LinuxQuestions.org
Help answer threads with 0 replies.
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 10-02-2003, 08:20 PM   #1
freemanx
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Rep: Reputation: 0
Question Linux fdisk will not run!


Hello, I am new to Linux (3 days) but want to learn.

I installed RH8 to the secondary ide drive (6GB) on a PIII machine also running W98SE on the primary ide drive (12GB). The install went fine with no problems. Both OS boot (Linux from a boot floppy) and run correctly but I can't get Linux to "see" my extended partition on the primary (W98SE FAT32 w/ two partitions D: & E: ) drive. Linux can find the hda1 partition but not the others.

When I tried to use fdisk (Linux) to see what the partitions looked like I got a "command not found" error! I tried the whereis fdisk command and it is where it is suppose to be in /sbin/ . I have tried to run it (as root) from the / and /sbin/ locations and others, too; but it still is "command not found". I may be able to figure out my mount problem for the extended partition if I could get fdisk to work...

Any suggestions???

Last edited by freemanx; 10-02-2003 at 08:23 PM.
 
Old 10-02-2003, 08:26 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
As root, try "/sbin/fdisk" from anywhere or in the /sbin directory, try "./fdisk"

"/sbin" is not in your regular user or root's path (for security purposes) so you have to either call the file with the full path name "/sbin/fdisk" or be in "/sbin" and indicate "this directory" with the "./"

-K
 
Old 10-02-2003, 10:24 PM   #3
freemanx
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
O.K. -
The following are the results of trying again...

[root@Inteva sbin]# fdisk
bash: fdisk: command not found
[root@Inteva sbin]# cd /
[root@Inteva /]# cd ./
[root@Inteva /]# fdisk
bash: fdisk: command not found
[root@Inteva /]# cd sbin
[root@Inteva sbin]# fdisk
bash: fdisk: command not found
[root@Inteva sbin]# /fdisk
bash: /fdisk: No such file or directory
[root@Inteva sbin]# whereis fdisk
fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz
[root@Inteva sbin]#


What should I try next???
 
Old 10-02-2003, 10:27 PM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
try showing us the output of this:
Code:
ls -al /sbin/fdi*
Check to see if the fdisk file is executable... if not, try chmoding it to executable...
Code:
chmod +x /sbin/fdisk
Then try running it again.
 
Old 10-02-2003, 10:32 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Something you haven;t tried:
[root@Inteva sbin]# ./fdisk
you are in the /sbin directory and do ./fdisk
or you can do
/sbin/fdisk
from anywhere.
 
Old 10-02-2003, 10:35 PM   #6
freemanx
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
OOPS! -

Now I've got it...

[root@Inteva /]# /sbin/fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
[root@Inteva /]# /sbin/fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 1653 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 510 4096543+ b Win95 FAT32
/dev/hda2 511 1653 9181147+ f Win95 Ext'd (LBA)
/dev/hda5 511 1020 4096543+ b Win95 FAT32
/dev/hda6 1021 1653 5084541 b Win95 FAT32
[root@Inteva /]#


Thanks!!!
 
  


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 10:26 PM
How to use Fdisk in Linux gardenair Linux - Newbie 6 03-28-2005 02:10 PM
linux fdisk m1ke_81412 Linux - General 3 10-19-2003 11:29 AM
I fail to run the "fdisk -l" command soulfly Linux - Software 14 09-23-2003 02:38 PM
fdisk in linux antken Linux - General 1 01-22-2001 08:00 AM

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

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