[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.] ** Changed in: grub2 (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/440587 Title: grub2: 'error: no such partition' when trying to boot from hd0,10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/440587/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know. ** Changed in: grub2 (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/440587 Title: grub2: 'error: no such partition' when trying to boot from hd0,10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/440587/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
Felix, I have the same issue. Using qemu I have installed on my 320GB 2.5 SATA HDD ubuntu using alternate CD (using automatic partitioning) and it boots and works fine under qemu. However, if I put this 320GB HDD in soekris (embedded board) I get the same grub error "no such partition". It looks like /boot partition gets assigned sda5 and it is far after LVG partition, but soekris BIOS detects 320GB HDD as 134GB, so it seems that its BIOS fault, what could be workaround? Should I create partition table manually specifying /boot as first partition on the disk start? Why ubuntu automatic partition assigns /boot as last partition on the end of the disk? Under qemu: $ df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/unknown-root 292G 79G 199G 29% / udev 249M 156K 249M 1% /dev none 249M 0 249M 0% /dev/shm none 249M 64K 249M 1% /var/run none 249M 0 249M 0% /var/lock none 249M 0 249M 0% /lib/init/rw /dev/sda5 228M 33M 183M 16% /boot $ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000c19d7 Device Boot Start End Blocks Id System /dev/sda1 * 1 38882 312319633+ 83 Linux /dev/sda2 38883 38913 249007+ 5 Extended /dev/sda5 38883 38913 248976 83 Linux Under soekris: $ cu --nostop -s 115200 -l /dev/ttyUSB0 Connected. POST: 012345689bcefghips1234ajklnopqr,,,tvwxy comBIOS ver. 1.33c 20080626 Copyright (C) 2000-2008 Soekris Engineering. net5501 0512 Mbyte MemoryCPU Geode LX 500 Mhz Pri Sla ST9320421AS LBA Xlt 1024-255-63 134 Gbyte Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1Base2 Int --- 0:01:2 1022 2082 1010 0006 0220 08 00 00 A000 10 0:06:0 1106 3053 0296 0117 0210 08 40 00 E101 A0004000 11 0:07:0 1106 3053 0296 0117 0210 08 40 00 E201 A0004100 05 0:08:0 1106 3053 0296 0117 0210 08 40 00 E301 A0004200 09 0:09:0 1106 3053 0296 0117 0210 08 40 00 E401 A0004300 12 0:17:0 1814 0302 0280 0117 0410 08 40 00 A0008000 15 0:20:0 1022 2090 06010003 0009 02A0 08 40 80 6001 6101 0:20:2 1022 209A 01018001 0005 02A0 08 00 00 0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A001 07 0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0011000 07 1 Seconds to automatic boot. Press Ctrl-P for entering Monitor. GRUB loading. error: no such partition grub rescue> set prefix=(hd0,5)/grub root=hd0,5 grub rescue> ls (hd0) (hd0,1) (hd1) (hd1,1) (hd2) (hd2,1) (hd3) (hd3,1) (hd4) (hd4,1) (hd5) (hd5,1) (hd6) (hd6,1) (hd7) (hd7,1) (hd8) (hd8,1) (hd9) (hd9,1) (hd10) (hd10,1) (hd11) (hd11,1) (hd12) (hd12,1) (hd13) (hd13,1) (hd14) (hd14,1) (hd15) (hd15,1) grub rescue> set debug=partition grub rescue> ls (hd0) /build/buildd/grub2-1.98~experimental.20091217/kern/partition.c:106: Detecting part_msdos... /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 0: flag 0x80, type 0x83, start 0x3f, len 0x253b3d23 /build/buildd/grub2-1.98~experimental.20091217/kern/partition.c:117: part_msdos detection succeeded. /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 0: flag 0x80, type 0x83, start 0x3f, len 0x253b3d23 /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 1: flag 0x0, type 0x5, start 0x253b3d62, len 0x7995f /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 (hd0,1) (hd1) /build/buildd/grub2-1.98~experimental.20091217/kern/partition.c:106: Detecting part_msdos... /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 0: flag 0x80, type 0x83, start 0x3f, len 0x253b3d23 /build/buildd/grub2-1.98~experimental.20091217/kern/partition.c:117: part_msdos detection succeeded. /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 0: flag 0x80, type 0x83, start 0x3f, len 0x253b3d23 /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 1: flag 0x0, type 0x5, start 0x253b3d62, len 0x7995f /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 /build/buildd/grub2-1.98~experimental.20091217/partmap/msdos.c:161: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 (hd1,1) (hd2) /build/buildd/grub2-1.98~experimental.20091217/kern/partition.c:106: Detecting part_msdos... /build/buildd/grub2-1.98~experimental.20091217/partm
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
Please try if this still happens with my latest PPA upload: https://launchpad.net/~fzielcke/+archive/grub-ppa/ Note that it's the experimental branch from upstream and so could contain other bugs. -- 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@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
Am Dienstag, den 17.11.2009, 00:58 + schrieb Liu Bo: > Hi, I also met the same problem. But I comment the following code to > work around it. > What does it work around? Does it do more then just hiding the out of disk error? If so then we probable have some bug in the error handling. The kernel out of disk error is a sign for either a bug in our filesystem code or in the filesystem itself. Unfortunately reiserfs is the only filesystem for which we have debug code. Though it could also be a BIOS bug that it reports a different disk size then it actually has. > > Please confirm the funtion of the above code. Thanks. > I doubt this function is the problem. And if you would have looked a few lines below where this function gets actually called it would give you at least a hint how you can find out for which sector number that function fails. To get the disk dprintfs shown in rescue mode the following should work, but it seems like the pager only works in mormal mode. sudo -s printf 'set pager=1\nset debug=disk' > /boot/grub/rescue.cfg In /usr/sbin/grub-install change this line $grub_mkimage --output=${grubdir}/core.img --prefix=${prefix_drive}${relative_grubdir} $modules || exit 1 to this $grub_mkimage --config=${grubdir}/rescue.cfg --output=${grubdir}/core.img --prefix=${prefix_drive}${relative_grubdir} $modules || exit 1 and then just run it like usual. Though because you're already familiar with compiling and modifying it you could also replace the grub_dprintf with normal grub_printfs. -- Felix Zielcke Proud Debian Maintainer and GNU GRUB developer -- 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@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
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@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
Older grub gives better erro message telling BIOS can't access such partition. sda10 is not itself too far on disk, but to get address of it grub has to walk through sda5->sda9. And apparently BIOS can't access sda8 beginning? I think this bug can be marked as minor, only thing to fix is give more informative error message. If BIOS can't access it, it''s impossible to boot from that partion. After deleting and creating logical partitions in correct order grub works fine. -- 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@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 440587] Re: grub2: 'error: no such partition' when trying to boot from hd0, 10
I can, but no serial console, so I cannot even see all. I'll attach picture what is seen: ** Attachment added: "grub_part_debug.jpg" http://launchpadlibrarian.net/32866175/grub_part_debug.jpg -- 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@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs