LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-16-2009, 08:22 PM   #1
opnine
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
Make more Space.


Hi all,


I have a red hat 5 and the partition "/" is going out of space this is an ext3. how can i add more space to it?


thanks all
 
Old 03-16-2009, 08:27 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
Is it a logical volume? Post the output of df -h
 
Old 03-16-2009, 08:28 PM   #3
opnine
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
No is an ext3.

Thanks
 
Old 03-16-2009, 08:44 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

Rep: Reputation: 126Reputation: 126
If there is one particular directory that is large and growing, then copy that to a new disk, change the names as appropriate, mount the disk, and remove the old directory that you renamed.
Code:
fdisk /dev/sdc1
mkfs /dev/sdc1
mv /something /xxx
mkdir /something
mount /dev/sdc1 /something
cp -ax /xxx/ /something
Or something similar in concept. You may need to do it from a liveCD, depending on what directory it is.
 
Old 03-16-2009, 08:46 PM   #5
opnine
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
The partition is "/"

Regards
 
Old 03-16-2009, 08:49 PM   #6
opnine
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
This are my partitions
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 965M 844M 72M 93% / --------->i need to make this one bigger
/dev/sda7 965M 624M 293M 69% /home
/dev/sda5 4.8G 1.2G 3.4G 25% /var
/dev/sda3 9.5G 2.6G 6.5G 29% /usr
/dev/sda1 190M 16M 165M 9% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
 
Old 03-16-2009, 10:39 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
that IS a problem " 965M" should be about 9 gig

back up your data to dvd or a different drive and reformat that one

my cent 5.2 is
/boot 78 meg
/ 10 gig
/home 5 gig
/usr/opt ( data share with fedora 160 gig )

---
you DO NOT need a separate partition for " /var " and "/usr"
 
Old 03-17-2009, 12:38 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

Rep: Reputation: 126Reputation: 126
Given the size of the hard drive, I'd put everything in "/"; i.e. only one partition.
 
Old 03-17-2009, 12:50 AM   #9
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
if you have a space left you can make that your second / partition. . (i think) just copy all the files of your current / partition to the new one
 
Old 03-17-2009, 11:44 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
You can only add more space to it by doing a reinstall of the system.
 
Old 03-17-2009, 12:19 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

Rep: Reputation: 126Reputation: 126
Quote:
Originally Posted by AlucardZero View Post
You can only add more space to it by doing a reinstall of the system.
No, I think he has enough room to move things around and get more space, but it's an aggravation and has to be done on a liveCD.
 
Old 03-17-2009, 01:09 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
but a reinstall and repartitioning is SO much faster and easier than trying to resize the existing partitions ON A RUNNING and working system .
and with resizing the partitions there is NO guaranty that the system will even be bootable afterwords .

the reinstall and reformatting is by far the safest , once all the data is backed up to dvd or diff. hdd
 
Old 03-17-2009, 01:14 PM   #13
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

Rep: Reputation: 126Reputation: 126
I was referring to moving "/" into "/usr" but keeping the other partitions. But, yes, the system is so misconfigured that a reinstall would be best.
 
Old 03-18-2009, 04:34 AM   #14
opnine
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks all i will make a full reinstall.


Regards
 
  


Reply


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
make partition on free space sohail0399 Linux - Newbie 3 10-29-2008 04:24 AM
(Korn Shell/POSIX) want to make sure last character in line is a space quadmore Programming 2 09-08-2008 09:57 AM
How to make Linux work around DMA memory space? gene.taylor Linux - Hardware 1 03-14-2007 11:38 PM
out of space on hd - how do I make more? inthedeepend Linux - General 7 10-12-2003 08:00 PM
/var file space too low need to make it larger hoodman10 Linux - Newbie 1 11-25-2002 06:23 PM


All times are GMT -5. The time now is 11:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration