LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   no space, what can I delete? (https://www.linuxquestions.org/questions/slackware-14/no-space-what-can-i-delete-4175484769/)

cuphandle23 11-16-2013 03:50 AM

no space, what can I delete?
 
Hello,

I've only got a small hard drive and I need to delete some things so I can get more on. What can I delete?

There's 5GB in the /usr folder

ronlau9 11-16-2013 03:59 AM

What kind of files do have in you're urs/folder
Which distro are you using

cuphandle23 11-16-2013 04:01 AM

Quote:

Originally Posted by ronlau9 (Post 5065537)
What kind of files do have in you're urs/folder
Which distro are you using

adm
spool
tmp
dict
i486-slackware-linux
src
X11R6
X11
libexec
local
sbin
man
info
include
lib
share
doc
bin

Using Slackware 14.0

Madhu Desai 11-16-2013 04:40 AM

Code:

# df -h
# du -csh /usr/* | sort -h

will give some idea...

cuphandle23 11-16-2013 04:50 AM

# df -h

Code:

/dev/sdb1      7.4G  6.7G  406M  95% /
du -csh /usr/* | sort -h
Code:

147M    /usr/libexec
307M    /usr/include
514M    /usr/src
525M    /usr/doc
597M    /usr/bin
1.6G    /usr/share
1.9G    /usr/lib


dchmelik 11-16-2013 05:05 AM

If you still have a little space, or can back up some of your data to other storage (strongly recommended to always do with all your personal data files), then search for and install SBopkg (for unofficial Slackware software, but started and, IIRC still run by some official Slackware team members) set it up, synchronize it with slackbuilds.org, then use SBopkg to install Bleachbit (in the 'system' category) which will delete many unnecessary files from your system.

mreff555 11-16-2013 11:14 AM

How much have you actually installed? I would start by emptying out your home directory. You may have a bunch of junk accumulating in there.

Quite honestly, I wouldn't have chosen slack as a distro for a small hard drive. Don't get me wrong. I really like Slack. It is one of my favorite distrobutions. The problem is that many of the slack builds will not work unless you install nearly all of the packages. Doing so tends to load you up with a LOT of junk which you don't need. Perhaps one of the many Slack guru's around here can recommend a safe way to remove some of this bulk.

DavidMcCann 11-16-2013 11:39 AM

Quote:

Originally Posted by cuphandle23 (Post 5065532)
There's 5GB in the /usr folder

Wow! I've only got 4.7GB in the entire root directory. One thing you could clear out are the surplus video drivers, but I don't know where Slackware puts them. Otherwise, I'd suggest moving to Salix: a full install fits in 3GB.

Madhu Desai 11-16-2013 12:18 PM

Compared to my distro (CentOS 6.4 GNOME Desktop), your /usr seems pretty fat.
Code:

15M        /usr/include
63M        /usr/libexec
108M        /usr/src
281M        /usr/bin
1.5G        /usr/lib
1.7G        /usr/share

If i'am correct, when installing Slackware, it asks - do you want to install all files to hard disk. you probably selected that option.

Anyway, one way to find any fat files could be by executing find command (which i also do often)
Code:

# find / -type f -size +500M 2> /dev/null -exec ls -lh {} \;
You can set minimum size according to your requirment. Review files, and if you dont need them - delete them.

Captain Pinkeye 11-16-2013 01:33 PM

It seems you have performed a full Slackware install, as is recommended, am i right? Big /usr is perfectly normal in that setup, but 7.4 GB partition is really small.

Look up the categories Slackware installation consists of; you can delete stuff you don't use, but you should know (!!) what you're doing and what you're planning to do (for example K is fairly useless unless you don't plan to compile modules or customized kernel).

This thread should be moved to Slackware subforum, so you can get proper advice.

TroN-0074 11-16-2013 03:33 PM

I did a similar installation a while back.
When you do a full installation of Slackware it automatically install KDE and all its applications as well as Xfce and all its applications, and the huge kernel with all the drivers available for Linux you also have the documentation in all languages supported by Slackware perhaps you could remove the documentation and leave it only the one on your native language.

I end up re installing and selecting only Xfce and I also make a different partition just for my home directory so at the end it was like 7GB for my root directory and like 6 GB for my home partition and 1GB for swap. It worked fine after that.

you could repartition your hard drive as an alternative to delete some stuff

Good luck to you

snowday 11-16-2013 03:44 PM

Have you considered simply upgrading your hard drive? You could get a 1TB drive for under $100, put a 100gb / partition (to use a ridiculously large hypothetical) and have 900gb free for other files...

You can probably scavenge an 80gb or 160gb for free out of a computer someone is throwing away...

John VV 11-16-2013 06:49 PM

even a $5 80 gig IDE drive that was on a 2000 computer with XP will have enough space
( that is if you can use a ide drive )

i recently only spent $27 USD on a 32 gig usb3 thumb drive

Andre.Smit 11-16-2013 10:38 PM

You could go into /usr/doc and do:

find . -t file -exec bzip2 -9 {} \;

This will find every file and zip them, should save quite a bit...
This will mean that some programs will not be able to open help files as they are zipped, but you could unzip them if neccesary.

I have done this in the days of small disks and I have deleted /usr/doc on embedded systems...

Regards
Andre

commandline-rules 11-16-2013 11:11 PM

Deleting files is a temporary fix but the issue will arise again when it start running out of space again.

I would opt for a new hard drive either internal or external. Hard drives are cheap these days...


All times are GMT -5. The time now is 10:44 PM.