LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fdisk,cfdisk,sfdisk not in my distro of RH 8.0 personal (https://www.linuxquestions.org/questions/linux-newbie-8/fdisk-cfdisk-sfdisk-not-in-my-distro-of-rh-8-0-personal-47488/)

thehamguy1 02-27-2003 06:17 PM

fdisk,cfdisk,sfdisk not in my distro of RH 8.0 personal
 
Trying to speed up my RH 8.0 installation on my dedicated Linux box, I installed a second hard drive and want to format it with Linux native and swap partitions.

But not only does my installation not include anything called fdisk, cfdisk, or sfdisk, they're not on the 3 installation CD's nor are they available from RHN. Unless they're hidden somehow, or named differently, looks like I need to find a place to download one of the above-named utilities. Advice?

P.S. sorry for the longish post; I'm a garrulous old coot from back in the CP/M days...

Q*Bert 02-27-2003 08:02 PM

Welcome to LQ.org thehamguy1! (Can I assume you're a ham radio enthusiast? So's my dad!)

there's an easy way to check.

whereis fdisk

which will probably tell you it's in the sbin directory.

pilot1 02-27-2003 08:27 PM

I believe fdisk is in the sbin directory - if your logged in as a normal user, or have root privileges by doing a "su root" it won't work when you type the command. Try logging in as root and running the command again, or if that doesn't work do either a "locate fdisk" for a "find / -name fdisk"

thehamguy1 02-27-2003 09:16 PM

Thank you, Q*Bert and Pilot1. Thanks to your help I now see that fdisk is indeed in the /sbin directory, yet even when logged in as root an rpm query (rpm -q fdisk) would bring the response "fdisk is not installed." Evidently I shouldn't trust that response if programs like fdisk are not "packages." I still have a lot to learn...ain't it fun?

To Q*Bert: Yes, I'm a ham radio operator since 1959. Tell your dad you've been in contact with amateur radio station WU0V, in the state of Iowa (that third character is a zero). Maybe he and I can meet on the air someday. Thank you for replying to my call for help.

To Pilot1: I also appreciate your reply, which alerted me again to the importance of logging in as root. Are you a pilot, then?

fsbooks 02-27-2003 10:57 PM

Minor notes which may also help you in the future.can't find it,can't find it,

$ rpm -qf /sbin/fdisk
util-linux-2.11n-12.7.3

... or fancier (since /sbin is in my path)...

$rpm -qf `which fdisk`
util-linux-2.11n-12.7.3

Note also, if you need a command (or library) and don't know where to look, go to rpmfind, which will, lo and behold, usually *find* the rpm containing that file.

Have fun.

jgr220 02-28-2003 12:10 PM

fdisk and cfdisk are used from the terminal just open a terminal su and type cfdisk or fdisk and press enter you should get a listing of your partitions then just setup partitoning the drive from there

  • #cfdisk /dev/hdb


All times are GMT -5. The time now is 06:02 AM.