Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-29-2009, 02:09 PM   #1
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
How to increase partition size?


My Linux virtual machine running on XEN and increased 1GB hard disk space.

Current snapshot:

[root@linuxtest01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 6.8G 2.3G 4.2G 36% /
/dev/hda5 3.0G 69M 2.7G 3% /tmp
/dev/hda2 6.8G 3.6G 2.9G 55% /var
/dev/hda1 251M 16M 222M 7% /boot
tmpfs 496M 0 496M 0% /dev/shm
[root@linuxtest01 ~]#

Parted command output is showing the added 1GB space:

[root@linuxtest01 ~]# parted
GNU Parted 1.8.1
Using /dev/hda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print

Model: QEMU HARDDISK (ide)
Disk /dev/hda: 22.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 271MB 271MB primary ext3 boot
2 271MB 7789MB 7518MB primary ext3
3 7789MB 15.3GB 7518MB primary ext3
4 15.3GB 21.5GB 6161MB extended
5 15.3GB 18.5GB 3224MB logical ext3
6 18.5GB 20.7GB 2147MB logical linux-swap


How to add the extra 1GB space to / (root) partition (i.e. /dev/hda3)? Please guide me.

Thanks in advance.
Old 09-29-2009, 03:26 PM   #2
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Originally Posted by Uday123 View Post
How to add the extra 1GB space to / (root) partition (i.e. /dev/hda3)?
I recommend that you boot your VM from System Rescue CD. The process should be similar to however you installed Linux on your VM, assuming you installed from a CD-ROM or an ISO. I have never used XEN, so I cannot give you the exact steps.

Once you have booted System Rescue CD, use partimage to create an image of each partition (except the swap partition). Then create a new VM with the desired hard drive size. Boot the new VM using System Rescue CD and use partimage to restore the image. When you reboot the VM, you should see a larger hard drive.
Old 01-22-2010, 02:27 AM   #3
LQ Newbie
Registered: Jan 2010
Location: Bangalore
Posts: 3

Rep: Reputation: 0
how to increase the file system on RHEL5?
how to implement the cluster technology on RHEL nodes?
Old 01-24-2010, 07:28 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,198

Rep: Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310
Do not hijack this old thread. Start a new one per qn.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Increase / partition size Uday123 Linux - Software 1 09-30-2009 12:58 AM
Increase Partition Size shifflav Linux - Newbie 5 02-26-2009 09:09 PM
Increase partition size bmstephan Linux - Newbie 3 01-08-2009 11:31 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Increase Partition Size shane200_ Linux - Hardware 1 08-24-2006 12:06 PM

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

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