I am asking for help on how to properly extend the size of partition 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 df -l command, i see this result.
/dev/sda1 99M 12M 82M 13% /boot
/dev/sda3 48G 9.4G 36G 21% /
How am i going to extend the size of sda3 partition to add the extra/unallocated 1500GB disk space. Need the disk space to store xml files that will be parsed and transferred to mysql database.
Please help me. I am new to this thing. Any help would be appreciated. Thanks.
Modifications: I have read this article to resize a partition http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-disk-storage-parted-resize-part.html. However, I was not able to clearly understand the steps. Please help me with how to do the ff:
-unmount any partitions(am I going to unmount the boot and root partition?)
-turn off the swap space - ok (http://techie-buzz.com/foss/ubuntu-enable-disable-swap-partition.html)
-minor number - ok (http://www.centos.org/docs/4/4.5/System_Administration_Guide/Standard_Partitions_using_parted-Viewing_the_Partition_Table.html)
-the starting place in megabytes, and the end place in megabytes
-and complete `resize` command to use.
Guys, I was able to research some commands to resize and identify the parameters but I'm not sure if it is correct. Here it is:
parted /dev/sda
print
resize 3 8702 200000
Please tell me if the above commands will be alright. I'm running on CentOs 5. ext3 filesystem for sda3 and 200GB of hard disk.
Thanks