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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Add hard drive to RH6.2?

Status
Not open for further replies.

JohnLynn

Technical User
Feb 2, 2001
38
US
I need to add a hard drive to a RedHad 6.2 server. I have a HardDrive and CDrom on IDE0 and the drive I wish to add on IDE1. Kudzu saw it and added it. I am now lost as how to add it as a new volume?

Thanks,
John G. Lynn
 
Hi,

It all depends on whether you are using something like lvm (logical volume manager) or software raid . If so, see --> .

I'd guess this is not the case, however. In that case you'd first have to create one or more ext2 partitions on the disk (/dev/hdc from what you say) and then make ext2 filesystem(s) in those partitions. You would use '/sbin/fdisk /dev/hdc' to create the partitions and mkfs to create the filesystem (format the partition just created).

For example, if you had a new partition /dev/hdc1 :

mkfs -t ext2 -cv /dev/hdc1

After you have a new ext2 partition or partitions, you have to decide where you want to 'mount' those partitions. Lets say you decide to mount at '/usr2'. You would firstly make a dummy directory of the same name ... 'mkdir /usr2' . Then edit /etc/fstab to add the filesystem and mount-point - something like this :

/dev/hdc1 /usr2 ext2 defaults 1 2

Once you've mounted that partition ('mount /dev/hdc1') you will have all that space available under /usr2 .

See also -->
Hope this helps..
 
ifincham,

Thanks for the direction,

U ROCK,

john
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top