Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-29-2003, 11:23 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5
Rep:
|
Format brand new disk
Hello,
I've got Red Hat 9 installed fine on a 10Gb disk on /dev/hda1. I've now installed a new unformatted disk at what would be /dev/hdb1, for general storage. But I don't know how to format and partition it!
I've looked around and found advice to run fdisk or cfdisk from the konsole etc., but I can't find any of these programs, and I've checked the Add/Remove programs to see if I just didn't install them.
I'm sure I've missed out some fundamentally simple thing. But I don't know what it is...
|
|
|
07-29-2003, 11:25 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Are you root when you use them?
|
|
|
07-29-2003, 11:30 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5
Original Poster
Rep:
|
Yup tried it as root... bash can't find the commands at all.
Curious, no?
|
|
|
07-29-2003, 11:32 AM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi nickhowes
Linux would recognise your new unformatted disk - if its on primary slave - as /dev/hdb
To format it:
Open a terminal
su
root password
cfdisk
create a new partition
Use TYPE to format it.
|
|
|
07-29-2003, 11:37 AM
|
#5
|
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5
Original Poster
Rep:
|
Hi skyline
I've su'd in as root. The problem comes when I type cfdisk and get
Code:
bash: cfdisk: command not found
I didn't exclude any important packages when I installed Redhat. Where did it go?  More importantly where can I get it back 
|
|
|
07-29-2003, 11:44 AM
|
#6
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Nick
As Root Try :
fdisk -L /dev/hdb
|
|
|
07-29-2003, 11:59 AM
|
#8
|
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5
Original Poster
Rep:
|
thanks fancypiper, i tried using
su -
and then fdisk was found! Could you explain how "su -" is different to simply "su"? I'm curious.
|
|
|
07-29-2003, 12:05 PM
|
#9
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
su changes you to root, but in your user environment and /sbin (binaries for the superuser or sysadm) isn't in your command path.
su - changes the working environment to root, including changing your working directory to /root.
Watch the working directory as you change with both commands and you will see.
|
|
|
07-29-2003, 12:49 PM
|
#10
|
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5
Original Poster
Rep:
|
Ah yes, I see. Thank you!
Everybody have a trophy
|
|
|
All times are GMT -5. The time now is 01:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|