LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Increase partition size (https://www.linuxquestions.org/questions/linux-newbie-8/increase-partition-size-695738/)

bmstephan 01-07-2009 10:57 PM

Increase partition size
 
I have a linux box with CentOS 5 on it

I have run out of space on a partition and i cant see how to increase it

Please see below (i have looked at parted and lvm - but i dont think i have logical drive setup) - i have also tried gparted, but it couldbt installed with CentOS 5 - is it possible to do this without moving data - I have 5GB extra on VM which i want to add to dev/sda2

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 4061572 2616216 1235708 68% /
/dev/sda5 1019208 233852 732748 25% /usr/local
/dev/sda2 3960348 3482108 273816 93% /usr/local/groundwork
/dev/sda1 101086 11115 84752 12% /boot
tmpfs 517636 0 517636 0% /dev/shm


I have added extra disk space - but i dont know how to increase the volume of that partition

can this be done?

please help


i have run some commands here for you to look at


[root@gwrkvm ~]# fdisk -l

Disk /dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 797 1305 4088542+ 83 Linux
/dev/sda3 14 535 4192965 83 Linux
/dev/sda4 536 796 2096482+ 5 Extended
/dev/sda5 536 666 1052226 83 Linux
/dev/sda6 667 796 1044193+ 82 Linux swap / Solaris

Partition table entries are not in disk order



[root@gwrkvm ~]# cat /proc/partitions

major minor #blocks name

8 0 15728640 sda
8 1 104391 sda1
8 2 4088542 sda2
8 3 4192965 sda3
8 4 1 sda4
8 5 1052226 sda5
8 6 1044193 sda6



[root@gwrkvm ~]# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 3.9G 2.5G 1.2G 68% /
/dev/sda5 996M 229M 716M 25% /usr/local
/dev/sda2 3.8G 3.4G 268M 93% /usr/local/groundwork
/dev/sda1 99M 11M 83M 12% /boot
tmpfs 506M 0 506M 0% /dev/shm

syg00 01-07-2009 11:17 PM

Get the liveCD for gparted - looks like it should be do-able relatively easily.

bmstephan 01-08-2009 11:09 PM

thanks for that

i have downloaded the gparted livecd iso but cant get it to run

because this is a VM - i have mounted the iso but when i boot - it doesnt show in the menu

am i missing something - should i be using the md5sums???

bmstephan 01-08-2009 11:31 PM

please ignore my last post - i booted to the cd

i extended the partition no problem - no data loss

that is a great tool

thanks for youe help


All times are GMT -5. The time now is 01:36 AM.