How to mount second hard drive in CentOS 5.x | MyLiteratureTechLife.COM

How to mount second hard drive in CentOS 5.x

August 14th, 2009 3 Comments






















I was trying to mount second drive in my server which was connected via usb, so I thought to post it here as well

Run
# fsdisk -l
to see the list of drives in server..
second drive will most probably will be sdb
1) Make its partition

# fdisk /dev/sdb
press n
press p
press w

2) format drive with ext3

# msfck -t ext3 /dev/sdb1

3) Now make directory where you want to mount it

# mkdir /disk2

4) mount drive

# mount /dev/sdb1 /disk2

5) Edit fstab so that drive will mount after reboot

put enter

/dev/sdb1 /disk3 ext3 default 0 1

And enjoy icon smile

No related posts.

 

If You Like This Post, Share it With Your Friends & Peers

Digg
stumbleupon
Delicious
facebook
twitter
reddit
rss feed bookmar
 

3 Comments to “How to mount second hard drive in CentOS 5.x”

  1. [...] 1) Find out mount point of secondary drive.  If drive is not mounted yet then you can get help from article “How to mount drive in CentOS” [...]

  2. Randy says:

    Thanks, out of all the stupid places that couldnt give me a good answer of doing this. Yours is the best thank you!

  3. Johan says:

    Good help, worked for me to thanks.

Leave your comment here:

*

Alexa Rank