DebianThis forum is for the discussion of Debian Linux.
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.
Hello people. I am very new to Linux and to forums.
My problem: 1GB-capacity dev SDA1 got filled up to 100% and made system unusable in less than one month. No downloads or updates were made during this period of time.
I don't know which files/programs would be safe to delete since it all seem to be system files.
Anybody knows why it's happening? And how I can clean it up?
Here is a screen-shot that might shed some light on what is happening
1 Gig is small for a linux installation. If you have a kernel source, that's about 400 Megs clean and 600 megs compiled. Likewise gnome, & kde are absolutely out of the question. Then depending on how you're set up, there could be log files mushrooming in /var/log. I use 15 or 20 Gig partitions per system, and fill about half of them. I also have one for /home. That's without music or video files of any size. If /home is in the 1 gig, it's hopeless.
I had a system running on a partition of 250 megs once, but it had no X-windows.
Is there a way to increase SDA1? But for this I'd need to make one of the others smaller. Is it possible to do?
For an expert with Linux booted from a liveCD, that is all trivial.
Without booting Linux from a liveCD, it is near impossible. So the first question (since someone else installed Linux for you) is do you have a bootable Linux CD (or usb stick or other bootable media). If not, you'll need to get one (download and burn CD) before we can help much.
Once you have Linux bootable on something other than the hard disk itself, we can translate the info from the fdisk output (that pixellany asked for) into instructions a non expert could follow for fixing the partitioning.
Here is a screen-shot that might shed some light on what is happening
I think that covers everything we wanted to see from fdisk -l
You need to shrink/move at least one logical partition inside the extended partition, then shrink the extended partition, then expand sda1.
The swap partition is inside the extended partition, so if you boot from a typical liveCD that automatically uses any available swap partition, you'll need to make it stop using the swap before shrinking the extended partition.
I think, after booting the liveCD, the following command (as root) would stop the liveCD's use of the swap partition
swapoff -a
You still didn't tell us whether/which liveCD you have or what other media you might use if there is a reason not to use a liveCD.
I think that covers everything we wanted to see from fdisk -l
You need to shrink/move at least one logical partition inside the extended partition, then shrink the extended partition, then expand sda1.
The swap partition is inside the extended partition, so if you boot from a typical liveCD that automatically uses any available swap partition, you'll need to make it stop using the swap before shrinking the extended partition.
I think, after booting the liveCD, the following command (as root) would stop the liveCD's use of the swap partition
swapoff -a
You still didn't tell us whether/which liveCD you have or what other media you might use if there is a reason not to use a liveCD.
I just called the person who installed the system for me. He said I can borrow CD tonight. When I pick it up {CD}, I'll be able to answer this question.
From what I was reading till now, it's not possible to shrink a partition. Only delete it and then re-create after increasing the size of SDA1. Is it not so?
Sounds a little complicated (to a clueless newbie...)
The system was installed by professional (or so I thought).
Professional doesn't really imply competent.
This partitioning certainly doesn't suggest competence.
In addition to very poorly chosen sizes, the whole idea of splitting things out that far is usually bad. If you don't understand a reason to split things, you probably don't have a reason. That especially applies to nonsense like splitting /usr off from /
Shifting partition sizes using a liveCD (as I suggested above) would be the least disruptive repair.
If there is a good reason to reject that choice, and expert could also improve this mess by re purposing an existing partition as the new /.
Even while booted on this system (no liveCD or equivalent required) it would be possible to re purpose the existing /usr or /tmp partition as a new / partition and then fix the boot code to enable it on next reboot. But that would require some expert attention to detail.
/tmp would be slightly easier to re purpose as / (using a tmpfs instead of a partition as the new /tmp).
/usr would be better to re purpose as a new / including /usr as a subdirectory. But trickier to transition there while booted only on the OS that you're changing.
In case some other expert could help but finds it even harder to read that screen shot than I did. It says:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.