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

From: Roman Zippel
Date: Mon Sep 20 2004 - 06:19:37 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/