Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently as you can see my root partition is fully utilised, is there any ways i can reduce by deleting some files in my root partition or by incresing my root partition size? Below is the content under root partition : -
[root@fosters /]# ls -lrt
total 146
drwxr-xr-x 2 root root 4096 Aug 13 2004 srv
drwxr-xr-x 2 root root 4096 Aug 13 2004 mnt
drwxr-xr-x 2 root root 4096 Aug 13 2004 initrd
drwxr-xr-x 2 root root 4096 Jul 10 2006 selinux
drwxr-xr-x 3 root root 4096 Jul 10 2006 opt
drwx------ 2 root root 16384 Jul 10 2006 lost+found
drwxr-xr-x 2 root root 4096 Jul 12 2006 misc
drwxr-xr-x 25 root root 1024 Jul 28 2006 var
drwxr-xr-x 23 root root 4096 Sep 27 2006 usr
drwxr-xr-x 11 root root 4096 Jan 12 10:49 lib
drwxr-xr-x 2 root root 4096 Jan 26 20:17 bin
drwxr-xr-x 4 root root 1024 May 8 15:13 boot
drwxr-xr-x 4 root root 4096 May 8 15:20 media
dr-xr-xr-x 217 root root 0 May 8 23:17 proc
drwxr-xr-x 9 root root 0 May 8 23:17 sys
drwxr-xr-x 2 root root 12288 May 9 04:02 sbin
drwxr-xr-x 92 root root 12288 May 9 08:40 etc
drwxr-xr-x 9 root root 6880 May 9 09:27 dev
drwxr-x--- 19 root root 4096 May 9 09:27 root
drwxrwxrwt 12 root root 1024 May 9 09:33 tmp
drwxr-xr-x 27 root apache 4096 May 9 09:38 home
[root@fosters /]#
Need you advice on how to clean up some unwanted files or to increase the partition size..
The partitions that tend to be the largest, such as /usr are already mounted elsewhere. Why don't you look at /opt and /lib and see how much space they use.
You might also scan through the Linux Filesystem Hierarchy Standard ( it's on the www.tldp.org website. ).
Some of the partitions like /usr, you may be able to mount read-only.
Looks like it's LVM, why not use it like it was designed.
Add another partition/disk to that vg, then extend the lv.
If you had to, you could reduce /home and add it to the root. Can get ugly depending on the filsesystem involved.
There is a howto on tldp - handy site in lotsa ways.
Thanx for your advice. Can you guide me how to do this as i m not good when it comes to partitioning in linux. I dont mind taking 5GB from /home partition adding into the root partition. How to do this without facing any catasthrophy?
Thanx a million.
Cheeers,
xyleo
Quote:
Originally Posted by syg00
Looks like it's LVM, why not use it like it was designed.
Add another partition/disk to that vg, then extend the lv.
If you had to, you could reduce /home and add it to the root. Can get ugly depending on the filsesystem involved.
There is a howto on tldp - handy site in lotsa ways.
Nope - you'll be much better off going here.
Seems to cover everything you should need by people who know what they are talking about. I don't use LVM - keep meaning to, never got to it for various reasons.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.