[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10

Liu Bo liubolyuha at gmail.com
Tue Nov 17 00:58:29 UTC 2009


Hi, I also met the same problem. But I comment the following code to
work around it.

Package: grub-1.97.1.tar.gz
  Source: grub-1.97.1/kern/disk.c:

  Before Modified:

373   if (disk->total_sectors <= *sector
374       || ((*offset + size + GRUB_DISK_SECTOR_SIZE - 1)
375           >> GRUB_DISK_SECTOR_BITS) > disk->total_sectors - *sector)
376     return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");
377 
378   return GRUB_ERR_NONE;

 After Modified:

373   if (disk->total_sectors <= *sector
374       || ((*offset + size + GRUB_DISK_SECTOR_SIZE - 1)
375           >> GRUB_DISK_SECTOR_BITS) > disk->total_sectors - *sector)
376     /*return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");*/  ******
          {;}
377 
378   return GRUB_ERR_NONE;

Please confirm the funtion of the above code. Thanks.

-- 
grub2: 'error: no such partition' when trying to boot from hd0,10 
https://bugs.launchpad.net/bugs/440587
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list