LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-29-2004, 09:59 PM   #1
spiroth10
LQ Newbie
 
Registered: Aug 2003
Location: everywhere...
Distribution: calculate
Posts: 21

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, 12:21 PM   #2
shubb
Member
 
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 (http://www.localareasecurity.com). 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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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