LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make more Space. (https://www.linuxquestions.org/questions/linux-newbie-8/make-more-space-712110/)

opnine 03-16-2009 08:22 PM

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

AlucardZero 03-16-2009 08:27 PM

Is it a logical volume? Post the output of df -h

opnine 03-16-2009 08:28 PM

No is an ext3.

Thanks

Quakeboy02 03-16-2009 08:44 PM

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.

opnine 03-16-2009 08:46 PM

The partition is "/"

Regards

opnine 03-16-2009 08:49 PM

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

John VV 03-16-2009 10:39 PM

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"

Quakeboy02 03-17-2009 12:38 AM

Given the size of the hard drive, I'd put everything in "/"; i.e. only one partition.

ic_torres 03-17-2009 12:50 AM

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

AlucardZero 03-17-2009 11:44 AM

You can only add more space to it by doing a reinstall of the system.

Quakeboy02 03-17-2009 12:19 PM

Quote:

Originally Posted by AlucardZero (Post 3478396)
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.

John VV 03-17-2009 01:09 PM

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

Quakeboy02 03-17-2009 01:14 PM

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.

opnine 03-18-2009 04:34 AM

Thanks all i will make a full reinstall.


Regards


All times are GMT -5. The time now is 02:29 AM.