krypto writes:
=> Hi all...
=> is there anyway (from user space) to crash a
=> partition, I mean unmount it uncleanly as it
=> happens when you power off the computer without
=> unmounting. I would like to unmount uncleanly just
=> the partition I choose, in order not to crash the
=> root partition too.
You can simulate a crash with "reboot -fn" as root. This
will reboot the machine immediately.
I've set up my test box so that the root partition is
mounted read-only, with symlinks into a ramdisk where
all the read-write stuff lives. The ramdisk is initialized
on boot. Since the root is mounted read-only I can crash
my machine and never need to fsck.
I wrote some instructions on how to do this to a redhat
box and they're in the xfs crash test directory which
is part of the xfs release. YMMV - AFAIK there's no
really simple way of getting this configuration going.
Regards,
-----------------------------------------------------
Daniel Moore dxm@xxxxxxx
R&D Software Engineer Phone: +61-3-98348209
SGI Performance Tools Group Fax: +61-3-98132378
-----------------------------------------------------
|