Okay, i dont knwo if this helps.. but I got fdisk to work... now the dev/hda isnt working...
( sorry to be so pathetic, but here is what happened to me...
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk p
Unable to open p
[root@cpe00055df387a8-cm014110216098 sbin]# cd fdisk
bash: cd: fdisk: Not a directory
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk dev/hda
Unable to open dev/hda
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk dev/hda1
Unable to open dev/hda1
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk dev/hda6
Unable to open dev/hda6
[root@cpe00055df387a8-cm014110216098 sbin]# dir
addpart hotplug MAKEDEV quotaoff
agetty hwclock managerpm quotaon
arp ifcfg mii-tool rarp
arping ifconfig mingetty reboot
askrunlevel ifdown minilogd remadmin
badblocks ifenslave mkbootdisk rescuept
blockdev ifup mkdosfs resize2fs
chkconfig init mke2fs rmmod
clock initlog mkfs rmmod.static
consoletype insmod mkfs.bfs rmt
convertquota insmod-DIET mkfs.ext2 route
ctrlaltdel insmod_ksymoops_clean mkfs.minix routef
debugfs insmod.static mkfs.msdos routel
delpart install-info mkfs.vfat rtacct
depmod installkernel mkinitrd rtmon
devfs-add-mouse-entry ip mkrescue runlevel
devfsd ipmaddr mkswap sash
dhcpcd iptables modemconf service
dnsconf iptables-restore modinfo setsysfont
dosfsck iptables-save modprobe sfdisk
dumpe2fs iptunnel nameif shutdown
e2fsck ipvsadm nash slattach
e2label ipvsadm-restore netconf sln
elvtune ipvsadm-save netreport sulogin
ether-wake kallsyms nologin swapoff
fdisk kbdrate pam_console_apply swapon
fixperm kernelversion pam_tally sysctl
fsck killall5 partx syslogd
fsck.ext2 klogd pidof tc
fsck.ext3 ksyms pivot_root telinit
fsck.minix ldconfig plipconfig tune2fs
fsconf lilo portmap unix_chkpwd
fuser linuxconf poweroff update
genksyms losetup ppp-watch userconf
getkey lsmod pwdb_chkpwd vregistry
halt mailconf quotacheck
[root@cpe00055df387a8-cm014110216098 sbin]# cd fdisk
bash: cd: fdisk: Not a directory
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk m
Unable to open m
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk -m
fdisk: invalid option -- m
Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk -l
Disk /dev/ide/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 4866 cylinder s
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id S ystem
/dev/ide/host0/bus0/target0/lun0/part1 1 1247 10016496 83 L inux
/dev/ide/host0/bus0/target0/lun0/part2 1248 4866 29069617+ 5 E xtended
/dev/ide/host0/bus0/target0/lun0/part3 * 4867 4867 0 e W in95 FAT16 (LBA)
/dev/ide/host0/bus0/target0/lun0/part5 1248 1297 401593+ 82 L inux swap
/dev/ide/host0/bus0/target0/lun0/part6 1298 4866 28667961 b W in95 FAT32
[root@cpe00055df387a8-cm014110216098 sbin]# fdisk dev/hda1
Unable to open dev/hda1
[root@cpe00055df387a8-cm014110216098 sbin]#