[bug #55118] ISO file generation for testing a boot menu

2018-11-27 Thread Thomas Schmitt
Follow-up Comment #3, bug #55118 (project grub): Hi, i assume the admins of this bug tracker begin to see our conversation as being off topic. Maybe you should describe your use case at help-g...@gnu.org and ask for advise. See https://lists.gnu.org/mailman/listinfo/help-grub I get the

[bug #55118] ISO file generation for testing a boot menu

2018-11-27 Thread Thomas Schmitt
Follow-up Comment #1, bug #55118 (project grub): Hi, > linux (xyz)/syslinux/isolinux.bin This is the SYSLINUX/ISOLINUX boot image for El Torito. Isn't that a use case for chain loading rather than for OS start by "linux" ?

Re: HP ProBook x360 11 G1 EE incompatible with grub

2017-12-15 Thread Thomas Schmitt
Hi, Michel Bouissou wrote: > Well, Knoppix *DOES BOOT OK* on said machine, > [...] no error message is displayed, and in the end, it runs. So the presence of ISO 9660 on the same medium is not the problem. I am out of guesses. Everything points to something being missing or going wrong in GRUB.

Re: HP ProBook x360 11 G1 EE incompatible with grub

2017-12-11 Thread Thomas Schmitt
Hi, Michel Bouissou wrote: > The process was to boot on the original key (or CDROM) that would be a > "temporary" Tails ISO dd'ed, and from there use the “tails installation > program" to create a second key, > [...] > # file -s /dev/sdb > /dev/sdb: DOS/MBR boot sector; partition 1 : ID=0xee,

Re: HP ProBook x360 11 G1 EE incompatible with grub

2017-12-11 Thread Thomas Schmitt
Hi, Michel Bouissou wrote: > I'm not in a situation of testing new USB keys right now, If this ever changes, then i advise to test a grub-mkrescue made ISO. I assume that it has the best chances to get the attention of GRUB developers. > *** Keys booting OK out of the box : > - Tails :

Re: HP ProBook x360 11 G1 EE incompatible with grub

2017-12-11 Thread Thomas Schmitt
Hi, Michel Bouissou wrote: > After having disabled Secure boot, I have discovered that none of the > usual (curent, latest versions as of 2017/12) Linux live USB sticks > (among : Ubuntu, Mint, Debian, Manjaro, PartedMagic) was able to boot on > this machine. I assume the boot success depends

Re: Problem with ISO9660 and files stored on multiple extents

2017-02-16 Thread Thomas Schmitt
Hi, Carlo Caione wrote: > > I think that the problem > > here is that endless.squash has been stored in two extents in the > > ISO9660 and GRUB doesn't deal fine with that (also according to this > > comment > > http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/iso9660.c#n960 Andrei

Re: Re-3: grub-mkconfig does not accept UTF-8-coded grub files

2017-01-17 Thread Thomas Schmitt
Hi, Kim Olsen wrote: > Libre Office Writer 4.3.3.2 creates UTF-8-coded text files with three > special characters at the beginning of the file. > ef bb bf ... That's the Byte-Order-Mark for UTF-8, where it is quite useless, as UTF-8 offers no choice of byte order.

Re: Rock Ridge features in grub-mkrescue

2016-04-27 Thread Thomas Schmitt
Hi, i meanwhile decided to let xorrisofs option --norock revoke the -find job which might have been ordered by option -r. http://libburnia-project.org/changeset/5695 Now for the patches. -- My own proposal would need a

Re: Rock Ridge features in grub-mkrescue

2016-04-26 Thread Thomas Schmitt
Hi, the only workaround i see is a xorriso wrapper script which manipulates the xorriso arguments. E.g. by adding a new case to the sed runs at http://libburnia-project.org/browser/libisoburn/trunk/frontend/grub-mkrescue-sed.sh#L171 Free Software Supporter wrote: > Currently, however, when

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

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

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

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

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-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: 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

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

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

Each grub-mkrescue run leaves a file in /tmp/

2015-12-27 Thread Thomas Schmitt
Hi, when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run. Names are like: /tmp/grub.00529W Content is always the same: insmod part_acorn insmod part_amiga insmod part_apple insmod part_bsd insmod part_dfly insmod part_dvh insmod

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

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

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

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 ?

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

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

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

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

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

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

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+

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 >

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

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

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

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

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 \

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: 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

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

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: 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: [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

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

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

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

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.

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. ...