Re: Ext3 problems in dual booting machine with SE Linux

From: Valdis . Kletnieks
Date: Fri Jul 23 2004 - 15:47:54 EST


On Fri, 23 Jul 2004 08:37:15 PDT, Steve G <linux_4ever@xxxxxxxxx> said:

> At this point, 'umount /dev/sda3' is impossible. Its reported as busy. The on
ly

> [root@buildhost root]# cat /proc/mounts

> /dev/root / ext3 rw 0 0
> /dev/sda3 /mnt/target ext3 rw 0 0

> [root@buildhost root]# rm -rf /mnt/target/tmp/
> [root@buildhost root]# rm -rf /mnt/target/usr/
> Segmentation fault
> [root@buildhost root]#
> Message from syslogd@buildhost at Fri Jul 23 10:50:53 2004 ...
> buildhost kernel: Assertion failure in journal_revoke_Rsmp_9762279c() at
> revoke.c:329: "!(__builtin_constant_p(BH_Revoked) ?
> constant_test_bit((BH_Revoked),(&bh->b_state)) :
> variable_test_bit((BH_Revoked),(&bh->b_state)))"
>
> At this point the system is non-functional since it oops'ed. Here's the Oops

Fix your boot to not use /dev/root, but an actual partition number.

What's happening is that /dev/sda3 is *both* your /mnt/target *and* your
root filesystem. So when you start rm -rf'ing, you trash your root filesystem and
things go pear-shaped.

Attachment: pgp00000.pgp
Description: PGP signature