[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what is /.udev for ?



To mount inside the /dev seems a very good idea.

Something like /dev/compatxx, /dev/stddev, /dev/old, /dev/original or else.

About the fhs ... standards can change.
But the unixes fhs is uglier enougth as it is.
:)

Em Qua 09 Fev 2005 20:42, David Mandelberg escreveu:

> GOMBAS Gabor wrote:
> > ... which would mean that it would become unaccessible (and thus
> > meaningless) as the real /var gets mounted later in the boot process.
> > You cannot reliably put it under a directory that is not guaranteed to
> > be on the root file system; that leaves roughly /, /etc, /bin, /lib and
> > /sbin. Pick your favourite :-)
>
> What about this:
>
> TMPDEV="`mktemp -d /tmp/devXXXXXX || { mkdir /.dev; echo -n /.dev; }`"
> mount -o bind /dev $TMPDEV
> mount -t tmpfs none /dev
> mkdir /dev/orig
> mount -o bind $TMPDEV /dev/orig
> umount $TMPDEV
> rm -rf $TMPDEV
>
> This way there's no clutter in / and the original dev is mounted in a valid
> place that won't get overmounted later. It's also fhs compliant I think.

-- 
Lucas de Sousa
================================================
e-mail: lucas.sousa@caixa.gov.br / lu75@floripa.com.br
Cell: (48) 9102-6650 / Trabalho: (48) 216-9249 
msn: lus26@msn.com / icq: 1859216 / aol: lcs589



Reply to: