Centos – Root file system is full and I need to install additional software.

centoscentos5filesystemspartition

I am trying to install to install EPEL Repository on CentOS 5.7.

I still have lots of space available on my hard drive.

/dev/sda2             3.9G  3.9G     0 100% /
/dev/sda11             17G  2.9G   13G  19% /extra
/dev/sda10            996M   44M  901M   5% /logs
/dev/sda9             2.0G  670M  1.2G  36% /applications1

I just want to use some space from /extra so I can install mysql 5.5.20. Since I don't have physical access to this machine I cannot use CD and make partitions. There is no important data on this machine.

What is the safest way to do this.

This is the output of partition table

Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 75.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      32.3kB  107MB   107MB   primary   ext3         boot
 2      107MB   4401MB  4294MB  primary   ext3
 3      4401MB  6547MB  2147MB  primary   ext3
 4      6547MB  75.2GB  68.6GB  extended
 5      6547MB  28.0GB  21.5GB  logical   ext3
 6      28.0GB  49.5GB  21.5GB  logical   ext3
 7      49.5GB  51.6GB  2147MB  logical   linux-swap
 8      51.6GB  53.8GB  2147MB  logical   ext3
 9      53.8GB  55.9GB  2147MB  logical   ext3
10      55.9GB  57.0GB  1077MB  logical   ext3
11      57.0GB  75.2GB  18.1GB  logical   ext3

Best Answer

To be honest, you're going to be stuck here until you free up some space on /, or until you think of a way to chroot yourself in /extra. There are guides floating around on the internet on how to do that, since I've never actually done this myself.

That said, if you're using LVMs, you could resize / so that it's big enough to install some things on. However I don't think your setup has an LVM.

Also, I don't believe Yum can do relocatable packages (at least I've never needed to, someone feel free to correct me), and in this case it wouldn't matter until you at least free some space up on /. You could do a du -sch / to find begin finding out which directories you can delete from, though I don't think this would help since your / partition is small enough to presume that it's a basic install with a GUI on top.