LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-29-2003, 11:23 AM   #1
nickhowes
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5

Rep: Reputation: 0
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...
 
Old 07-29-2003, 11:25 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Are you root when you use them?
 
Old 07-29-2003, 11:30 AM   #3
nickhowes
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
Yup tried it as root... bash can't find the commands at all.

Curious, no?
 
Old 07-29-2003, 11:32 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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.
 
Old 07-29-2003, 11:37 AM   #5
nickhowes
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 07-29-2003, 11:44 AM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Nick

As Root Try :

fdisk -L /dev/hdb
 
Old 07-29-2003, 11:51 AM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
There are variations of root...

Try this:

Note the -
Code:
[fancy@uilleann fancy]$ su -
Password: 
[root@uilleann root]# fdisk /dev/hdb
# Managing drives
LNAG - Accessing my drives
Rute - Partitions, File Systems

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hhat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 07-29-2003 at 11:57 AM.
 
Old 07-29-2003, 11:59 AM   #8
nickhowes
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
thanks fancypiper, i tried using

su -

and then fdisk was found! Could you explain how "su -" is different to simply "su"? I'm curious.
 
Old 07-29-2003, 12:05 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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.
 
Old 07-29-2003, 12:49 PM   #10
nickhowes
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
Ah yes, I see. Thank you!

Everybody have a trophy
 
  


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
how to format disk? Niflheim Linux - Newbie 6 03-04-2005 09:59 AM
Format Hard Disk Don Cherry Linux - Hardware 1 02-21-2005 12:56 PM
Format Brand New Harddrive aeruzcar Linux - Hardware 3 04-21-2004 05:52 AM
Install Redhat 9 on a brand new hard disk/computer swaungcenter Red Hat 1 01-24-2004 08:34 AM
Format hard disk! yenonn Linux - Newbie 9 10-04-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration