Results 1 to 4 of 4
distro - redhat enterprise 4.
i want to add another hard disk (ATA) to my system. how should i go about it ? how to partition and format ? pliz ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-19-2005 #1Just Joined!
- Join Date
- Mar 2005
- Location
- india
- Posts
- 87
adding a new hard disk
distro - redhat enterprise 4.
i want to add another hard disk (ATA) to my system. how should i go about it ? how to partition and format ? pliz write the procedures.
- 08-19-2005 #2
Once you have connected the drive to you machine you can partition and format it in three ways, useing command line programs like fdisk or cfdisk, or gui programs like QTParted.
This is how to partition an format in fdisk:
NOTE: From now on, I will assume that your new hard disk is /dev/hdb. If this is not the case, adjust your methods accordingly.
you should get some output.Code:fdisk /dev/hdb
Now to settup a partition doThis will create a 400MB partition for you, which will be /dev/hdb1. THen if you want to create another one just do:Code:Command (m for help):n Command action l logical (5 or over) p primary partition (1-4) p Selected partition 1 First cylinder (7-19452, default 7): Using default value 7 Last cylinder or +size or +sizeM or +sizeK (7-6533, default 6533): +400M
which will create a 5GB partition on /dev/hdb2Code:Command (m for help):n Command action l logical (5 or over) p primary partition (1-4) p Selected partition 2 First cylinder (7-19452, default 7): Using default value 7 Last cylinder or +size or +sizeM or +sizeK (7-6533, default 6533): +5140M
then to commit the changes:Then to format it:Code:Command (m for help):w
format reiserfs:format ext3:Code:mkreiserfs /dev/hdb2
format ext2:Code:mke2fs -j /dev/hdb2
THe other partitioners are slightly easier to use, but I've covered the most basic one here so that you know how to partition and fromat a new diskCode:mke2fs /dev/hdb2
- 08-19-2005 #3Linux Engineer
- Join Date
- Jul 2003
- Location
- Uppsala, Sweden
- Posts
- 1,278
insert the hard disk and partiton it however you want one big reiserfs partition is fine for backups or whatever. dont forget to add it to the fstab so you can mount it more easily or automount etc
Proud to be a GNU/Gentoo Linux user!
- 08-19-2005 #4Just Joined!
- Join Date
- Mar 2005
- Location
- india
- Posts
- 87
thanx


Reply With Quote
