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??? |
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 |
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??? |
try showing us the output of this:
Code:
ls -al /sbin/fdi* Code:
chmod +x /sbin/fdisk |
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. |
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!!! |
All times are GMT -5. The time now is 01:58 AM. |