Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am asking for help on how to properly mount the extra hard disk space. Here is my situation.

Running fdisk -l, give this result

root@ ~]# fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1058     8393962+  82  Linux swap / Solaris
/dev/sda3            1059        7457    51399967+  83  Linux

But on checking on the directadmin and mount command, i see this result.

/dev/sda1   99M 12M 82M 13% /boot
/dev/sda3   48G 9.4G    36G 21% /

From what I can see, the /dev/sda2 is not mounted. Or in my understanding, I have over 1500GB of space that I cannot used? Am I right with this assumption?

What am i going to do so that the remaining disk space will be seen on directadmin and it can be used for my mysql and domain files? As I have over 1TB of xml files that will be parsed and transfered to mysql database.

Please help me. I am new to this thing. Any help would be appreciated. Thanks.

share|improve this question

1 Answer 1

That's your swap partition; it shouldn't be mounted.

Your missing space is due to the fact that a lot of space on the disk is simply not used by any of the partitions; you'll want to extend your root partition or create a new partition to utilize the space.

share|improve this answer
    
Thanks Shane. So my option eiter to extend the root(sda1) or create a new partition. Which of the two would you recommend(the easiest and secured)? Considering that space should be used for mysql and my php/web files? thanks. (My question maybe dumb. I'm new to this. Please be.) –  Jan Mark Nov 19 '12 at 7:12
    
@JanMark Your root partition is /dev/sda3, not /dev/sda1. –  Michael Hampton Nov 19 '12 at 16:00
    
@JanMark My recommendation during the OS install would have been to mount the extra partition on /var. If you do that now, you're looking at needing to migrate data from the root volume's /var over to the new parition. So, the simplest solution is probably to simply extend sda3 - grab a gparted live CD, boot to it, and expand that partition and filesystem to use the free space. –  Shane Madden Nov 19 '12 at 16:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.