[bug #46716] Protective MBR partition is not marked as bootable

2016-03-02 Thread Vladimir Serbinenko
Update of bug #46716 (project grub): Status:None => Fixed Open/Closed:Open => Closed ___ Reply to this item at:

Re: [bug #46716] Protective MBR partition is not marked as bootable

2016-03-02 Thread Thomas Schmitt
Hi, > Planned Release:None => 2.03+ I think this bug should rather be closed. Maybe with a hint that xorriso >= 1.4.3 now offers an -as mkisofs option which addresses the problem --mbr-force-bootable Enforce an MBR partition with "bootable/active" flag if

[bug #46716] Protective MBR partition is not marked as bootable

2016-03-02 Thread Vladimir Serbinenko
Update of bug #46716 (project grub): Planned Release:None => 2.03+ ___ Reply to this item at: ___ Messag

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-05 Thread Alexander E. Patrakov
05.01.2016 00:42, Alexander E. Patrakov пишет: http://82.193.153.141/to-try/rich/minimal-mjg-p2.iso doesn't show up in the menu I am sorry. Today I have prepared a set of other test ISOs, built with newer versions of xorriso and the MITM wrapper, and got the results. However, one of the toda

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-04 Thread Thomas Schmitt
Hi, i wrote: > > > > http://cdimage.debian.org/debian-cd/8.2.0/i386/iso-cd/debian-8.2.0-i386-netinst.iso Alexander E. Patrakov wrote: > On this iMac 5,2, the i386 gives 2 EFI options, both launch the installer. > The amd64 is not recognized. So it's probably a 32 bit machine. (Or at least boot

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-04 Thread Alexander E. Patrakov
05.01.2016 02:10, Thomas Schmitt пишет: These Debian ISOs show the original mjg layout http://cdimage.debian.org/debian-cd/8.2.0/i386/iso-cd/debian-8.2.0-i386-netinst.iso http://cdimage.debian.org/debian-cd/8.2.0/amd64/iso-cd/debian-8.2.0-amd64-netinst.iso On this iMac 5,2, the i386 gi

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-04 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > Robert Jones found an > iMac (iMac5,2, boot ROM version IM52.0090.B00) that boots from "mbr_only" > but doesn't boot from "mjg" when attepted to boot from USB Can you get him to test a Debian netinst image ? They are ISOLINUX/GRUB2 hybrids in "mjg" layout. See b

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-04 Thread Alexander E. Patrakov
02.01.2016 01:41, Thomas Schmitt wrote: It would be very interesting to know whether there are machines which boot by "mjg" but not by "mbr_only" or "original". I don't know such machines. I have a much better news. Robert Jones found an iMac (iMac5,2, boot ROM version IM52.0090.B00) that boot

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-02 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > I think the script contains a copy-paste bug. Both lines 202 and 222 are: > elif test x"$mode" = xmbr_only_copy Indeed. Now that i do the forgotten test of this case i get grub-mkrescue-sed.sh : FATAL : Unknown manipulation mode 'mbr_hfs_copy'. Fixed by ht

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-02 Thread Alexander E. Patrakov
02.01.2016 01:41, Thomas Schmitt пишет: --- The tarball also contains an improved wrapper script xorriso-1.4.3/frontend/grub-mkrescue-sed.sh It offers the following xorriso argument manipulation modes "mjg" = ESP in MBR

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2016-01-01 Thread Thomas Schmitt
Hi, Happy New Year. I have uploaded http://www.gnu.org/software/xorriso/xorriso-1.4.3.tar.gz MD5 3c438044dc8827f2d12b10c64bbf0dd9 Version timestamp : 2016.01.01.172817 with a new -as mkisofs option to enforce an MBR partition with "bootable/active" flag set. --mbr-force-bootable

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-30 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > So, I can agree with making this (or the variant without efi.img > duplication) the default layout for grub-mkrescue, My goal for now would be to get at least two alternative layouts into grub-mkrescue. Changing the default could break other people's well worki

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-30 Thread Alexander E. Patrakov
[re-adding bug-grub to CC] 29.12.2015 23:39, Alexander E. Patrakov пишет: 29.12.2015 22:51, Thomas Schmitt пишет: Hi, Alexander E. Patrakov wrote: 2B: prints "this is not a bootable disk" message i wrote: You see a string from the EFI partition 0xef in your old BIOS ? Yes! And it shows i

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-29 Thread Alexander E. Patrakov
29.12.2015 18:26, Alexander E. Patrakov пишет: 28.12.2015 18:20, Thomas Schmitt пишет: Hi, i improved the test script by adding two more manipulation modes: - "mbr_only" produces an EFI compliant ISO without GPT, HFS+, APM. - "original" lets the xorriso arguments pass unchanged. The mode can b

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-29 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > > > 2B: prints "this is not a bootable disk" message i wrote: > > You see a string from the EFI partition 0xef in your old BIOS ? > Yes! And it shows it despite the fact that there is no bootable partition! Is this string from the very start of /efi.img ? In

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-29 Thread Alexander E. Patrakov
29.12.2015 21:05, Thomas Schmitt пишет: Hi, do i understand it right that you decided for the dummy MBR partition that covers a single block at the start of the ISO ? Assuming that a layout is chosen that has a protective MBR partition of type 0xee and thus needs a dummy bootable MBR partitio

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-29 Thread Thomas Schmitt
Hi, do i understand it right that you decided for the dummy MBR partition that covers a single block at the start of the ISO ? If you confirm, i will replace the two macros by a single option which you can add to your grub-mkrescue run. How about this: --protective-msdos-bootflag If --prote

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-29 Thread Alexander E. Patrakov
28.12.2015 18:20, Thomas Schmitt пишет: Hi, i improved the test script by adding two more manipulation modes: - "mbr_only" produces an EFI compliant ISO without GPT, HFS+, APM. - "original" lets the xorriso arguments pass unchanged. The mode can be chosen by the environment variable MKRESCUE

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-28 Thread Thomas Schmitt
Hi, i improved the test script by adding two more manipulation modes: - "mbr_only" produces an EFI compliant ISO without GPT, HFS+, APM. - "original" lets the xorriso arguments pass unchanged. The mode can be chosen by the environment variable MKRESCUE_SED_MODE Default mode is "mjg": ESP in MBR

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-27 Thread Thomas Schmitt
Hi, i made a man-in-the-middle script which can be handed to grub-mkrescue as "xorriso" and changes the normal arguments to those for the mjg layout. To be downloaded as neighbor of a readily built and executable GNU xorriso cd .../xorriso-1.4.3/frontend/ wget http://libburnia-project.org/b

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-27 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > [proposal how to define synthetic partition entries] > Otherwise the most safe approach is probably based on design of mjg ... which does not comply to EFI specs. Its trick is that any misunderstanding by the firmware shall finally end up at the same address where th

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-27 Thread Thomas Schmitt
Hi, i wrote: > > Awaiting your results and Andrei's opinion. > > [about MBR dummy partition with boot flag] Andrei Borzenkov: > TBH I think that the best would be generic support for partition table > manipulation The more generic it is, the more complicated it is to coordinate with the various

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-24 Thread Andrei Borzenkov
22.12.2015 00:32, Thomas Schmitt пишет: > > Awaiting your results and Andrei's opinion. > TBH I think that the best would be generic support for partition table manipulation (or at least creation); then we'd have easy tool to adjust and test various layouts. It could be modeled after boot suppor

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-24 Thread Andrei Borzenkov
21.12.2015 23:22, Thomas Schmitt пишет: > Hi, > > i wrote: >>> Ain't that a bug ? > > Andrei Borzenkov wrote: >> What exactly? > > Partition type "msdos" with block size 2048. > If GRUB2 accepts "msdos" on CDROM, then it should not make such > a weird assumption. > Nothing prohibits creating M

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-24 Thread Andrei Borzenkov
23.12.2015 20:09, Thomas Schmitt пишет: >> So, what's the use case for hfsplus on x86? Maybe >> we should remove it from the default layout created by grub-mkrescue? > > Interesting question. Vladimir told me that there were Macs > which need HFS+ and blessings to find GRUB2. Young enough for x86

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-23 Thread Thomas Schmitt
Hi, > I think that, at this point, it would be useful to take one step back. > Namely, I have this fact: Porteus Kiosk has no Apple partition map and no > hfsplus, and boots on all machines (including the 2007 Mac) both as USB > flash drive and as a CD. Do the Debian amd64 or i386 netinst ISOs bo

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-23 Thread Alexander E. Patrakov
20.12.2015 14:59, Thomas Schmitt пишет: Hi, i see that in my test proposal i forgot the Mac specific options -apm-block-size 2048 -hfsplus They are not supposed to influence x86 BIOS or EFI. Nevertheless it would be better to include them in the test. I think that, at this point, it woul

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-22 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > Attempt to mount third GPR partition as HFS+ results in failure. > Additionally it tries to interpret the first (dummy) partition, which is > not fatal but annoying. > [24623.487605] hfsplus: invalid secondary volume header > [24623.487608] hfsplus: unable to find HFS

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-22 Thread Alexander E. Patrakov
22.12.2015 08:51, Andrei Borzenkov пишет: 21.12.2015 22:28, Alexander E. Patrakov пишет: 22.12.2015 00:18, Thomas Schmitt пишет: Still no luck with the 2007 Mac. Are there any bootable media for it, which are not from Apple ? Yes: http://porteus-kiosk.org/public/3.6/Porteus-Kiosk-3.6.0-i4

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-22 Thread Alexander E. Patrakov
22.12.2015 20:05, Thomas Schmitt пишет: Hi, Alexander E. Patrakov wrote: The following variants, obtained by changing only the MBR, also work: 1. Type-0 one-sector bootable partition at the very first sector: 01d0: 0100 0200 0100 Did you create t

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-22 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > The following variants, obtained by changing only the MBR, also work: > 1. Type-0 one-sector bootable partition at the very first sector: > 01d0: 0100 0200 0100 Did you create this by partition editor or by dd ? Wh

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-22 Thread Alexander E. Patrakov
21.12.2015 23:46, Andrei Borzenkov пишет: Yes, that may be an option. Still, using GPT is known to work; and those implementations I am aware of ignore MBR if partition 0xee is present. So it still looks like adding dummy bootable partition to MBR is the least evil. So, I have just tested a few

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 22:28, Alexander E. Patrakov пишет: > 22.12.2015 00:18, Thomas Schmitt пишет: >> >>> Still no luck with the 2007 Mac. >> >> Are there any bootable media for it, which are not from Apple ? > > Yes: > http://porteus-kiosk.org/public/3.6/Porteus-Kiosk-3.6.0-i486.iso > What choices it p

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > I propose --dummy-bootable-mbr-partition. That would probably be a new record in the field of option length. Any shorter proposals ? > I think it can be made > non-overlapping if we waste a few sectors, but need to test. Awaiting your results and Andrei's o

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, i wrote: > > And the other non-working "EFI Boot" offer is gone ? > > (That would mean it was the APM/HFS+ boot path.) Alexander E. Patrakov wrote: > Yes. So APM with block size 2048 seems not to work on HDD with size 512. (The bytes 2 and 3 of the GRUB2 MBR in its role as fake APM Block0 t

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
22.12.2015 01:22, Thomas Schmitt пишет: Andrei Borzenkov wrote: So it still looks like adding dummy bootable partition to MBR is the least evil. It would need patching of the xorriso output or a future release of xorriso. If you want such an option for grub-mkrescue then i am willing to imple

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 23:46, Andrei Borzenkov пишет: Yes, that may be an option. Still, using GPT is known to work; and those implementations I am aware of ignore MBR if partition 0xee is present. So it still looks like adding dummy bootable partition to MBR is the least evil. I wonder how Mac will present

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, i wrote: > > Ain't that a bug ? Andrei Borzenkov wrote: > What exactly? Partition type "msdos" with block size 2048. If GRUB2 accepts "msdos" on CDROM, then it should not make such a weird assumption. i wrote: > > one could set 512 as soon as partition type "msdos" is detected. Andrei Bor

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
22.12.2015 00:10, Andrei Borzenkov пишет: 21.12.2015 19:36, Alexander E. Patrakov пишет: OK, the 2007 Mac does not recognize any of the isos below. Does it have 32 or 64 bit firmware? 64-bit. I think that the problem is inside efi.img created by grub-mkrescue. Namely, the size of boot.

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
22.12.2015 00:18, Thomas Schmitt пишет: Hi, http://82.193.153.141/minimal-grub2-repacked-nohfsplus.iso MBR partition table: N Status TypeStart Blocks MBR partition : 1 0x80 0x83032220 MBR partition : 2 0x00 0xef32220

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, > http://82.193.153.141/minimal-grub2-repacked-nohfsplus.iso MBR partition table: N Status TypeStart Blocks MBR partition : 1 0x80 0x83032220 MBR partition : 2 0x00 0xef32220 5760 > Result: "Windows" + "EFI Boot"

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 19:36, Alexander E. Patrakov пишет: > > OK, the 2007 Mac does not recognize any of the isos below. > Does it have 32 or 64 bit firmware? ___ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 19:36, Alexander E. Patrakov пишет: > > OK, the 2007 Mac does not recognize any of the isos below. > Does it have 32 or 64 bit firmware? ___ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 23:59, Andrei Borzenkov пишет: 21.12.2015 21:54, Alexander E. Patrakov пишет: 21.12.2015 23:48, Andrei Borzenkov пишет: 21.12.2015 19:36, Alexander E. Patrakov пишет: Well, I have asked another person to test this iso on a Mac for me. Result: on an iMac 2007, http://82.193.153.141/

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 21:54, Alexander E. Patrakov пишет: > 21.12.2015 23:48, Andrei Borzenkov пишет: >> 21.12.2015 19:36, Alexander E. Patrakov пишет: Well, I have asked another person to test this iso on a Mac for me. Result: on an iMac 2007, http://82.193.153.141/minimal-grub2-repacked-

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 23:48, Andrei Borzenkov пишет: 21.12.2015 19:36, Alexander E. Patrakov пишет: Well, I have asked another person to test this iso on a Mac for me. Result: on an iMac 2007, http://82.193.153.141/minimal-grub2-repacked-v2.iso just shows the blank screen. On Mac Pro 2012, it shows three

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 20:37, Thomas Schmitt пишет: > > I wonder how the machine came to "Windows". On Mac this is synonym for "legacy BIOS" or "CSM" boot. ___ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 19:36, Alexander E. Patrakov пишет: >> Well, I have asked another person to test this iso on a Mac for me. >> >> Result: on an iMac 2007, >> http://82.193.153.141/minimal-grub2-repacked-v2.iso just shows the blank >> screen. On Mac Pro 2012, it shows three menu entries, and only two of >

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Andrei Borzenkov
21.12.2015 10:45, Thomas Schmitt пишет: > Hi, > > Andrei Borzenkov wrote: >> MBR is created with 512B sector size but when GRUB is booted >> from CD-ROM sector size is 2KiB. > > Ain't that a bug ? > What exactly? > GPT is recognized with 512. El Torito is recognized with its > weird mix of 512

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 22:37, Thomas Schmitt пишет: Hi, first a helper in case repacking goes on with other ISOs. To obtain the value for --modification-date= , do: $ xorriso -indev minimal-grub2.iso -pvd_info 2>/dev/null | \ grep '^Modif\. Time :' | sed -e 's/^Modif. Time : //' 201512191602

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, first a helper in case repacking goes on with other ISOs. To obtain the value for --modification-date= , do: $ xorriso -indev minimal-grub2.iso -pvd_info 2>/dev/null | \ grep '^Modif\. Time :' | sed -e 's/^Modif. Time : //' 2015121916023100 > https://goo.gl/photos/GRS5khE8r7Xgat

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 21:18, Alexander E. Patrakov пишет: 21.12.2015 20:29, Thomas Schmitt пишет: Hi, Alexander E. Patrakov wrote: MBR partition table: N Status TypeStart Blocks MBR partition : 1 0x80 0x83032804 MBR partition : 2 0x00 0xef3

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
21.12.2015 20:29, Thomas Schmitt пишет: Hi, Alexander E. Patrakov wrote: MBR partition table: N Status TypeStart Blocks MBR partition : 1 0x80 0x83032804 MBR partition : 2 0x00 0xef32804 5760 In xorriso this would need -

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, when assessing the differences between grub-mkrescue xorriso options and those of Alexander's repacking, i forgot to mention that --protective-msdos-label is used by grub-mkrescue but would be avoided in the alternative result. If present it would cause partition 1 to start at LBA 1 and thus

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > MBR partition table: N Status TypeStart Blocks > MBR partition : 1 0x80 0x83032804 > MBR partition : 2 0x00 0xef32804 5760 In xorriso this would need - The HFS+-0xee bug fixed (or no HFS+ b

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-21 Thread Alexander E. Patrakov
20.12.2015 19:57, Alexander E. Patrakov пишет: 20.12.2015 19:07, Thomas Schmitt пишет: Hi, xorriso wrote under my insufficient control: MBR partition : 1 0x80 0xee132803 Alexander E. Patrakov wrote: OK, this is the bug. You have a 0xee partition, that indic

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > MBR is created with 512B sector size but when GRUB is booted > from CD-ROM sector size is 2KiB. Ain't that a bug ? GPT is recognized with 512. El Torito is recognized with its weird mix of 512 for size and 2048 for block addresses. The reason why APM is recorded wit

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Andrei Borzenkov
20.12.2015 22:28, Thomas Schmitt пишет: > Hi, > > Andrei Borzenkov wrote: >> Try access ESP content. > > Err ... looking up manual ... you mean this ? > With ISO without -hfsplus : > > qemu ... -bios .../OVMF.fd -cdrom ...iso > > grub> ls (cd0,msdos2)/ > error: unknown filesystem. > > In

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > I will be too far from the Intel DG965SS board for the rest of the day, so > please expect the test results tomorrow. Sorry! Note that ISOs produced with -hfsplus currently have partition 1 starting at LBA 1 as is prescribed for type 0xee. If you want to test wi

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, i wrote: > For some reason the perception of GRUB2 is too large by a factor > of two. It is of course a factor of 4, as GRUB2 talks of KiB and xorriso or fdisk talk of 512-blocks. (The disease might be contageous.) Have a nice day :) Thomas _

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > Try access ESP content. Err ... looking up manual ... you mean this ? With ISO without -hfsplus : qemu ... -bios .../OVMF.fd -cdrom ...iso grub> ls (cd0,msdos2)/ error: unknown filesystem. In contrast to qemu ... -bios .../OVMF.fd -hda ...iso grub> ls

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Andrei Borzenkov
20.12.2015 13:50, Thomas Schmitt пишет: > Hi, > > Andrei Borzenkov wrote: >> As expected, GRUB cannot access second partition when booted as CD, >> either in BIOS or EFI mode. It can when booted as HDD with 512B sector >> in both BIOS and EFI mode. > > I have quite contrary results here. > - The

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Alexander E. Patrakov
20.12.2015 19:07, Thomas Schmitt пишет: Hi, xorriso wrote under my insufficient control: MBR partition : 1 0x80 0xee132803 Alexander E. Patrakov wrote: OK, this is the bug. You have a 0xee partition, that indicates that GPT Yep. Looks like a xorriso bug. (

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, xorriso wrote under my insufficient control: > >MBR partition : 1 0x80 0xee132803 Alexander E. Patrakov wrote: > OK, this is the bug. You have a 0xee partition, that indicates that GPT Yep. Looks like a xorriso bug. (How could this slip through when i looked

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Alexander E. Patrakov
20.12.2015 17:24, Thomas Schmitt пишет: Do you want to try whether the wrapper partition of type 0x00 with boot flag works on all your machines ? I have already tried, it does work, provided that the bootable flag is on the first partition. Unfortunately, fdisk does not allow me to replicate

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Alexander E. Patrakov
20.12.2015 14:59, Thomas Schmitt пишет: MBR heads per cyl : 64 MBR secs per head : 32 MBR partition table: N Status TypeStart Blocks MBR partition : 1 0x80 0xee132803 MBR partition : 2 0x00 0xef32804 5760

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, i wrote: > >error: disk `' not found. Alexander E. Patrakov wrote: > The "ls" command in this case finds only (hd0), (fd0), (fd1) and (cd0) I meanwhile found the strings in /efi.img disk `%s' not found grub rescue> So OVMF starts GRUB2. To clarify whether via MBR x86 code in BIOS

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Alexander E. Patrakov
20.12.2015 15:50, Thomas Schmitt пишет: error: disk `' not found. I don't know why you get this prompt, sorry. I got this error, too, at the early stage of my experiments, and that's why my instructions have --modules="part_gpt part_msdos" in them. Back then, the cause of the error was in

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > As expected, GRUB cannot access second partition when booted as CD, > either in BIOS or EFI mode. It can when booted as HDD with 512B sector > in both BIOS and EFI mode. I have quite contrary results here. - The repacked ISO works for me on BIOS qemu -hda and -cdrom,

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Andrei Borzenkov
20.12.2015 12:18, Thomas Schmitt пишет: > Now it should look like this > > $ xorriso -indev minimal-grub2-repacked.iso \ > -report_el_torito plain -report_system_area plain > ... > El Torito catalog : 85 1 > El Torito cat path : /boot.catalog > El Torito images : N Plt

Re: Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, i see that in my test proposal i forgot the Mac specific options -apm-block-size 2048 -hfsplus They are not supposed to influence x86 BIOS or EFI. Nevertheless it would be better to include them in the test. $ xorriso -as mkisofs \ -o minimal-grub2-repacked.iso \ -r \

Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, here is my proposal to Alexander how to achieve my favorite layout. To be tested with all BIOS or EFI x86 machines in reach. I renamed "minimal.iso" to "minimal-grub2.iso" because my ISO collection is full of mini*iso images. Obtain the MBR template file (normally provided by GRUB2 installat

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-20 Thread Thomas Schmitt
Hi, i wrote: > > promised by UEFI 2.4, Andrei Borzenkov wrote: > "promised" is encouraging :) More we can't get with all the implementations out there. > GPT starts at LBA 1. So we can deduce block size used to create this GPT > by checking location of GPT header. Ah. The first "EFI PART\000\

Re: [Bug-xorriso] [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
19.12.2015 22:37, Thomas Schmitt пишет: > Hi, > > Andrei Borzenkov wrote: >> a) are we sure every EFI system out there accepts MBR (Apple?) > > At least my favorite layout (see my recent mail > 9837584093514267...@scdbackup.webframe.org) is explicitely > promised by UEFI 2.4, "5.2.1 Legacy Master

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > a) are we sure every EFI system out there accepts MBR (Apple?) At least my favorite layout (see my recent mail 9837584093514267...@scdbackup.webframe.org) is explicitely promised by UEFI 2.4, "5.2.1 Legacy Master Boot Record (MBR)". The Apple problems in the blog of

Re: [Bug-xorriso] [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
19.12.2015 21:39, Thomas Schmitt пишет: > > I assume that its MBR lets any decent EFI ignore the GPT: > > MBR partition table: N Status TypeStart Blocks > MBR partition : 1 0x00 0xee1 63 Those implementations I am aware of will skip MBR if pro

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, i wrote: > > I currently try to talk Debian out of nesting partitions, > > even id the big one is type 0x00. Alexander E. Patrakov wrote: > If the discussion is archived somewhere, a pointer to it would be nice to > have. I made a lenghty assessment of Debians amd64 and i386 setup at occasio

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
19.12.2015 22:09, Thomas Schmitt пишет: Hi, Andrei Borzenkov wrote: There is no regression [in xorriso]. This is now my opinion, too. Regrettably the code has some history of stop-and-go development. I added features when Vladimir requested them. And now i cannot remember all the motivations.

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, Andrei Borzenkov wrote: > There is no regression [in xorriso]. This is now my opinion, too. Regrettably the code has some history of stop-and-go development. I added features when Vladimir requested them. And now i cannot remember all the motivations. But it is surely no inadverted change. A

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
19.12.2015 18:53, Thomas Schmitt пишет: > Hi, > > Alexander E. Patrakov wrote: >> [resending after the rejection, now I am subscribed to both lists] > > Hm. I got your first reply to Andrei and bug-xorriso after > i freed it from the bug-xorriso list jail. > Andrei's was on hold too. > Hopefully

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, [taking Alexander out of Cc: as he probably gets the mails from the lists twice, as i do] I currently only have some mockup ISO from HFS+ experiments with Vladimir. When i replay its xorriso -as mkisofs boot related options --grub2-mbr ...some.file... --protective-msdos-label -apm-b

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
19.12.2015 18:50, Thomas Schmitt пишет: > Hi, > > [resending to bug-grub after rejection message] > > Alexander E. Patrakov wrote: >>> http://www.syslinux.org/wiki/index.php/Isohybrid > > This is quite independent of what GRUB2 does. > (SYSLINUX and GRUB2 meet at BIOS and EFI, of course.) > >

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
19.12.2015 21:28, Alexander E. Patrakov пишет: 19.12.2015 20:23, Thomas Schmitt пишет: For the investigation i could need: - An ISO produced by grub-mkrescue as used by Alexander. Lean would be nice. Please post download URL. Newest xorriso releases can deduce the used options from the

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
19.12.2015 20:23, Thomas Schmitt пишет: For the investigation i could need: - An ISO produced by grub-mkrescue as used by Alexander. Lean would be nice. Please post download URL. Newest xorriso releases can deduce the used options from the ISO and replay them. Please also tell your

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
19.12.2015 20:53, Thomas Schmitt пишет: I currently try to talk Debian out of nesting partitions, even id the big one is type 0x00. If the discussion is archived somewhere, a pointer to it would be nice to have. My proposal is rather to avoid GPT and to use the EFI option to partition by a

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, Alexander E. Patrakov wrote: > [resending after the rejection, now I am subscribed to both lists] Hm. I got your first reply to Andrei and bug-xorriso after i freed it from the bug-xorriso list jail. Andrei's was on hold too. Hopefully i now exempted both of you from moderator review. ... ah

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Thomas Schmitt
Hi, [resending to bug-grub after rejection message] Alexander E. Patrakov wrote: > > http://www.syslinux.org/wiki/index.php/Isohybrid This is quite independent of what GRUB2 does. (SYSLINUX and GRUB2 meet at BIOS and EFI, of course.) Andrei Borzenkov wrote: > Command from syslinux wiki does no

[bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
Follow-up Comment #4, bug #46716 (project grub): As requested, further discussion is in the mailing lists. https://lists.gnu.org/archive/html/bug-grub/2015-12/msg00029.html ___ Reply to this item at:

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
[resending after the rejection, now I am subscribed to both lists] 19.12.2015 17:49, Andrei Borzenkov пишет: 19.12.2015 14:37, Alexander E. Patrakov пишет: Some old BIOSes (including the one in Intel DG965SS desktop board) refuse to treat a USB drive as bootable if it has no bootable MBR parti

[bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
Follow-up Comment #3, bug #46716 (project grub): Protective MBR is not expected to contain any other partitions either. In any case - it is not really a bug to fix in GRUB. MBR is crearedtby xorriso; and what /should/ be created here is better discussed on grub-devel for wider exposure.

[bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
Follow-up Comment #2, bug #46716 (project grub): OK, Tiano Core validates the protective partition as follows: // // Verify that the Protective MBR is valid // for (Index = 0; Index < MAX_MBR_PARTITIONS; Index++) { if (ProtectiveMbr->Partition[Index].BootIndicator == 0x00 && P

Re: [bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Andrei Borzenkov
19.12.2015 14:37, Alexander E. Patrakov пишет: > > Some old BIOSes (including the one in Intel DG965SS desktop board) refuse to > treat a USB drive as bootable if it has no bootable MBR partitions. This > applies to all iso images that are created by grub-mkrescue and written to a > USB flash driv

[bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
Follow-up Comment #1, bug #46716 (project grub): Well, changing this byte also makes the iso unbootable from flash drive in OVMF (i.e. in QEMU in UEFI mode). ___ Reply to this item at: _

[bug #46716] Protective MBR partition is not marked as bootable

2015-12-19 Thread Alexander E. Patrakov
URL: Summary: Protective MBR partition is not marked as bootable Project: GNU GRUB Submitted by: patrakov Submitted on: Сбт 19 Дек 2015 11:37:38 Category: Booting Sever