Re: 2.2pre1 crashes with partition check

Jens Axboe (axboe@image.dk)
Wed, 30 Dec 1998 21:14:44 +0100


Mike McQuade wrote:
> 2.2pre1-ac2 CRASHED / OOPSes at the partition check as well.
>
> It attempts to check the partition on my /dev/sda drive (which is DOSfs,
> FAT16),then crashes. Linux is on the /dev/hda drive, booting Linux
> (bzImage) from Loadlin.

Same thing here... I traced it down to ide_xlate_1024 and applied this
simple patch gets solves the problem for me.

--- virgin/drivers/block/ide.c Wed Dec 30 20:54:43 1998
+++ linux/drivers/block/ide.c Wed Dec 30 20:47:40 1998
@@ -2575,6 +2575,9 @@
unsigned long tracks;

if ((drive = get_info_ptr(i_rdev)) == NULL ||
drive->forced_geom) {
+ /* bombs otherwise /axboe */
+ if (drive == NULL)
+ return 0;
/*
* Update the current 3D drive values.
*/
> PS. Can someone tell me how to capture the OOPS info when the system
> crashes hard like this at boot time ?

That would be nice, I had to do it the hard ware (meaning paper and
pencil :)

> Mike

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
* "The only thing that interferes with my
*  learning is my education." -- A. Einstein

- 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/