LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-16-2013, 03:50 AM   #1
cuphandle23
LQ Newbie
 
Registered: Oct 2013
Posts: 15

Rep: Reputation: Disabled
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
 
Old 11-16-2013, 03:59 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What kind of files do have in you're urs/folder
Which distro are you using
 
Old 11-16-2013, 04:01 AM   #3
cuphandle23
LQ Newbie
 
Registered: Oct 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ronlau9 View Post
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
 
Old 11-16-2013, 04:40 AM   #4
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 479

Rep: Reputation: 132Reputation: 132
Code:
# df -h
# du -csh /usr/* | sort -h
will give some idea...
 
Old 11-16-2013, 04:50 AM   #5
cuphandle23
LQ Newbie
 
Registered: Oct 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
# 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
 
Old 11-16-2013, 05:05 AM   #6
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 194

Rep: Reputation: 21
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.
 
1 members found this post helpful.
Old 11-16-2013, 11:14 AM   #7
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 11-16-2013, 11:39 AM   #8
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,942

Rep: Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767
Quote:
Originally Posted by cuphandle23 View Post
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.
 
1 members found this post helpful.
Old 11-16-2013, 12:18 PM   #9
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 479

Rep: Reputation: 132Reputation: 132
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.
 
Old 11-16-2013, 01:33 PM   #10
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 171

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 11-16-2013, 03:33 PM   #11
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,384

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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
 
1 members found this post helpful.
Old 11-16-2013, 03:44 PM   #12
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,907

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
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...
 
1 members found this post helpful.
Old 11-16-2013, 06:49 PM   #13
John VV
Guru
 
Registered: Aug 2005
Posts: 12,601

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
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
 
1 members found this post helpful.
Old 11-16-2013, 10:38 PM   #14
Andre.Smit
LQ Newbie
 
Registered: Nov 2013
Location: Bronkhortspruit
Distribution: SuSE - Kubuntu - OpenWRT
Posts: 20

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 11-16-2013, 11:11 PM   #15
commandline-rules
LQ Newbie
 
Registered: Nov 2013
Posts: 6

Rep: Reputation: Disabled
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...
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Split disk space and not delete the files ytyyutianyun Linux - Newbie 11 12-10-2011 06:55 AM
zero disk space left even if i delete files wakkana12 Slackware 13 09-07-2010 09:56 AM
What to Delete to Clear Disk Space? PatrickW Linux - Newbie 5 05-03-2008 01:59 PM
save space and delete old packages ctagg Linux - Newbie 1 03-14-2005 04:33 PM
Can't delete directory with space in name budhead Linux - Software 3 09-15-2004 10:57 AM


All times are GMT -5. The time now is 12:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration