Saturday, February 18, 2012

Add New HDD to Red Hat Linux

You can add new HDD to Linux when it is off and it gets detected after it is ON.  However, configuring a new HDD is a bit different on Linux then in Windows, however, if we compare the GUI, the options are are simple, like Disk Management in Windows, we use Disk Utility for this purpose. Below process is on how to do it with CLI:

Firstly, check if the new HDD is detected, example by running Fdisk, you will see sdb, (sdx where x is a,b,c etc stating the number of HDD).  We can also see for a device name in ‘/dev/’ folder.  Example like in below:

New HDD in CLI

or

New HDD in dev

To first make the disk usable, we need to convert it to a MSDOS HDD type and this can be achieved by:

mktable

i.e:

parted /dev/sdb

mktable

Now, your HDD is ready for use, just use mkpart or mkpartfs for creating partitions.

No comments:

Post a Comment