Re: [gentoo-user] Re: Reducing disk usage

2007-05-07 Thread Alan McKinnon
On Saturday 05 May 2007, [EMAIL PROTECTED] wrote:
  Surely you meant move the /tmp, /usr and /var to the / partition?

   Let me rephrase myself...
   - *PHYSICALLY* moving /tmp /usr and /var to the /home partition.
   - bind mount (or symlink) these directories to the / partition

OK, I see what you mean. Personally, I would have done it slightly 
differently:

- create a partition with /home, /usr, /tmp, /var directories
- mount this somewhere, say /stuff
- mount -o bind /stuff/home /home
- etc ...

But that's because I know myself and I know if I did it your way I'd 
confuse the dickens out of myself three days later when finding a usr/, 
var/, tmp/ inside /home. It seems that human memory is like those Flash 
NAND things - it deterioriates with age, hehehe :-)

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Reducing disk usage

2007-05-04 Thread waltdnes
On Fri, May 04, 2007 at 09:15:47AM +0200, Alan McKinnon wrote
 On Friday 04 May 2007, [EMAIL PROTECTED] wrote:
  I accomplish this by moving /tmp /usr and /var to the /home
  partition.
 
 Surely you meant move the /tmp, /usr and /var to the / partition?

  Let me rephrase myself...
  - *PHYSICALLY* moving /tmp /usr and /var to the /home partition.
  - bind mount (or symlink) these directories to the / partition

 It won't work moving them to /home unless you put symlinks in and
 that would just be ... odd

  It may be odd, but it gets the job done.  The files end up
*PHYSICALLY* residing in the /home partition, but *LOGICALLY* on /tmp,
/usr and /var.  Here's how I implement it.  I set up /tmp /usr and /var
in /home/bindmounts/ (note the permissions on /home/bindmounts/tmp).

[m450][root][~] ll /home/bindmounts/
total 20
drwxr-xr-x  5 root root 4096 Apr 29 13:36 .
drwxr-xr-x  7 root root 4096 May  1 00:08 ..
drwxrwxrwt 10 root root 4096 May  4 22:00 tmp
drwxr-xr-x 15 root root 4096 Apr 29 03:53 usr
drwxr-xr-x 14 root root 4096 Apr 28 20:36 var


I create *EMPTY* directories named /tmp /usr and /var on /.  And then I
bind mount the directories.  Here's a snippet from /etc/fstab

/home/bindmounts/var/varautobind 0 0
/home/bindmounts/usr/usrautobind 0 0
/home/bindmounts/tmp/tmpautobind 0 0

  Symlinks would normally work, too.  However, if for some reason, the
/home partition is unavailable at bootup, the system would complain
about symlinks.  With empty directories, you at least get a basic system
booting up with fewer complaints.

  Let me repeat the reason for the oddness.  The stripped-down /
partition is going to be pretty constant, so I don't have to allow lots
of empty space as a safety margin.  The wildcards, in terms of filespace
are...
  - /var (logs and other stuff)
  - /usr (/usr/bin for all my apps, and /usr (share, portage, libs))
  - /tmp (this is where big temporary files go)

-- 
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Reducing disk usage

2007-05-03 Thread Csányi András
Hemmann, Volker Armin írta:
 On Donnerstag, 26. April 2007, Alexander Skwar wrote:
   
 · fire-eyes [EMAIL PROTECTED]:
 
 Over a whole system this can
 add up to a few dozen more MB of space usable.
   
 This Depends largely on the type of files. I've got my portage
 tree on a reiserfs, and in comparison to ext3, it saves couple
 100 (one-zero-zero) megs!

 

 back in the good old days, when 10gb was big for a harddrive, I saved 2GB by 
 using reiserfs. From 9GB to 7GB used. And that was a 'simple' Suse 
 installation+personal stuff.
   
This is very big different.
The filesystem space is problem for me. Use i reiserfs?

Best regards,
András

--sorry for my englis... study :) ---

-- 
- -
--  Csányi András  -- http://sayusi.hu -- Sayusi Ando
--  Bízzál Istenben és tartsd szárazon a puskaport! -- Cromwell

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Reducing disk usage

2007-05-03 Thread Pongracz Istvan
2007. 05. 3, csütörtök keltezéssel 22.17-kor Csányi András ezt írta:
 This is very big different.
 The filesystem space is problem for me. Use i reiserfs?
 
 Best regards,
 András


If I were you, yes.
I use reiserfs for years and I have good experiences with it (fault
tolerant, space efficient etc.).

Or buy a bigger hard disk ;)


IStván

-- 
IT szolgáltatások, alkalmazásszolgáltatás
http://www.osbusiness.hu

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Reducing disk usage

2007-04-28 Thread Ralf Stephan
  Over a whole system this can 
  add up to a few dozen more MB of space usable.
 
 This Depends largely on the type of files. I've got my portage
 tree on a reiserfs, and in comparison to ext3, it saves couple
 100 (one-zero-zero) megs!

OTOH, you may not need to switch to reiser for that.
It may simply be a matter of giving /usr/portage its own 
partition and a smaller block size.

I have no data on that, though.


ralf
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Reducing disk usage

2007-04-28 Thread Neil Bothwick
On Sat, 28 Apr 2007 11:59:01 +0200, Ralf Stephan wrote:

  This Depends largely on the type of files. I've got my portage
  tree on a reiserfs, and in comparison to ext3, it saves couple
  100 (one-zero-zero) megs!  
 
 OTOH, you may not need to switch to reiser for that.
 It may simply be a matter of giving /usr/portage its own 
 partition and a smaller block size.

You would only save space like that if the partition was only just big
enough to hold the portage tree. With the amount of file churn in the
tree, the filesystem would get very fragmented very quickly.


-- 
Neil Bothwick

I don't know what makes you tick but I wish it was a time bomb.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Reducing disk usage

2007-04-26 Thread Hemmann, Volker Armin
On Donnerstag, 26. April 2007, Alexander Skwar wrote:
 · fire-eyes [EMAIL PROTECTED]:
  Over a whole system this can
  add up to a few dozen more MB of space usable.

 This Depends largely on the type of files. I've got my portage
 tree on a reiserfs, and in comparison to ext3, it saves couple
 100 (one-zero-zero) megs!


back in the good old days, when 10gb was big for a harddrive, I saved 2GB by 
using reiserfs. From 9GB to 7GB used. And that was a 'simple' Suse 
installation+personal stuff.
--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] Re: Reducing disk usage

2007-04-26 Thread Adam Carter
A bit softer than some of the other suggestions;

# eclean packages
# eclean distfiles

app-portage/gentoolkit contains eclean. From the man page;

eclean  is  small  tool  to  remove  obsolete portage sources files and
   binary packages.  Used on a regular basis, it prevents your
DISTDIR and
   PKGDIR  directories  to infinitely grow, while not deleting files
which
   may still be useful

HTH,
Adam
--
[EMAIL PROTECTED] mailing list