Re: GRUB fails to boot Win98
Okuji, I tried the fix and I'm afraid it did not solve the problem, it does make a difference however - let me explain. On my first attempt to test the fix I saw no difference at all, the debug statement gave the same output, i.e.: reading the offset 0x80 in the drive 0x1a0b9a4 and Error 18 was produced again. At first I was concerned that I had made some mistake in building or installing the updated software (including the real_root_func in stage2/builtins.c) so to make sure I had done it correctly I swapped the parameters to the grub_printf statement you added to chainloader case of the switch statement in boot_func in builtins.c and built and installed again. Rebooting had the same effect but the debug statement now read: reading the offset 0x1a0b9a4 in the drive 0x80 proving that I was indeed using the new builtins.c. Generally, though I have a menu.lst file installed, I have been jumping straight into command mode (by pressing c) and entering the commands manually, but on this occasion I had actually selected the Windows 98 option from my menu, so when it failed it prompted me to press any key to continue. By chance I accidentally pressed return twice which had the effect of returning me to the menu and selecting Windows 98 again. Windows booted up successfully! Investigation has show that this is also true for the unpatched 0.93 build, the 0.92 and the clean 0.91 build, but not the Redhat patched 0.91 build where I had previously tried selecting Linux or Windows from the menu after a failed attempt to boot Windows and the machine had locked up. I then tried entering the sequence of commands twice manually and after some investigations into the variations available I found that the following is the minimum sequence of commands that will boot Windows successfully (from command line or menu) with the patched 0.93 build: rootnoverify (hd0,0) chainloader +1 rootnoverify (hd0,0) boot but the following fails: rootnoverify (hd0,0) rootnoverify (hd0,0) chainloader +1 boot I also discovered that with the unpatched 0.93 build this does not work, and in fact I could not find a sequence of commands that did - but entering the commands manually and then switching back to the menu and selecting the Windows option did work! This was also the case for 0.91 and 0.92 and even the Redhat patched 0.91! Hope this information helps you track the problem down. Graham On Friday 24 May 2002 2:57 pm, Yoshinori K. Okuji wrote: At Thu, 23 May 2002 20:37:22 +0900, Yoshinori K. Okuji [EMAIL PROTECTED] wrote: Thanks for your investigation. That information is enough to debug GRUB. I didn't have time unfortunately, but I'll do that ASAP. Wait for a while, please. I've checked in a fix into the CVS. Could you try it? Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
At Sat, 25 May 2002 09:46:03 +0100, Graham Smith wrote: I tried the fix and I'm afraid it did not solve the problem, it does make a difference however - let me explain. Thanks for your information. I was a bit mistaken the logic. So I've checked in another fix right now. Could you try it? I bet it should work now. :) Regards, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
Okuji, Success!! This does indeed fix the problem, congratulations and very many thanks. Regards Graham On Saturday 25 May 2002 12:38 pm, Yoshinori K. Okuji wrote: At Sat, 25 May 2002 09:46:03 +0100, Graham Smith wrote: I tried the fix and I'm afraid it did not solve the problem, it does make a difference however - let me explain. Thanks for your information. I was a bit mistaken the logic. So I've checked in another fix right now. Could you try it? I bet it should work now. :) Regards, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
At Thu, 23 May 2002 20:37:22 +0900, Yoshinori K. Okuji [EMAIL PROTECTED] wrote: Thanks for your investigation. That information is enough to debug GRUB. I didn't have time unfortunately, but I'll do that ASAP. Wait for a while, please. I've checked in a fix into the CVS. Could you try it? Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
RE: GRUB fails to boot Win98
Okuji, Further to my earlier message, now that I've had time to think about it. Assuming that the drive number and offset in the message are swapped it would appear that when chainloading Win98 from GRUB installed on the hard disk it is attempting to read sector 0x1a0b9a4 from (hd0). Interestingly this is the exact offset of the first sector of partition (hd1,4) where stage2 is installed and this offset is off the end of the smaller (hd0). I have now also checked that the behaviour is the same when stage1 is installed in (hd0) and booted directly as when it is installed in (hd1,4) and chainloaded by LILO (which is what I had tested last night). regards Graham P.S. I noted that the version of GRUB I downloaded from CVS now reports itself as 0.93. ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
At Thu, 23 May 2002 08:07:44 +0100, Graham Smith wrote: Assuming that the drive number and offset in the message are swapped it would appear that when chainloading Win98 from GRUB installed on the hard disk it is attempting to read sector 0x1a0b9a4 from (hd0). Interestingly this is the exact offset of the first sector of partition (hd1,4) where stage2 is installed and this offset is off the end of the smaller (hd0). Thanks for your investigation. That information is enough to debug GRUB. I didn't have time unfortunately, but I'll do that ASAP. Wait for a while, please. Regards, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
Hello Graham, At Mon, 20 May 2002 23:33:45 +0100, Graham Smith wrote: Could you advise how I can assist in debugging this? Sure. First, please get the current version from the CVS. Then compile it and test it both with a floppy and with a hard disk. When testing it, turn on the debug mode by running the command debug. Now the command boot should show more messages, like reading the offset 0x in the drive 0x??. Let me know what is displayed. Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
RE: GRUB fails to boot Win98
Okuji, As requested I downloaded and built GRUB from the CVS repository at 10:15 pm (British Summer Time) tonight. Including the debug statement and booting into Windows from a GRUB boot floppy gave the additional output: Reading the offset 0x80 in the drive 0x0 and the boot completed successfully. When booting from GRUB installed on the hard drive I obtained the message: Reading the offset 0x80 in the drive 0x1a0b9a4 and a new error message which read: Error 18: Selected cylinder exceeds maximum supported by BIOS regards Graham -Original Message- From: Yoshinori K. Okuji [SMTP:[EMAIL PROTECTED]] Sent: 22 May 2002 08:05 To: Graham Smith Cc: [EMAIL PROTECTED] Subject:Re: GRUB fails to boot Win98 Hello Graham, At Mon, 20 May 2002 23:33:45 +0100, Graham Smith wrote: Could you advise how I can assist in debugging this? Sure. First, please get the current version from the CVS. Then compile it and test it both with a floppy and with a hard disk. When testing it, turn on the debug mode by running the command debug. Now the command boot should show more messages, like reading the offset 0x in the drive 0x??. Let me know what is displayed. Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
Could you test the official version 0.92? If this also fails, we'd need your assistance to debug GRUB. Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: GRUB fails to boot Win98
Okuji, I have now tried all of the following: GRUB 0.91 (standard release without any RedHat patches) GRUB 0.91 (with RedHat patches as per RedHat 7.3) GRUB 0.92 (standard release) I have tried using all these versions from boot floppy and from hard disk both with stage1 installed in MBR of (hd0) and with stage1 installed in (hd1,4) and chainloaded by LILO installed in the MBR. The results are the same with all versions, i.e. both Linux and Windows boot OK from GRUB on boot floppy, Linux boots OK with GRUB on hard disk but Windows fails with 'Error 25: Disk read error' when GRUB is installed on the hard disk. Could you advise how I can assist in debugging this? regards Graham Smith On Monday 20 May 2002 10:28 am, Yoshinori K. Okuji wrote: Could you test the official version 0.92? If this also fails, we'd need your assistance to debug GRUB. Thanks, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
GRUB fails to boot Win98
Dear GRUB gurus, I have having problems booting my system using GRUB. It is a dual boot system running RedHat Linux 7.3 (though I was having the same problem with 7.2) and Microsoft Windows 98SE. The system will boot quite happily if I use a GRUB boot floppy or if I use LILO from the hard disk but if I put GRUB on the hard disk then while Linux boots OK Win98SE fails with the error 'Error 25: Disk read error'. The machine has two IDE hard drives, the first (/dev/hda, hd0) is a 13Gb disk with a single partition dedicated to Win98SE, the second (/dev/hdb, hd1) is a 20Gb disk with three partitions, the first is ~13Gb and is also dedicated to Win98SE. The second is ~6Gb and is used as the Linux root filesystem, the third is ~600Mb and is the Linux swap partition. (detailed information output from fdisk and GRUB is below). GRUB (version 0.91-4 as supplied in redHat 7.3) is installed in /boot/grub and I have tried putting the stage1 image both in the MBR of the first disk (hd0) and also at the start of the (hd1,4) partition and then chain loading it from LILO installed in the MBR of (hd0). Both locations for the stage1 image cause the problem. But the same version of GRUB on a floppy works OK. The commands used to boot Linux and Win98SE using GRUB are shown below in a copy of my menu.lst file. If I issue these commands when booted from a floppy everything is OK, if I issue these commands by hand when booted from the hard disk then everything is OK for Linux and is OK until I get the 'Disk read error' when I enter the 'boot' command at the end of the sequence to boot Win98SE. The system then prompts me to continue and returns me to the GRUB command prompt. From there if I try to boot either Windows or Linux the machine locks up and requires a hard reset. I have checked through all the documentation and searched the web and while I have found other people with very similar configurations I haven't found anyone else with this problem. I am probably doing something silly but would apreciate your help in diagnosing the problem. I wondered if the problem is something to do wih having GRUB on the second disk and then trying to boot Windows from the first, but I have seen others doing this successfully. I am prepared to try and diagnose the problem - I am a software enginer by trade - but I'm not sure where to start! GRUB is an ace tool, keep up the good work. Graham Smith ([EMAIL PROTECTED]) Contents of /boot/grub/menu.lst: === #boot=/dev/hdb5 default=1 timeout=10 splashimage=(hd1,4)/boot/grub/splash.xpm.gz title Red Hat Linux (2.4.18-4) debug root (hd1,4) kernel /boot/vmlinuz-2.4.18-4 ro root=/dev/hdb5 initrd /boot/initrd-2.4.18-4.img title Windows 98 debug rootnoverify (hd0,0) chainloader +1 makeactive = Disk geometry as reported by fdisk -l = Disk /dev/hda: 255 heads, 63 sectors, 1582 cylinders Units = cylinders of 16065 * 512 bytes Device BootStart EndBlocks Id System /dev/hda1 * 1 1582 12707383+ c Win95 FAT32 (LBA) Disk /dev/hdb: 255 heads, 63 sectors, 2495 cylinders Units = cylinders of 16065 * 512 bytes Device BootStart EndBlocks Id System /dev/hdb1 1 1700 13655218+ c Win95 FAT32 (LBA) /dev/hdb2 1701 2495 6385837+ 5 Extended /dev/hdb5 * 1701 2415 5743206 83 Linux /dev/hdb6 2416 2495642568+ 82 Linux swap = From the grub-shell (which matches info obtained when using grub boot floppy): = grub geometry (hd0) drive 0x80: C/H/S = 1582/255/63, The number of sectors = 25429824, /dev/hda Partition num: 0, Filesystem type is fat, partition type 0xc grub geometry (hd1) drive 0x81: C/H/S = 2495/255/63, The number of sectors = 40088160, /dev/hdb Partition num: 0, Filesystem type is fat, partition type 0xc Partition num: 4, Filesystem type is ext2fs, partition type 0x83 Partition num: 5, Filesystem type unknown, partition type 0x82 = ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub