tmpfs

Jacek Konieczny jajcus w pld.org.pl
Śro, 13 Cze 2001, 15:38:35 CEST


On Wed, Jun 13, 2001 at 10:28:50AM +0200, Michal Moskal wrote:
> Właśnie kroje konfig kernela 2.4. "Znalazłem" tam tmpfs.
> 
> > Virtual memory file system support
> > CONFIG_TMPFS
> >   Tmpfs is a file system which keeps all files in virtual memory.
> > 
> >   In contrast to RAM disks, which get allocated a fixed amount of
> >   physical RAM, tmpfs grows and shrinks to accommodate the files it
> >   contains and is able to swap unneeded pages out to swap space.
> > 
> >   Everything is "virtual" in the sense that no files will be created
> >   on your hard drive; if you reboot, everything in tmpfs will be
> >   lost.
> 
> Jak możemy tego użyć? Ano tak: włączamy to i initrd. Initrd ma jakieś
> 20k (na oko) i po prostu rozpakowuje z dyskietki tar.gz (tar.bz2?)
> z filesystemem na /dev/shm. Potem robi się linki w roocie /tmpfs/bin ->
> /bin etc. To by rozwiązało problemy z miejscem na initrd.

Nie trzeba linków. Przecież po załadowaniu tmpfs można z niego zrobić
roota --- przecież tak działa initrd.

Pozdrowienia,
        Jacek



Więcej informacji o liście dyskusyjnej pld-installer