From: Pixel <[EMAIL PROTECTED]>
Subject: Re: linux-2.4.0 breaks grub install into partition
Date: 12 Jul 2000 18:41:01 +0200

> Here is a patch. It's quite simple: if type==0x55 then use sector 1 instead of
> sector 0 as the partition table
> I don't know how it goes along with stage1.5 :(

  Is this really enough? There are some other places where a partition
table is loaded.

izzy@grub% grep MBR stage2/*.c
stage2/builtins.c:        /* Read the MBR here, because it might be modified
stage2/builtins.c:/* Embed a Stage 1.5 in the first cylinder after MBR or in the
stage2/builtins.c:      /* Embed it after the MBR.  */
stage2/builtins.c:      /* No floppy has MBR.  */
stage2/builtins.c:      /* Read the MBR of CURRENT_DRIVE.  */
stage2/builtins.c:      if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, 
mbr))
stage2/builtins.c:      if (! PC_MBR_CHECK_SIG (mbr))
stage2/builtins.c:  "Embed the Stage 1.5 STAGE1_5 in the sectors after MBR if DEVICE"
stage2/builtins.c:  /* If for a hard disk, copy the possible MBR/extended part table.  
*/
stage2/builtins.c:                  /* We install GRUB into the MBR, so try to embed 
the
stage2/builtins.c:                     Stage 1.5 in the sectors right after the MBR.  
*/
stage2/disk_io.c:      /* Read the MBR in the scratch space.  */
stage2/disk_io.c:         /* Write back the MBR.  */
stage2/disk_io.c:       *  Load the current MBR-style PC partition table (4 entries)
stage2/disk_io.c:         if (! PC_MBR_CHECK_SIG (mbr_buf))

Okuji

Reply via email to