Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding New Hard Drive 2

Status
Not open for further replies.

Willy2782

MIS
Oct 26, 2002
64
US
My question is let's just say that I installed RH in a system with just one Hard Drive but along the way I add a second Drive only for Data . What are the steps in configuring the drive in the system (OS)
 
You plugged in power and the data-cable.
Now let's assume you have two controllers, one had a hd plugged in, the other a cdrom.
Their names are hda and hdc.
You plugged it in as second drive to the existing harddrive, so it is hdb, else hdd, else ... ?

You boot.
Then
Code:
fdisk /dev/hdb
(fdisk-commands: m(enu=help) l(ist) ...)
you choose a nice partition type, ext3 or reiserfs or jfs.
One big partition? OK.
You make a partition for reiserfs - assumed.
And write, exit fdisk.

Then you make the filesystem.
Code:
mkfs.reiserfs
Pretty fast it is done.
Now you create a mount-target.
Do you have an '/opt'-dir?
Code:
mkdir /opt
mount /dev/hdb1 /opt -t reiserfs defaults

Note: Since there is only one partition, it is hdb1, a second would be hdb2. ...

If it works, you write a similar line to /etc/fstab, to have it mountable by 'mount /opt'. Other mount-options might be found by looking at the other entries.

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top