Re: [gentoo-user] Reducing disk usage

2007-05-07 Thread Troy Curtis Jr

On 4/26/07, Grant [EMAIL PROTECTED] wrote:

I've found myself with a full hard disk and no obvious choices for
reducing usage.  Are there any not-so-obvious ways to free up hard
disk space?

- Grant
--
[EMAIL PROTECTED] mailing list




I don't know if this is *obvious* or not, but you might check your log
directory, /var/log.  I found my disk full one day because of a bunch
of brute force SSH attempts!  ( I was getting pretty close without
them, but they pushed it to the brink!)

Troy
--
Beware of spyware. If you can, use the Firefox browser. - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread Alex Fansky
В сообщении от Thursday 26 April 2007 17:59:19 Grant написал(а):
 I've found myself with a full hard disk and no obvious choices for
 reducing usage.  Are there any not-so-obvious ways to free up hard
 disk space?

 - Grant

eclean-dist can help you.

-- 
Alex V. Fansky
Minsk, BSU


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread Hemmann, Volker Armin
On Freitag, 27. April 2007, W.Kenworthy wrote:


 rm -rf /usr/src/linux* - dangerous, lokk in there first and only remove
 what you are not using (i.e., leave your current kernel, plus one other
 good version as a backup - the number of times Ive had to roll
 back ... :)

emm, no. Not dangerous at all. After you installed your kernel and the 3rd 
party modules, you can safely remove the source-dir. There is nothing in it 
that is needed anymore. And you don't keep old 'backup sources'. Backup 
kernels in /boot are good enough... 
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread Neil Bothwick
On Fri, 27 Apr 2007 12:12:49 +0200, Hemmann, Volker Armin wrote:

  rm -rf /usr/src/linux* - dangerous, lokk in there first and only
  remove what you are not using (i.e., leave your current kernel, plus
  one other good version as a backup - the number of times Ive had to
  roll back ... :)  
 
 emm, no. Not dangerous at all. After you installed your kernel and the
 3rd party modules, you can safely remove the source-dir. There is
 nothing in it that is needed anymore.

Except possibly .config, if you need to update third party modules
against the current kernel, but you'll already have a copy of that
in /boot if you installed the kernel with make install.


-- 
Neil Bothwick

A phaser is the universal communicator. þ Worf


signature.asc
Description: PGP signature


Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread Hemmann, Volker Armin
On Freitag, 27. April 2007, Neil Bothwick wrote:
 On Fri, 27 Apr 2007 12:12:49 +0200, Hemmann, Volker Armin wrote:
   rm -rf /usr/src/linux* - dangerous, lokk in there first and only
   remove what you are not using (i.e., leave your current kernel, plus
   one other good version as a backup - the number of times Ive had to
   roll back ... :)
 
  emm, no. Not dangerous at all. After you installed your kernel and the
  3rd party modules, you can safely remove the source-dir. There is
  nothing in it that is needed anymore.

 Except possibly .config, if you need to update third party modules
 against the current kernel, but you'll already have a copy of that
 in /boot if you installed the kernel with make install.

ls -lh /boot
insgesamt 6,9M
-rw-r--r-- 1 root root  512 22. Jan 2006  backup_mbr
lrwxrwxrwx 1 root root1 20. Apr 2006  boot - .
lrwxrwxrwx 1 root root   27 23. Apr 22:39 config - 
config-2.6.20.7-cfs-v5cfsv5
-rw-r--r-- 1 root root  37K 16. Apr 20:54 config-2.6.20.7
-rw-r--r-- 1 root root  37K 23. Apr 03:17 config-2.6.20.7-cfs-v4cfs
-rw-r--r-- 1 root root  37K 23. Apr 22:39 config-2.6.20.7-cfs-v5cfsv5
lrwxrwxrwx 1 root root   25 23. Apr 03:17 config.old - 
config-2.6.20.7-cfs-v4cfs
drwxr-xr-x 2 root root 1,0K 13. Sep 2006  grub
drwx-- 2 root root  12K 24. Mär 2003  lost+found
drwxr-xr-x 2 root root 1,0K  3. Jan 2005  memtest86
drwxr-xr-x 2 root root 1,0K  1. Feb 21:01 memtest86plus
-rw-r--r-- 1 root root 130K 22. Jan 2006  message
lrwxrwxrwx 1 root root   31 23. Apr 22:39 System.map - 
System.map-2.6.20.7-cfs-v5cfsv5
-rw-r--r-- 1 root root 844K 16. Apr 20:54 System.map-2.6.20.7
-rw-r--r-- 1 root root 844K 23. Apr 03:17 System.map-2.6.20.7-cfs-v4cfs
-rw-r--r-- 1 root root 831K 23. Apr 22:39 System.map-2.6.20.7-cfs-v5cfsv5
lrwxrwxrwx 1 root root   29 23. Apr 03:17 System.map.old - 
System.map-2.6.20.7-cfs-v4cfs
lrwxrwxrwx 1 root root   28 23. Apr 22:39 vmlinuz - 
vmlinuz-2.6.20.7-cfs-v5cfsv5
-rw-r--r-- 1 root root 1,4M 16. Apr 20:54 vmlinuz-2.6.20.7
-rw-r--r-- 1 root root 1,4M 23. Apr 03:17 vmlinuz-2.6.20.7-cfs-v4cfs
-rw-r--r-- 1 root root 1,4M 23. Apr 22:39 vmlinuz-2.6.20.7-cfs-v5cfsv5
lrwxrwxrwx 1 root root   26 23. Apr 03:17 vmlinuz.old - 
vmlinuz-2.6.20.7-cfs-v4cfs

I love make install ;)
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread Grant

 I've found myself with a full hard disk and no obvious choices for
 reducing usage.  Are there any not-so-obvious ways to free up hard
 disk space?

 - Grant

localepurge


Total disk space freed by localepurge: 66836K

Maybe just the edge I needed.  Hope I didn't hose the system.  Thanks everyone!

- Grant
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-27 Thread William Kenworthy
depends:

I have been caught with a non-bootable system a few times and its much
easier to start from an existing config and go from there (After
numerous disasters, I wont use genkernel - even if its supposedly ok
these days)

A (very) few in-tree stuff still seems to want a kernel
(vmware-modules?) - not sure what but these days I always keep the last
two around as Ive been caught in the past.

I also do an occasional ext package - sometimes they want kernel source
code.

So yes, on a basic, user system you dont need it.  But do something out
of the ordinary and its quite handy to keep the source code around...

YMMV
BillK




On Fri, 2007-04-27 at 12:12 +0200, Hemmann, Volker Armin wrote:
 On Freitag, 27. April 2007, W.Kenworthy wrote:
 
 
  rm -rf /usr/src/linux* - dangerous, lokk in there first and only remove
  what you are not using (i.e., leave your current kernel, plus one other
  good version as a backup - the number of times Ive had to roll
  back ... :)
 
 emm, no. Not dangerous at all. After you installed your kernel and the 3rd 
 party modules, you can safely remove the source-dir. There is nothing in it 
 that is needed anymore. And you don't keep old 'backup sources'. Backup 
 kernels in /boot are good enough... 
-- 
William Kenworthy [EMAIL PROTECTED]
Home!
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Reducing disk usage

2007-04-26 Thread Grant

I've found myself with a full hard disk and no obvious choices for
reducing usage.  Are there any not-so-obvious ways to free up hard
disk space?

- Grant
--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] Reducing disk usage

2007-04-26 Thread Nelson, David J
 -Original Message-
 From: Grant [mailto:[EMAIL PROTECTED]
 Sent: 26 April 2007 15:59
 To: Gentoo mailing list
 Subject: [gentoo-user] Reducing disk usage
 
 
 I've found myself with a full hard disk and no obvious choices for
 reducing usage.  Are there any not-so-obvious ways to free up hard
 disk space?
 
 - Grant
 -- 
 [EMAIL PROTECTED] mailing list
 
 

Have a rummage in /usr/portage/distfiles and chuck any that you can.
Also remove old kernel source packages that you dont need? Check in /usr/src/.


--
djn

I do not represent anyone else in emails I send to this list.
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-26 Thread Uwe Thiem
On 26 April 2007, Grant wrote:
 I've found myself with a full hard disk and no obvious choices for
 reducing usage.  Are there any not-so-obvious ways to free up hard
 disk space?

Delete all your music. ;-)

Seriously, get another one.

Uwe

-- 
The Informal Linux Group Namibia:
http://www.linux.org.na
SysEx (Pty) Ltd.:
http://www.SysEx.com.na
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-26 Thread Hemmann, Volker Armin
On Donnerstag, 26. April 2007, Grant wrote:
 I've found myself with a full hard disk and no obvious choices for
 reducing usage.  Are there any not-so-obvious ways to free up hard
 disk space?

 - Grant

localepurge

rm -rf /var/tmp/

using reiserfs

stop using -O3

rm -rf /usr/src/linux*
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-26 Thread fire-eyes

Grant wrote:

I've found myself with a full hard disk and no obvious choices for
reducing usage.  Are there any not-so-obvious ways to free up hard
disk space?

- Grant


I'll agree with the other suggestions which i'll put here:

1) rm -r /var/tmp/portage/* (the /* is important)
2) rm -r /usr/portage/distfiles/*
3) Keep your kernel sources compressed until you need them. This saves 
about 190MB or something:
	cd /usr/src/ ; tar cj linux-`uname -r` -f linux-`uname 
-r`-COMPRESSED.tar.bz2  rm -r linux-`uname -r` obviously you'll 
have to untar and re-delete that tree if you actually need it.


Here's a new one. Once you have more space, IF you have kde, filelight 
is a nice way to see space usage and track it down quickly and see it in 
a great visual format. Be sure to go into its settings, though, and tell 
it to cross filesystem boundaries, and also show small files.


I'll also agree that reiserfs (3) is nice in that by default it packs 
tails, i.e. compresses the ends of blocks. Over a whole system this can 
add up to a few dozen more MB of space usable.

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Reducing disk usage

2007-04-26 Thread Neil Bothwick
Hello fire-eyes,

 1) rm -r /var/tmp/portage/* (the /* is important)

No it's not - if you delete the portage directory, portage will
simply recreate it when it needs it.


-- 
Neil Bothwick

Fer sail cheep, Windows spel chekcer, wurks grate


signature.asc
Description: PGP signature


Re: [gentoo-user] Reducing disk usage

2007-04-26 Thread W.Kenworthy
Watch this one!

I ended up with a seriously broken system after running localepurge -
make sure you have your locale sorted out first!  But it can save quite
a lot of space - pity the system was dead in the water ...

reiserfs is more space efficient than other filesystems like ext2/3
(depending on a lot of things ... YMMV)

-O3 - saves peanuts overall

rm -rf /usr/src/linux* - dangerous, lokk in there first and only remove
what you are not using (i.e., leave your current kernel, plus one other
good version as a backup - the number of times Ive had to roll
back ... :)

rm -rfv /usr/portage/distfiles - after thinking about if you need to
keep these versions, consider if redownloading them wont be a problem
(or write them out to DVD/CD etc.  There are also a couple of distfile
cleaner programs - see the forums.  If you have another machine, look
into http-replicator - highly recommended.

rm -rfv /var/tmp/portage - this can all go - often cruft like crashed OO
builds end up here - can be huge.

run `du /|sort -rn|less` and see where your biggest files/directories
are and see if they can go.

In real tight situations, NFS can help by
putting /usr/portage/distfiles, /var/tmp/portage, etc on other machines
with more diskspace.  I have found this to be very flakey at times
depending on kernel versions, system loads, etc.  Huge builds like OO
rarely finished without a crash or two in the build process :)

Use the -doc useflag and rebuild - this can save over a GB on a large
systems

there have been a number of threads over the years on saving space -
search the forums.

BillK



BillK

On Thu, 2007-04-26 at 17:38 +0200, Hemmann, Volker Armin wrote:
 On Donnerstag, 26. April 2007, Grant wrote:
  I've found myself with a full hard disk and no obvious choices for
  reducing usage.  Are there any not-so-obvious ways to free up hard
  disk space?
 
  - Grant
 
 localepurge
 
 rm -rf /var/tmp/
 
 using reiserfs
 
 stop using -O3
 
 rm -rf /usr/src/linux*
-- 
[EMAIL PROTECTED] mailing list