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.
i am running out of diskspace on / and need to resize it. is there any way to do this directly (without relying on some kind of restore or install cd)? is it possible to do this by booting into single user mode and doing some tricks to unmount the root partition? i've tried this, but it won't seem to let me unmount / (because it is in use). thanks.
i know the gparted cd will work. i've used it before.
like i said, i would prefer to not have to use a live cd to do this if it is possible. i would like to know how to do it easily in the future (rather than digging thru a stack of cds).
The easy way is a Live CD. Don't be ashamed, the pro's use them also as it saves them valuable time (downtime costs money, if it's a large server it'll cost big bucks...) As said, you may win a few MB's by removing orphaned directories (i.e. programs you've removed but the dir's and it's contents remain)
I suggest bookmarking this page: http://www.ss64.com/bash/ Use it as a quick reference on which command you need, then read the man-page of that command for it's options and/or syntax
In this case, try du -h Warning! This will cause your terminal to fill up very quickly! Redirect it to a file, like this: du -h > diskusage.txt Better to sort this mess straight away:
Code:
du -h -k | sort -n -r -o sortedfile.txt
Read the resulting file "sortedfile.txt" with your favorite editor.
You've just witnessed the incredible power of the commandline! Be warned though: if you invoke this command and it encounters a file/directory it doesn't have sufficient rights for, you'll get a lot of errors! (i.e: don't invoke this command as a normal user when outside that user's home-dir )
<edit> I've just realised you've asked explicitely for installed packages, not so much large files as such. Then read the man page for the apt-cache command</edit>
Last edited by Dutch Master; 01-10-2007 at 08:12 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.