[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How do I add a hard-drive in redhat?
- From: "Alex Meaden" <alex meaden net>
- To: <redhat-list redhat com>
- Subject: Re: How do I add a hard-drive in redhat?
- Date: Mon Jun 17 09:28:00 2002
----- Original Message -----
From: "James R. McKenzie" <jimmckenzie earthlink net>
To: <redhat-list redhat com>
Sent: Sunday, June 16, 2002 9:54 PM
Subject: How do I add a hard-drive in redhat?
> I have a Systemax Computer with an Athlon 1700XP, 512 MB DDR PC2100, 2 IDE
> Burners (CDR/W's), a Zip 250 ATAPI and a DVD drive. I want to add a
> hard-drive to my setup (via a Promise Card, not the RAID type) but can't
> find the program or setup agent to do it with. Until recently I didn't
have
> a spare HDD so I never needed to do this but now I do have one and can't
> figure it out.
>
> I'm using Red Hat 7.3 Download edition by way of Cheap Bytes (They call it
> "Pink Tie" Linux) and have been able to do most everything I set out to do
> but can't seem to add my extra HDD. Please, any/all help will be
> appreciated.
When you boot the system with the new drive installed, it should be listed
in the startup messages - this will tell you which device (hda, hdb, hdc,
etc) it is. With this info, you can create a partition on the disk and
format it. To do this (you need to login as root), run the command "fdisk
/dev/hdx", where hdx is the new drive. If you don't know which drive it is,
try hda, then hdb, then hdc etc., and each time fdisk loads, press p to
display the partition info. The new drive should have no partitions present.
Once you are *sure* you have the correct drive, use the n command to create
a new partition. Choose the following options: p for primary partition, 1
for partition number, just press Enter for first and last cylinder. Then
press w to write the partition table and exit.
You now need to format the partition. To do so, type: "mkfs -t ext2
/dev/hdx1", replacing x with the correct drive letter. This will format the
new partition using the ext2 file system. I recommend you use ext3 as this
supports journalling. To do so, you now need to convert the drive by typing
"tune2fs -j /dev/hdx1". The disk is now ready to be mounted.
To mount the new drive, create a new directory somewhere, e.g. "mkdir
/mnt/newdisk". Now mount the disk - "mount /dev/hdx1 /mnt/newdisk". You
should also put this info in /etc/fstab so that the drive is mounted when
you reboot this system - open the file in an editor, and add the line:
/dev/hdx1 /mnt/newdisk ext3 defaults 1 2
replacing device name and mount directory as required.
You should now be done!
HTH,
Alex.
--------------------
Mr Alex Meaden
Computer Science Undergraduate
University of Kent at Canterbury
aejm1 meaden dyndns org
http://meaden.dyndns.org
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]