Re: setting up a /tmp

From: Michele Andreoli (
Date: Wed Jun 07 2000 - 08:32:08 CEST

On Tue, Jun 06, 2000 at 11:17:27PM +0200, jef knoors nicely wrote:
> Hello you all,
> I found a nice way to set up a temp directory without the mkfs.ext2 comand
> and its lib's.
> It saves you a lot of diskspace/or you can create /tmp before or without
> configuring USR.

He-he: you know deeply the problem.

> dd if=/dev/zero of=tempfile bs=1k count=300
> mkfs.ext2 tempfile
> gzip tempfile
> put the tempfile.gz on you base-floppy, after booting it do this:
> gzip -d tempfile.gz
> cat tempfile /dev/ram3
> mount -o loop /dev/ram3 /tmp
> The tempfile.gz is only 624 byte !

Very intelligent solution. I think, we can eliminate also the loop
device: with

                gzip -d tempfile > /dev/ram3
                mount /dev/ram3 /tmp

This work perfectly, because tempfile is complete filesystem.
Using this genial trick, I can remove libext2 from ROOT, moving
it in highly compressed USR.


I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
To unsubscribe, e-mail:
For additional commands, e-mail:

This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:14 CET