Bug#1024346: cdrom: debian-11.5.0-amd64-netinst.iso boots to Grub CLI on Dell Optiplex 5090

2022-11-19 Thread Andrew M.A. Cater
Rob - see below, you might want to subscribe to the bug too.

Suggestion is to use firmware .iso and a more verbose dd line to ensure
you've actually written the whole image correctly.

Also, I would suggest enabling TPM and secure boot unless you are *absolutely*
sure that you don't need them. Secure boot is well supported in Debian.

Hope this helps,

Andy Cater

On Fri, Nov 18, 2022 at 08:33:29PM +0100, Franco Martelli wrote:
> On 17/11/22 at 23:11, Andrew M.A. Cater wrote:
> > On Thu, Nov 17, 2022 at 04:46:30PM -0500, Rob Klingsten wrote:
> > > Package: cdrom
> > > Severity: important
> > > Tags: d-i
> > > 
> > > Dear Maintainer,
> > > 
> > > *** Reporter, please consider answering these questions, where 
> > > appropriate ***
> > > 
> > > * What led up to the situation?
> > > * What exactly did you do (or not do) that was effective (or
> > >   ineffective)?
> > > * What was the outcome of this action?
> > > * What outcome did you expect instead?
> > > 
> > > *** End of the template - remove these template lines ***
> > > 
> > > Downloaded debian-11.5.0-amd64-netinst.iso, verified SHA512 signature and 
> > > flashed to USB stick (dd if= of=/dev/sdb). The
> > > Dell Optiplex 5090 is a UEFI-only system. In the BIOS, I previously 
> > > disabled TPM, Secure Boot and Absolute (computer Lojack).
> > > 
> > > Booting from the netinst USB stick, the computer boots into the Grub CLI. 
> > > 'ls' shows the following:
> > > 
> > > (proc) (hd0) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (cd0) 
> > > (cd0,msdos2)
> > > 
> > > There does not appear to be any usable partition detected on the USB 
> > > stick that contains a kernel. The contents of (cd0,msdos2) are
> > > just an 'efi' directory.
> > > 
> > > I have tried multiple USB sticks, downloaded the ISO several times all 
> > > with a good SHA512, tried dd and also cp  /dev/sdb, makes
> > > no difference. I've tried the live Gnome image as well, same problem.
> > > 
> > > I expect the computer to boot properly into the Debian installer.
> > > 
> > 
> > First of all:
> > 
> > It may be better to use a longer dd line and also to use the unofficial
> > firmware image available at 
> > https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.5.0+nonfree/amd64/iso-cd/firmware-11.5.0-amd64-netinst.iso
> > 
> > dd if=firmware-11.5.0-amd64-netinst.iso of=/dev/sdb bs=4M oflag=sync 
> > status=progress
> > 
> > That makes absolutely sure that the transfer is synced to ensure that it is
> > written to the stick and also gives you some idea of how well the transfer
> > is going.
> > 
> > Using the firmware .iso will potentially solve any problems with missing
> > firmwware.
> > 
> > The writing to a stick *should* work well.
> > 
> > All the very best, as ever,
> > 
> > Andy Cater
> > 
> I'm not sure but maybe Rob Klingsten is not on the list so I'm not sure that
> he has read your reply please consider to re-send your answer to
> 1024...@bugs.debian.org
> 
> kind regards
> -- 
> Franco Martelli
> 



Re: 11.6 planning

2022-11-19 Thread Andy
On 17 November 2022 21:33:33 GMT, "Adam D. Barratt"  
wrote:
>Hi,
>
>We've managed to slip behind on getting a bullseye point release
>sorted, again. :-( I realise we're heading towards the holidays at a
>surprising rate of knots, but hopefully we can find a generally
>agreeable date.
>
>Please could you indicate your availability and preferences between:
>
>- December 3rd
>- December 10th
>- December 17th
>
>At this point, the 10th is probably my preference, as I'm likely to be
>busy with work stuff at the tail end of November.
>
>Thanks,
>
>Adam
>
>

Isy and I are available on any of those dates.

I am happy to start things off in Steve's absence, not so sure about finishing 
up on my own though.

/Andy



Bug#1024346: cdrom: debian-11.5.0-amd64-netinst.iso boots to Grub CLI on Dell Optiplex 5090

2022-11-19 Thread r
Thanks, after messing with it for quite awhile, I finally got it to work with 
the standard ISO.

I booted with the Arch live image and did:

wipefs -a /dev/nvme0n1
dd if=/dev/zero of=/dev/nvme0n1 bs=512 count=10

then I used efibootmgr to delete all existing entries.

Once I did that, the netinst booted into the installer immediately. Not sure if 
it was the actual existence of valid partitions on the drive, or just the 
existence of EFI entries in the table.

I can further test to see which scenario it is. I would still consider this a 
bug?




--- Original Message ---
On Saturday, November 19th, 2022 at 07:48, Andrew M.A. Cater 
 wrote:


> 
> 
> Rob - see below, you might want to subscribe to the bug too.
> 
> Suggestion is to use firmware .iso and a more verbose dd line to ensure
> you've actually written the whole image correctly.
> 
> Also, I would suggest enabling TPM and secure boot unless you are absolutely
> sure that you don't need them. Secure boot is well supported in Debian.
> 
> Hope this helps,
> 
> Andy Cater
> 
> On Fri, Nov 18, 2022 at 08:33:29PM +0100, Franco Martelli wrote:
> 
> > On 17/11/22 at 23:11, Andrew M.A. Cater wrote:
> > 
> > > On Thu, Nov 17, 2022 at 04:46:30PM -0500, Rob Klingsten wrote:
> > > 
> > > > Package: cdrom
> > > > Severity: important
> > > > Tags: d-i
> > > > 
> > > > Dear Maintainer,
> > > > 
> > > > *** Reporter, please consider answering these questions, where 
> > > > appropriate ***
> > > > 
> > > > * What led up to the situation?
> > > > * What exactly did you do (or not do) that was effective (or
> > > > ineffective)?
> > > > * What was the outcome of this action?
> > > > * What outcome did you expect instead?
> > > > 
> > > > *** End of the template - remove these template lines ***
> > > > 
> > > > Downloaded debian-11.5.0-amd64-netinst.iso, verified SHA512 signature 
> > > > and flashed to USB stick (dd if= of=/dev/sdb). The
> > > > Dell Optiplex 5090 is a UEFI-only system. In the BIOS, I previously 
> > > > disabled TPM, Secure Boot and Absolute (computer Lojack).
> > > > 
> > > > Booting from the netinst USB stick, the computer boots into the Grub 
> > > > CLI. 'ls' shows the following:
> > > > 
> > > > (proc) (hd0) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (cd0) 
> > > > (cd0,msdos2)
> > > > 
> > > > There does not appear to be any usable partition detected on the USB 
> > > > stick that contains a kernel. The contents of (cd0,msdos2) are
> > > > just an 'efi' directory.
> > > > 
> > > > I have tried multiple USB sticks, downloaded the ISO several times all 
> > > > with a good SHA512, tried dd and also cp  /dev/sdb, makes
> > > > no difference. I've tried the live Gnome image as well, same problem.
> > > > 
> > > > I expect the computer to boot properly into the Debian installer.
> > > 
> > > First of all:
> > > 
> > > It may be better to use a longer dd line and also to use the unofficial
> > > firmware image available at 
> > > https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.5.0+nonfree/amd64/iso-cd/firmware-11.5.0-amd64-netinst.iso
> > > 
> > > dd if=firmware-11.5.0-amd64-netinst.iso of=/dev/sdb bs=4M oflag=sync 
> > > status=progress
> > > 
> > > That makes absolutely sure that the transfer is synced to ensure that it 
> > > is
> > > written to the stick and also gives you some idea of how well the transfer
> > > is going.
> > > 
> > > Using the firmware .iso will potentially solve any problems with missing
> > > firmwware.
> > > 
> > > The writing to a stick should work well.
> > > 
> > > All the very best, as ever,
> > > 
> > > Andy Cater
> > 
> > I'm not sure but maybe Rob Klingsten is not on the list so I'm not sure that
> > he has read your reply please consider to re-send your answer to
> > 1024...@bugs.debian.org
> > 
> > kind regards
> > --
> > Franco Martelli



Bug#1024346: cdrom: debian-11.5.0-amd64-netinst.iso boots to Grub CLI on Dell Optiplex 5090

2022-11-19 Thread Steve McIntyre
Hi Rob,

I see Andy has been helping you!

On Sat, Nov 19, 2022 at 03:38:33PM +, r...@tekhax.io wrote:
>Thanks, after messing with it for quite awhile, I finally got it to work with 
>the standard ISO.
>
>I booted with the Arch live image and did:
>
>wipefs -a /dev/nvme0n1
>dd if=/dev/zero of=/dev/nvme0n1 bs=512 count=10
>
>then I used efibootmgr to delete all existing entries.
>
>Once I did that, the netinst booted into the installer
>immediately. Not sure if it was the actual existence of valid
>partitions on the drive, or just the existence of EFI entries in the
>table.

If your system has (had) existing EFI boot entries, then the firmware
would normally attempt to boot those. AIUI you selected the USB stick
and that failed to boot?

The partitioning on Debian images is slightly complex, to make them
work as a so-called "isohybrid". (This means that you can use the same
image both when written to optical media and when written to a USB
stick.) But the partitions should still show up. For example, looking
at the netinst image file here:

$ fdisk -l debian-11.5.0-amd64-netinst.iso
Disk debian-11.5.0-amd64-netinst.iso: 382 MiB, 400556032 bytes, 782336 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5004a58b

Device   Boot StartEnd Sectors  Size Id Type
debian-11.5.0-amd64-netinst.iso1 *0 782335  782336  382M  0 Empty
debian-11.5.0-amd64-netinst.iso2   4064   92475184  2.5M ef EFI 
(FAT-12/16/32)

The first partition covers the whole of the image; the second one is
*just* the EFI boot setup that you've seen already. If you're only
seeing the second partition then it appears there is some other
problem here.

Checking your original report here, you said you wrote to the USB
stick using dd if= of=/dev/sdb. Did you run "sync" or
similar to make 100% sure that the image was all flushed to the USB
stick before removing it / booting it? Unless you tell it otherwise,
Linux will cache writes to USB drives and it can appear that writes
have completed well before the data is actually written to the
drive. This is a common cause of confusion for people in this
situation, I'm afraid.

Andy already mentioned a different way to force writing data, using
the "oflag=sync" option to dd. Using that with "bs=4M" should also
give good performance when writing out an image to a USB stick.

Could you possibly retry this and check if it works for you please?

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
< liw> everything I know about UK hotels I learned from "Fawlty Towers"



Re: 11.6 planning

2022-11-19 Thread Ansgar
On Thu, 2022-11-17 at 21:33 +, Adam D. Barratt wrote:
> Please could you indicate your availability and preferences between:
> 
> - December 3rd

No time here.

> - December 10th
> - December 17th

These are still free.

Ansgar



Bug#1024346: cdrom: debian-11.5.0-amd64-netinst.iso boots to Grub CLI on Dell Optiplex 5090

2022-11-19 Thread r
Thanks for the detailed message. I started everything over to try to reproduce 
the problem.

I wiped out the NVMe drive again (wipefs -a and dd if=/dev/zero of=/dev/sdb 
bs=512 count=10), and re-installed Pop!OS 22.04 non-NVidia version, which 
was successful. The computer was operating normally and booting into Pop!OS, no 
problem.

I then downloaded a new Debian 11.5.0 netinst ISO, checked the SHA512, wrote it 
to the USB drive with extra parameters mentioned earlier.

I powered off the computer, inserted the USB 3.0 stick into a USB 3.0 port and 
powered on. I hit F12 to reach the Dell one-time boot menu and chose the USB 
stick to boot from.

It immediately boots into the Grub CLI as I described before. So either the 
presence of the Pop!OS partition or the presence of the entry in the UEFI boot 
table seems to be confusing the Debian USB stick.






--- Original Message ---
On Saturday, November 19th, 2022 at 17:10, Steve McIntyre  
wrote:


> 
> 
> Hi Rob,
> 
> I see Andy has been helping you!
> 
> On Sat, Nov 19, 2022 at 03:38:33PM +, r...@tekhax.io wrote:
> 
> > Thanks, after messing with it for quite awhile, I finally got it to work 
> > with the standard ISO.
> > 
> > I booted with the Arch live image and did:
> > 
> > wipefs -a /dev/nvme0n1
> > dd if=/dev/zero of=/dev/nvme0n1 bs=512 count=10
> > 
> > then I used efibootmgr to delete all existing entries.
> > 
> > Once I did that, the netinst booted into the installer
> > immediately. Not sure if it was the actual existence of valid
> > partitions on the drive, or just the existence of EFI entries in the
> > table.
> 
> 
> If your system has (had) existing EFI boot entries, then the firmware
> would normally attempt to boot those. AIUI you selected the USB stick
> and that failed to boot?
> 
> The partitioning on Debian images is slightly complex, to make them
> work as a so-called "isohybrid". (This means that you can use the same
> image both when written to optical media and when written to a USB
> stick.) But the partitions should still show up. For example, looking
> at the netinst image file here:
> 
> $ fdisk -l debian-11.5.0-amd64-netinst.iso
> Disk debian-11.5.0-amd64-netinst.iso: 382 MiB, 400556032 bytes, 782336 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x5004a58b
> 
> Device Boot Start End Sectors Size Id Type
> debian-11.5.0-amd64-netinst.iso1 * 0 782335 782336 382M 0 Empty
> debian-11.5.0-amd64-netinst.iso2 4064 9247 5184 2.5M ef EFI (FAT-12/16/32)
> 
> The first partition covers the whole of the image; the second one is
> just the EFI boot setup that you've seen already. If you're only
> seeing the second partition then it appears there is some other
> problem here.
> 
> Checking your original report here, you said you wrote to the USB
> stick using dd if= of=/dev/sdb. Did you run "sync" or
> 
> similar to make 100% sure that the image was all flushed to the USB
> stick before removing it / booting it? Unless you tell it otherwise,
> Linux will cache writes to USB drives and it can appear that writes
> have completed well before the data is actually written to the
> drive. This is a common cause of confusion for people in this
> situation, I'm afraid.
> 
> Andy already mentioned a different way to force writing data, using
> the "oflag=sync" option to dd. Using that with "bs=4M" should also
> give good performance when writing out an image to a USB stick.
> 
> Could you possibly retry this and check if it works for you please?
> 
> --
> Steve McIntyre, Cambridge, UK. st...@einval.com
> < liw> everything I know about UK hotels I learned from "Fawlty Towers"