Re: [bug report] umsdos ruins ext2 file system

Robert de Bath (linux@debath.thenet.co.uk)
Thu, 20 Jul 1995 21:35:25 +0100 (BST)


On Tue, 18 Jul 1995, cloister bell wrote:

> that's cool. so do those of us with ext2 filesystems older than that
> need to worry about what may or may not be in our boot sectors? if so,
> what do you recommend that we do about it?

How about
od -c /dev/hda2 | head -1
^^^^ Replace with the correct ext2/minix/... drive

If it gives something like:
0000000 353 < 220 M S D O S 5 . 0 \0 002 001 \0

You may have a problem.

If it's like:
0000000 353 ] L I L O 001 \0 016 \0 377 377 \0 \0 \0 \0

Then that's perfectly OK. (a lilo boot partition)

If it's like:
0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0

Then it's already been zapped.

If you're really brave then you can zap the boot sector with:

dd bs=512 count=1 if=/dev/full of=/dev/hda2
^^^^ season to taste.

Tho if you make your PC unbootable don't say you weren't warned.

Rob (Robert de Bath (robert@debath.thenet.co.uk))