Download your favorite Linux distribution at LQ ISO.
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 07-29-2004, 10:59 PM   #1
LQ Newbie
Registered: Aug 2003
Location: everywhere...
Distribution: slackware 10
Posts: 20

Rep: Reputation: 0
need help resizing an ext3 partition with an underlying partition...

this is a serious problem. I have redhat installed with the main partition having an underlying partition for swap space. problem is I ran totally out of space, and nothing is working properly now. I cant start up X or anything! I can make it smaller, but I cant make it any larger, and I have 2 gigs free on my hard drive.

please, how can I add this space to my partition? am I going to have to do a fresh install, because I dont want to lose everything.

thanks in advance.
Old 07-30-2004, 01:21 PM   #2
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Unless you use some partitioning software, you can't really resize an existing partition. You can, however, add the extra 2G as a new partition and mount it somewhere on your linux filesystem (presuming the space is unused, and not part of an existing partition).

I'm guessing you installed everything into one Linux partition under /, and that is the one that is full?

You'll need to boot from a Linux CD that will allow you to get to a command prompt. You can use a Local Area Security LiveCD to boot from if you need one ( Find which partitions are full with the command "df -h", and then within those partitions, find which directories might fit into the 2G partition with the command "du -h --max-depth=1". It will probably be a directory like /var or /usr that is taking up the most space. If any of those directories will fit into the extra partition space, then you can copy (or move) all the data from the main partition to the new partition. Then edit your /etc/fstab and tell it to mount the new partition into /var, or /usr, whichever you are doing.

DISCLAIMER: I have not done this myself, but it should work this way. Of course, make sure you back up your files in case something does happen during this process.

A second option, is while in the LiveCD, use the df and dh commands and see if you can delete enough files to make it bootable.


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/reformatting ext3 partition mark.johnson Linux - Hardware 3 04-25-2005 02:48 PM
Resizing Ext3 partition to replace XP Sigmund Linux - General 7 01-26-2005 11:48 AM
Resizing a running Ext3 partition Dee-ehn Linux - Software 11 01-24-2005 06:38 PM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 05:17 PM
Resizing EXT3 partition using parted??? Hegemon Linux - General 1 01-21-2003 01:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 PM.

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