Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-17-2007, 10:42 AM   #1
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Rep: Reputation: 15
Question Resizing Linux Partitions

Hi, i have a problem with my mandriva 2006 web server. I have set it up several mouths ago, but the problem is i have miscalculating the hard drive space for ROOT. One day, that server suddenly stuck, it doesn't responding at all. After i restarting it,it only goes on console (with squid goes down) & couldn't go to startx. The problem as i rad in the LOG, the root has exceeding space quota.

I wonder if there is any way to resizing my mandriva 2006 partition...

Last edited by ovan; 04-17-2007 at 10:44 AM.
Old 04-17-2007, 10:54 AM   #2
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
First, what partition type do you have, ext3 or reiserfs?

You can resize ext3 with the resize2fs command. Make sure you backup first.
Old 04-17-2007, 10:56 AM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
First, do some housecleaning. Clear out browser caches; they accumulate files/icons/etc which uses up disk space.

Then clear out rotated logs in /var/log. Look for logs with .gz or .old extensions. Unless there is compelling reason to keep them, I'd delete them.

Look into /var/spool, /var/tmp, and /tmp for accumulated files that can be deleted.

Then try startx. GUI needs disk space for temporary files in order for the GUI to start. Clearing out unnecessary cache and log files can give you that room.

Then tell us how your disk partitions are organized. Whether or not you can resize the Mandriva partition depends on where the free space is on the disk.
Old 04-17-2007, 12:36 PM   #4
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Original Poster
Rep: Reputation: 15
I have done the clear out for all of those LOGS, still... the system could only work for 3 days max. Meanwhile, the home partitions has plenty of free space. i'd like to enlarge the root partition by reducing home free space.
I'm afraid to use the "resize2fs" command, the chance for system fail is bigger. I've heard about GPARTED software,but i never tried it before, i just knew it from google.
Is there any software such as partition magic on windows to resize, maintain,etc partitions.?
Old 04-17-2007, 12:54 PM   #5
Registered: Nov 2003
Distribution: Debian, Ubuntu, Fedora
Posts: 118

Rep: Reputation: 18
Here's a good tutorial on gparted:
Old 04-17-2007, 01:01 PM   #6
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Original Poster
Rep: Reputation: 15
However, is gparted really reliable for customizing mandriva 2006 partitions.?
Is there any other software for partitions customizing in linux.?

Originally Posted by cseanburns
Here's a good tutorial on gparted:
Old 04-17-2007, 03:57 PM   #7
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I tested out gparted just the other day and it did a great job. I only had a / partition and a swap, I shrunk the / to the left and shrunk swap to the right, created a /home with the free space in between. Then I shrunk /home to the right (moving the beginning of the partition), and expanded the / partition without any problems on Mandrake 10.2.
I also have bootitng which is a boot manager with many flawless partitioning tools, but it is a little more complicated as it can only resize the partitions, the Linux filesystem has to be shrunk/expanded with the resize2fs command.
When it comes to version numbers of software, using CVS, if the version is below number 1 it is still considered unstable, version 1 and above is stable. Gparted is well below number 1, bootitng is at 1.8, bootitng is under the shareware license and comes with a 30 day trial after it is installed for the boot manager features, the partitioning tools don't require you to install it, they can be used from a floppy or CD.
But gparted seemed to work great and not so complicated with native Linux file system.

EDIT: You do not want to change the position of the 1st sector (beginning) of the /boot or / partition depending on whether or not you have a /boot partition with gparted. You can grow the / at the end of the partition no problem.

Last edited by Junior Hacker; 04-17-2007 at 04:01 PM.
Old 04-17-2007, 04:07 PM   #8
Registered: Dec 2006
Posts: 40

Rep: Reputation: 18
yes and yes

GParted is not distribution dependent.

I'd use a live CD like ubuntu or knoppix.

Boot the CD and do the partition resizing from it.

There's QTParted for KDE but I've found it buggy, last thing you need in a partitioning tool!

They are both based on GUIing the command line "parted" and adding in other tools like "fsck" and "fdisk"

Here's a tip for you: the ntfsresize tool for resizing your windows partitions in Partition Magic and Arconis is the same open source tool in GParted, so don't worry about GParted's quality.

Graham (linuxquestions at grahams dot idps dot co dot uk)
Old 04-17-2007, 11:23 PM   #9
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Original Poster
Rep: Reputation: 15
Ok guys... Thanks everybody...
I think i will try the GParted


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
Resizing Linux' partitions. naijin Linux - General 40 01-04-2004 03:33 PM
Resizing Linux Partitions Sociologo Linux - Software 2 10-28-2003 03:13 PM
resizing linux partitions quantumechanix Linux - General 2 09-21-2003 05:10 PM
resizing partitions in linux jimieee Linux - Software 1 09-03-2003 12:41 PM
REsizing the Linux partitions noname Linux - Software 9 08-01-2002 01:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 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