Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    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.

    Code:
    fdisk /dev/hdb
    you should get some output.

    Now to settup a partition 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
    This 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 2
    First cylinder (7-19452, default 7):
    Using default value 7
    Last cylinder or +size or +sizeM or +sizeK (7-6533, default 6533): +5140M
    which will create a 5GB partition on /dev/hdb2

    then to commit the changes:
    Code:
    Command (m for help):w
    Then to format it:

    format reiserfs:
    Code:
    mkreiserfs /dev/hdb2
    format ext3:
    Code:
    mke2fs -j /dev/hdb2
    format ext2:
    Code:
    mke2fs /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 disk
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    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

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    india
    Posts
    87
    thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •