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

How do I add a second harddisk in Linux?

Status
Not open for further replies.

frummel

Technical User
Jun 21, 2002
91
NL
I've been struggling for 5 days now, and I can't get my second harddrive configured properly.

I set my 40GB harddisk to secondary master, so RedHat recognizes the disk as /dev/hdc. I use fdisk to add a partition using:

# fdisk /dev/hdc
partion: 1
etc...

Using 'fdisk p' I can see the new partition, and I use w to save the changes I made.

So now I'd like to format the partition to ext3, using:
# mke2fs -t /dev/hdc1

I get an error message that says the partition is not big enough to create this format.

Can someone tell me step-to-step, which steps I need to make to get the partition working? Oh yeah, I figured I have to set a mountpoint for partition /dev/hdc1, let's say /server... How do I get this done?

 
Great. That tutorial sure was helpful.
I was already able to mount the fs.
But the part on editing fstab.bk was new to me.
When I rebooted my server, it didn't mount the new drive automatically. But now it does.

Thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top