Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I see that /dev/md2 (/home) has too space, and the partition /dev/md1 (/) has only 5 gb.
I would set more space for md1, how can i do it? And how much time it will take to do it? And i will lost files?
My OS is Debian 5.0.3
Kernel : 2.6.32.2-xxxx-grs-ipv4-64
Your "root" filesystem is full. You need to:
a) Find the files that are hogging the most space
b) Delete them or move them to a different filesystem (like /dev/md2)
Worst case, you might need to:
a) take a backup
b) reinstall (with a different partition scheme)
c) restore from backup
You might also want to consider using LVM (Logical Volumes), which makes it easier to manage your disk.
But for now, please identify where the space is being used, and please post back.
I found the big files, and they were into var/www/...
the problem is that the folder / has only 5 GB, and now this folder is full.
The folder /home instead has the rest of the hd, that is 995 GB and a some GB for SWAP.
I decided, for the moment, to resize the partitions using PARTED. I installed it and my situation is this:
Code:
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 5370MB 5369MB primary ext3 boot, raid
2 5370MB 1000GB 994GB primary ext3 raid
3 1000GB 1000GB 538MB primary linux-swap
So i ran parted to resize, but i had an error, i think because i need to unmount:
Code:
(parted) resize 1
Start? [1049kB]?
End? [5370MB]? 512000MB
Error: File system was not cleanly unmounted! You should run e2fsck. Modifying
an unclean file system could cause severe corruption.
Is this correct? Or i'm going to do something wrong?
Now i have to go to rescue mode, unmount the partition and run parted again for resize? Possible?
It will parted run while rescue mode is active?
Device Boot Start End Blocks Id System
/dev/sda1 * 1 653 5242880+ fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 653 121536 970990592 fd Linux raid autodetect
/dev/sda3 121536 121601 525536 82 Linux swap / Solaris
What i want to do is to resize sda1 to 500 GB, resize sda2 to 490 GB, and resize swap to 10 GB.
So while it's in rescue mode, i'll unmount with (as your link says): umount /dev/sda1 umount /dev/sda2 umount /dev/sda3
then run e2fsck (but i'll lose my files or not whit this???): e2fsck -f /dev/sda1 e2fsck -f /dev/sda2 e2fsck -f /dev/sda3
then run parted:
parted /dev/sda resize 1 0 500GB
and do this also for the other partitions....
There's no reason to run e2fsck on /dev/sda3 since it is a swap partition. But, definitely run it on the other two. You shouldn't lose any files with e2fsck unless the file was already corrupted and you were going to lose it anyway.
And since it is the /var/www that is the issue to begin with, you know a better way to handle it might be to put /var/www on it's own partition. In fact, if you check what I wrote to lutusphere, I came up with a general recommendation on how to partition a basic OS drive in linux. And, for your situation, I would recommend splitting the space you are going to use for /home in my recommendation into both /home and /var/www if you are going to run a webserver from the system. Websites have a tendency to grow before you know it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.