fdisk not a command?
Greetings all,
I'm trying to list my partitions and for some reason the command line 'fdisk' doesn't work. I am getting an error stating it is invalid when I try to use: fdisk -l /dev/hdb I can view the list under Block Devices but the only things that show up there are the things Linux already sees -- and I do not see my 4 GB FAT32 partition there, either. I guess I'm just trying to figure out how to find my FAT32 partition, and it doesn't like fdisk. . . (Note: I'm trying to do what I did last June, as referenced in the following thread: http://www.linuxquestions.org/questi...threadid=23202 in case anyone wants background. . . only I'm running RH 8 now). Can anyone help? I'm not very technical :( and I thank you in advance for your help!!! |
Quote:
su root password fdisk Is fdisk installed? which fdisk (also as root) |
Try this:
/etc/fdisk -l /dev/hdb |
lokee,
Most likely there are no commands that are run from the /etc directory. That is a directory where configuration files are stored. The default location of fdisk is in /sbin where most likely you have to be root to run. |
I forgot to mention another related problem I am having -- I am using x window (KDE) -- and when I go to "Run Command" and type in my command, the command window disappears and I cannot see what results occurred after running the command -- is there a 'cure' for this behavior?
|
I managed to open terminal and ran /sbin/fdisk -l /dev/hdb (thanks both lokee & trickykid!) - and located my FAT32 drive as follows:
Device Boot Start End Blocks Id System /dev/hdb5 1473 2014 4097488+ b Win95 FAT32 When I attempted to mount it using this command: mount/dev/hdb4 -t vfat32 /mnt/hdb4 I receive the following error: bash: mount/dev/hdb5: No such file or directory Okay, if I *know* it is there, and it's recognized as a FAT32 partition. . . why doesn't it want to mount it? Gosh my sincerest apologies if I sound like an idiot by asking such a question, knowing me I've got something totally screwed up! Thanks again for all who can help. . . ! (Can anyone recommend a good 'learning Linux' type book?) |
Quote:
Or is that a typo? |
Ooops,
I meant /sbin/fdisk Sorry... |
Quote:
Thanks again for everyone for being so understanding and for your help! --Melissa |
You may need to load the vfat kernel module before you can mount a fat32 partition. Do "lsmod" and if you can't see the vfat module in the output load it with the modprobe command - "modprobe vfat".
|
Quote:
"lsmod" doesn't seem to work -- I'm getting the following error: bash: lsmod: command not found error Hopefully I'll become less stupid with Linux in the near future, as I ordered two books today. . . . but I thank you for your help now!!!!!!!! |
You need to be root Melissa, the su command is helpful here,
Code:
bern@grendel bern$ su -c 'lsmod' |
All times are GMT -5. The time now is 12:10 AM. |