-   Linux - Newbie (
-   -   Add HDD (

ust 08-20-2012 11:30 PM

I have just plug a new HDD to the server , can advise who can I mount it to my Redhat 4 server ?


evo2 08-21-2012 02:51 AM


to mount it if you need to know the device name and it needs to have a filesystem.
You should be able to see the device the list option with fdisk. Ie, as root

fdisk -l
If this is a "new" disk you'll have to decide how you want to partition it and what filesystem you want to put on it.

You can make partitions with fdisk or cfdisk (or many others), and you can format the parition(s) with commands like mkfs.ext3, mkfs.ext2 etc.

Once you have done that you can mount it with the mount command, and you can also setup your system to automatically mount it by putting an entry in your /etc/fstab. For example if your new disk is sdc and you and it contains one ext3 partition, you could automatically mount it at /data with the following line in your /etc/fstab

/dev/sdc1      /data          ext3    defaults        0      2
If you have not done so already googling for something like "linux new disk howto" should provide useful information.


All times are GMT -5. The time now is 05:21 AM.