Re: OOM & [OT] util-linux-2.12e

Roman Zippel
2004-09-20T11:16:56Z

Hi,

On Mon, 20 Sep 2004, Olaf Hering wrote:

> > How do you distinguish between manual and automatic loop device setup?
>
> -v

???

> > How do you filter /proc/mounts for chroot environments?
>
> you have a chroot enviroment without /proc mounted?
> Then just create /proc/mounts?

$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda5 /boot ext2 rw 0 0
/dev/hda11 /home ext3 rw 0 0
/dev/hda12 /test ext3 rw 0 0
none /test/proc proc rw 0 0
/dev/hda11 /test/home ext3 rw 0 0
/dev/hda6 / ext3 rw 0 0
none /proc proc rw 0 0
/dev/hda11 /home ext3 rw 0 0
$ mount
/dev/hda6 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/hda11 on /home type ext3 (rw)
$ ln -sf /proc/mounts /etc/mtab
$ df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 2480352 1222760 1232392 50% /
/dev/root 2480352 1222760 1232392 50% /
df: `/dev/pts': No such file or directory
/dev/hda5 2480352 1222760 1232392 50% /boot
/dev/hda11 15874464 14187420 1647044 90% /home
df: `/test': No such file or directory
df: `/test/proc': No such file or directory
df: `/test/home': No such file or directory
/dev/hda6 2480352 1222760 1232392 50% /
/dev/hda11 15874464 14187420 1647044 90% /home

bye, Roman