Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
My root ran out of space, and I have no more space on my hard drive. Is there any way possible to resize partitions without losing data?
Code:
/dev/hd1/ /boot 32M
/dev/hd2/ <swap> 512M
/dev/hd3/ / 600M 100% used
/dev/hd5/ /home 4.6G 24% used
/dev/hd6/ /tmp 512M 4% used
/dev/hd7/ /usr 9G 29% used
/dev/hd8/ /usr/local 4.6G 46% used
It's a 20 gig HD. I guess I can move some of that from the '/usr' but I haven't added the 3 gigs of mp3's I have on this machine yet :/ Is there a way to move space without losing anything?
Also, my has only used 8% of Inodes. Is that good, bad, or what? It seems like something ate that space up fast, but I haven't the faintest clue :/
You can't resize the partition if an OS is running on it. I would recommend you clean out your "/" partition. If all else falls, but all your essential information to a CD and resize your disk appropriatly. Inodes are spots that files can exist. 1 file = 1 Inode. 8% isn't bad at all.
If you want to try to find files of a certain size to delete, use:
find / -size +1024k -print
This will search your / partition for files over 1MB (1024k).
Another useful command for finding where space is being taken up is to run:is
du -hs `ls`
It will give you the total space taken up by each directory. Once you know where which directory is taking up the space you can either move the files, move the directory and symlink it like Tinkster suggested or perhaps move /tmp to your / partition and make what was your /tmp into whatever is taking up the space like /var
Also, if you're using swaret to keep your slackware up-to-date, then you probably have a lot of already installed packages in /var/cache/swaret. Do a swaret --purge to get rid of 'em.
The reason why I noticed my root was full was because I couldn't get on start my X server, KDE. I still can't. I ran 'xwmconfig' and switch my XServer to Flubbox. Everything works fine :/ So it has to be an issue with KDE. I do get a message saying a bunch of files in the 'KDE/Libs/' directory are too small or truncuated. What could be the cause of this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.