Re: KMSGDUMP: dump kernel messages to a diskette

Riley Williams (rhw@MemAlpha.CX)
Tue, 29 Jun 1999 01:20:13 +0100 (GMT)


Hi Willy.

> This week-end, I've completely rewritten the patch I wrote a
> week ago to dump kernel messages to a floppy disk. Based on a
> comment from Pavel Machek, I've removed the kernel panic message
> (which is nearly useless, and available in kernel messages
> buffer), and replaced it with kernel messages buffer. That's now
> 16 kbytes of last kernel messages that can be dumped to a
> diskette.

Just out of curiosity, how does it dump the messages out?

1. Blindly writes the data starting at the beginning of the
disk, so overwriting the first 16k of disk space with a
raw dump file.

2. Overwrites the disk with a FAT12 partition with one 16k file
preeallocated to the first 16k of the disk, then puts the
boot messaages in that file.

3. Requires the disk to be preformatted as FAT12, and creates
a new file on the disk.

Whilst (1) is certainly the easiest to write, it's probably also the
least useful, and one of the other two would be prefeerable.

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/