#1 (permalink)  
Old 07-09-2009, 04:59 PM
Registered User
 
Join Date: Dec 2003
Location: UK
Posts: 49
chrisbuk
How do you create /home2 on a new secondary HDD

Hi

this server is a virtual machine. i have added a secondary HDD which is 15GB

if i do

Quote:
fdisk -l
I get

Quote:
Disk /dev/hda: 42.9 GB, 42949017600 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 3263 26105625 8e Linux LVM

Disk /dev/hdd: 16.1 GB, 16105807872 bytes
16 heads, 63 sectors/track, 31207 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hdd doesn't contain a valid partition table
how do i format this and make it /home2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 05:23 PM
Registered User
 
Join Date: Apr 2007
Location: Bakersfield, California
Posts: 270
Voltar is on a distinguished road
In WHM you can do it by going to Disk Drives >> Format/Mount a new hard drive. I've never used that before though.

By hand you could do something like.

fdisk the 'drive'
Quote:
fdisk /dev/hdd
(press 'm' for help to see all the options)
press 'n' for a new partition
press 'p' for a new primary partition
partition number 1 (since it'll be the only one on the disk)
use the default first cylinder
use the last cylinder
(it should go back and ask for a command after that)
hit 'p' to show the partition table, if it looks good, hit 'w' to write to disk and exit.

Now format it:
Code:
mkfs.ext3 /dev/hdd1
Then add an entry to fstab for the new partition:

Quote:
/dev/hdd1 /home2 ext3 defaults,usrquota 1 2
And then mount /dev/hdd1.

That should do it.
__________________
.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 05:56 AM
Registered User
 
Join Date: Jun 2007
Posts: 137
logicsupport is on a distinguished road
mount -a , command will help to update the /etc/fstab entries with out rebooting the server
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How setup cpanel on HDD without system HDD divuso cPanel Newbies 2 07-03-2009 06:48 PM
Create accounts in a secondary drive ¿¿?? sh4ka cPanel and WHM Discussions 1 06-04-2007 02:21 PM
Wrong Partions on HDD - reconfigure HDD space KimBO cPanel and WHM Discussions 4 07-27-2005 10:48 AM
move mysql data for 3 site from old hdd to new reloaded hdd. naveen3 Server Management and Server Repair 3 06-18-2005 09:30 PM
I have /home and /home2.. can I backup both to /home2? fog cPanel and WHM Discussions 10 10-27-2002 01:23 AM


All times are GMT -5. The time now is 04:07 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc