Odd...my Linux distro didn't come with fdisk

DougK62

Diamond Member
Mar 28, 2001
8,035
6
81
This just seems odd to me. I install Red Hat 7.0 a couple of days ago and all is well. I did a default "workstation" installation and then afterwards installed Samba and VNC - I haven't done anything else. Today I decide to add a second hard drive to the box. I type fdisk at my root prompt and it gets bashed. I thought all Linux distros installed fdisk. So assuming that it's just not installed right now, how do I go about getting it? I looked on the installation CD and on the internet and can't find a place to download fdisk. Any suggestions?

 

Tiger

Platinum Member
Oct 9, 1999
2,312
0
0
You need to specify an device when using fdisk.
For example,fdisk /dev/hdb where /dev/hdb is the second HD.
I've never heard of Linux distro without fdisk.
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,885
8
81
All of those are likely, although I would tend to think it would be the way you logged in. Try su - or specifying the path: /sbin/fdisk
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
If you used su to get your root prompt, try "su -" instead, otherwise you'll end up with your own users environment vars, including the path.

If that doesn't work, just try "find / -name fdisk" as root and see what it finds.
 

DougK62

Diamond Member
Mar 28, 2001
8,035
6
81
Thanks sciencewhiz and Sunner. The problem was that I was using "su". I tried "su -" and it works just fine. Thanks :)

200 posts! :) (finally eheh)