LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2009, 10:57 PM   #1
bmstephan
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
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
 
Old 01-07-2009, 11:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Get the liveCD for gparted - looks like it should be do-able relatively easily.
 
Old 01-08-2009, 11:09 PM   #3
bmstephan
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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???
 
Old 01-08-2009, 11:31 PM   #4
bmstephan
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
how to increase the size of a partition with data on it hlenderk Linux - General 5 02-24-2008 01:16 PM
Increase Partition Size shane200_ Linux - Hardware 1 08-24-2006 12:06 PM
how to increase the size of home partition srnerkar1 Linux - Software 1 12-05-2005 05:28 AM
Increase Partition Size RedHat 7.0 capam2k2 Linux - Software 3 10-05-2002 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration