Re: setting up a /tmp

From: jef knoors (jknoors@zonnet.nl)
Date: Thu Jun 08 2000 - 19:21:15 CEST


I tried the sugested command:
 gzip -d tempfile > /dev/ram3
In theorie it might work, practically it doesn't.
cat tempfile > /dev/ram3
works O.K.

Can anybody explain the difference to me?

Jef

----- Original Message -----
From: Michele Andreoli <m.andreoli@tin.it>
To: <mulinux@sunsite.auc.dk>
Sent: Wednesday, June 07, 2000 8:32 AM
Subject: Re: setting up a /tmp

> 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.
>
>
> Michele
> --
> 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: mulinux-unsubscribe@sunsite.auc.dk
> For additional commands, e-mail: mulinux-help@sunsite.auc.dk
>

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk



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