Re: V1.3 WON'T BOOT unless this change is made

jms@pobox.com
Sun, 18 Feb 96 07:56 CST


>>>>> "bb" == roberb7 <roberb7@iceonline.com> writes:

bb> My root file system is ext2, and it is in the second partition
bb> of my hard disk. I was unable to boot any 1.3 kernel until I
bb> made the following change to drivers/block/genhd.c, around
bb> line 296:

bb> /* prevent someone doing mkfs or mkswap on an
bb> extended partition, but leave room for LILO */
bb> /* if (hd->part[minor].nr_sects > 2)
bb> hd->part[minor].nr_sects = 2; */

bb> Before I commented out these two lines of code, I got the
bb> message "attempt to access beyond end of device" when
bb> booting. Hardly surprising, when the kernel thinks that the
bb> partition only has two sectors.

Are you sure that you have that drive type set to Linux Native and not
extended? If this code does what that comment seems to indicate it
does then I wish it was in 1.2.x it sure would have saved me lots of
grief when I accidentally did a mkfs on the extended partition instead
of one of the partitions inside that extended partition. I trashed
my whole /usr/local partiton.

Johnie

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Johnie Stafford           |  Internet E-mail: jms@pobox.com
 KB5YVF - Lafayette, LA    | Ham Radio Packet: kb5yvf@k5arh.#lftla.la.us.noam
                           |          WWW URL: http://www.pobox.com/~jms
           pobox.com for lifetime email -- mail info@pobox.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-