LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-27-2003, 06:17 PM   #1
thehamguy1
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0 personal
Posts: 2

Rep: Reputation: 0
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...
 
Old 02-27-2003, 08:02 PM   #2
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
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.
 
Old 02-27-2003, 08:27 PM   #3
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
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"
 
Old 02-27-2003, 09:16 PM   #4
thehamguy1
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0 personal
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
Old 02-27-2003, 10:57 PM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 447

Rep: Reputation: 31
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.
 
Old 02-28-2003, 12:10 PM   #6
jgr220
Member
 
Registered: Feb 2003
Distribution: mandrake9.0
Posts: 100

Rep: Reputation: 15
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
 
  


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
fdisk, sfdisk, cfdisk: driving me crazy rosslaird Linux - Software 3 02-14-2005 01:21 PM
CFdisk does not see new HD but Fdisk does? BajaNick Linux - Software 6 08-28-2004 10:31 AM
Which Disk tool to USE? FDISK;CFDISK;SFDISK montyw47 Linux - Newbie 1 07-17-2004 03:21 AM
fdisk and sfdisk devinWhalen Linux - Distributions 5 04-08-2003 11:20 AM
fdisk and cfdisk problems LokiPartera Linux - Newbie 6 10-30-2002 04:13 PM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration