[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fresh install UEFI debian-10.2.0-amd64-xfce-CD-1 will not boot



On 2020-01-29 23:07, Keith Bainbridge wrote:
Good afternoon

I take it that you have booted the .iso and run the installer - on
to a separate usb stick.


Where did you install grub? If by chance it installed on to sda, then allowing the PC to just boot should run grub and offer the choice of booting debian or win10.

What happens if boot from the .iso and plug the other usb in. It should open thunar and list the contents.

Running gparted from the .iso and looking at the other usb stick may show something of interest - like did it set to bootable. Are there boot and efi partitions as well as a system partition - showing about
5G used?


I'm working on instinct, so feel free to ignore me.


On 2020-01-29 23:22, Alexander V. Makartsev wrote:
Here is info about one of my disks, GPT partition table with EFI partition, boots fine into UEFI mode without Secure Boot. It's a dual-boot setup (Debian 10 + Windows 10) with GRUB bootloader.

Information about partitions from "gdisk" utility: Disk /dev/sdb: 500118192 sectors, 238.5 GiB Model: KINGSTON Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): 20DF70EC-1097-4EE4-9BBE-569BE071281B Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 500118158 Partitions
will be aligned on 2048-sector boundaries Total free space is 2669
sectors (1.3 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name 1 2048
923647   450.0 MiB   2700  Basic data partition 2 923648
1128447   100.0 MiB   EF00  EFI system partition 3 1128448
1161215   16.0 MiB    0C01  Microsoft reserved ... 4 1161216
163842047   77.6 GiB    0700  Basic data partition 5 163842048
500117503   160.3 GiB   8300  Debian-system


On 2020-01-30 00:40, didier.gaumet@gmail.com wrote:
In your case (USB removable device), perhaps (not sure) you will succeed with the --removable or --force-extra-removable options of grub-install. There is a similar option in the expert mode of installation of Debian at the grub installation step.

I have already run Debian in UEFI (non Legacy mode), GPT and Secure Boot with no problem (Secure Boot mode: briefly, I am using
Insecure Mode).


On 2020-01-30 01:04, Phil Wyett wrote:
Hi,

I am running buster with two disk setup in laptop (PC Specialist - Lafite 3) - GPT, (U)EFI and Secure Boot enabled. First disk (NVME) is> '/' and second (SSD) is '/home'.

Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk model: WDS500G3X0C-00SJG0 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: gpt Disk identifier: 245E1C83-E8A6-4F79-90E6-BB2020B3E161

Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1953791 1951744 953M EFI System /dev/nvme0n1p2 914272256 976771071 62498816 29.8G Linux swap /dev/nvme0n1p3 1953792 914272255 912318464 435G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk model: Seagate BarraCud 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: gpt Disk identifier: 841BBA13-490B-4A02-BB6A-80C088CF51B0

Device Start End Sectors Size Type /dev/sda1 2048 976771071 976769024 465.8G Linux filesystem

Regards

Phil


On 2020-01-30 16:38, Steve McIntyre wrote:
Unetbootin has caused many difficult support problems over the years,
wasting lots of time for me and other Debian developers. We've worked
very hard to make the installer boot and run on diverse computers,
then unetbootin has broken things for users. We explicitly
disrecommend it for that exact reason.

This is even more important with new features like UEFI and Secure
Boot.

Rufus is a different matter - it has a "DD mode" which*is*  useful
for writing an image to a USB stick unmolested.


On 2020-01-30 16:47, Steve McIntyre wrote:
OK. How exactly have you partitioned the target USB drive? What
files are on the EFI System Partition there? Did you tell the
installer to also install grub to the removable media path? That
would be my first guess for what's missing.



On 2020-01-30 16:47, Steve McIntyre wrote:
You don't need to tell grub-install to use x86_64-efi-signed as a target - it should work things out automatically and install shim etc. as needed. There is*not* a modinfo.sh for the signed grub packaging as the signed binaries we build for grub are monolithic (i.e. no loadable modules allowed).

Thank you, everyone, for the replies.  :-)


Given that the 'grub-install ...' idea did not fix the problem, and also made changes to the "buster" stick, I decided it would be best to wipe the target USB stick and start over.


Here is the d-i image I started with:

2020-01-30 21:22:29 dpchrist@tinkywinky ~/samba/dpchrist/iso/debian/10.2.0/amd64
$ ll debian-10.2.0-amd64-xfce-CD-1.iso
-rw-r--r--+ 1 dpchrist dpchrist 670040064 2020-01-28 19:07:57 debian-10.2.0-amd64-xfce-CD-1.iso


This page gives general guidance for verifying the image, but not explicit instructions:

https://www.debian.org/CD/verify


The SHA256 checksum is correct:

2020-01-30 21:22:31 dpchrist@tinkywinky ~/samba/dpchrist/iso/debian/10.2.0/amd64
$ sha256sum -c SHA256SUMS 2>&1 | grep debian-10.2.0-amd64-xfce-CD-1.iso
debian-10.2.0-amd64-xfce-CD-1.iso: OK


I burned the image to a USB stick with a script that issued this command:

+ /bin/cat /home/dpchrist/samba/dpchrist/iso/debian/10.2.0/amd64/debian-10.2.0-amd64-xfce-CD-1.iso | /bin/dd of=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_xxxxxxxxxxxxxxxxxxxx-0:0 bs=1048576 count=639 iflag=fullblock status=progress


The script verified the image against the installer stick, and they matched:

+ /usr/bin/cmp <(/bin/dd if=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_xxxxxxxxxxxxxxxxxxxx-0:0 bs=1048576 count=639 iflag=fullblock status=progress) <(/bin/cat /home/dpchrist/samba/dpchrist/iso/debian/10.2.0/amd64/debian-10.2.0-amd64-xfce-CD-1.iso)


I zeroed another USB stick and used a Dell PowerEdge T30 in UEFI Secure Boot mode to install Debian onto the blank USB stick:

    Insert debian-10.2.0-amd64-xfce-CD-1 USB flash drive into
    front top USB 3.0 port.

    Insert wiped SanDisk Ultra Fit USB 3.0 16 GB flash drive into
    front bottom USB 3.0 port.

    Boot.

    Debian GNU/Linux 10.2.0

    Debian GNU/Linux UEFI Installer menu	Install
    Language					C
    Continent or region				North America
    Country, territory or area			United States
    Keymap to use				American English
    Primary network interface			eth0
    Hostname					buster
    Domain name					tracy.holgerdanske.com
    Root password				********
    Full name for the new user			debian
    Username for your account			debian
    Choose a password for the new user		********
    Select your time zone			Pacific
    Partitioning method				manual

    Press Alt+F2 and open second virtual terminal.  Installation media
    is /dev/sdb and blank media is /dev/sda.

    Select sda and create empty partition table.

    Encrypted volume (sda3_crypt) - 1.0 GB Linux device-mapper (crypt)
         #1      1.0 GB    f  swap                      swap
    Encrypted volume (sda4_crypt) - 13.0 GB Linux device-mapper (crypt)
         #1     13.0 GB    f  btrfs                     /
    SCSI5 (0,0,0) (sda) - 15.6 GB SanDisk Ultra Fit
	         1.0 MB       FREE SPACE
	 #1    499.1 MB    F  ESP         buster_esp
	 #2      1.0 GB    F  btrfs       buster_boot   /boot
	 #3      1.0 GB    K  crypto      buster_swap   (sda3_crypt)
	 #4     12.0 GB    K  crypto      buster_root   (sda4_crypt)
                51.4 MB       FREESPACE
    SCSI6 (0,0,0) (sdb) - 15.6 GB SanDisk Ultra Fit

    Finish partitioning and write changes to disk
    Use a network mirror			No
    Participate in the package usage survey	No
    Choose software to install
	Debian desktop environment
	    Xfce
	standard system utilities
    Installation complete			Continue

    Power down at POST.

    Remove installation media.


Note that I was never prompted to install GRUB.


Inserting the installed stick into my laptop:

2020-01-30 21:34:58 root@tinkywinky ~
# cat /etc/debian_version
9.11

2020-01-30 21:35:43 root@tinkywinky ~
# uname -a
Linux tinkywinky 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux

2020-01-30 21:38:50 root@tinkywinky ~
# dmesg | tail -n 16
[33217.364052] usb 1-3: new high-speed USB device number 6 using ehci-pci
[33217.513185] usb 1-3: New USB device found, idVendor=0781, idProduct=5583
[33217.513195] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33217.513202] usb 1-3: Product: Ultra Fit
[33217.513208] usb 1-3: Manufacturer: SanDisk
[33217.513214] usb 1-3: SerialNumber: xxxxxxxxxxxxxxxxxxxx
[33217.513790] usb-storage 1-3:1.0: USB Mass Storage device detected
[33217.519480] scsi host2: usb-storage 1-3:1.0
[33218.529025] scsi 2:0:0:0: Direct-Access SanDisk Ultra Fit 1.00 PQ: 0 ANSI: 6
[33218.531282] sd 2:0:0:0: Attached scsi generic sg2 type 0
[33218.532376] sd 2:0:0:0: [sdb] 30375936 512-byte logical blocks: (15.6 GB/14.5 GiB)
[33218.533362] sd 2:0:0:0: [sdb] Write Protect is off
[33218.533371] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[33218.534362] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[33218.568446]  sdb: sdb1 sdb2 sdb3 sdb4
[33218.573105] sd 2:0:0:0: [sdb] Attached SCSI removable disk

2020-01-30 21:38:52 root@tinkywinky ~
# parted /dev/sdb u s p free
Model: SanDisk Ultra Fit (scsi)
Disk /dev/sdb: 30375936s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start      End        Size       File system  Name         Flags
        34s        2047s      2014s      Free Space
 1      2048s      976895s    974848s    fat32        buster_esp boot, esp
 2      976896s    2930687s   1953792s   btrfs        buster_boot
 3      2930688s   4884479s   1953792s                buster_swap
 4      4884480s   30275583s  25391104s               buster_root
        30275584s  30375902s  100319s    Free Space

2020-01-30 21:40:36 root@tinkywinky ~
# mount -o ro /dev/sdb1 /mnt/sdb1

2020-01-30 21:41:05 root@tinkywinky ~
# mount | grep sdb1
/dev/sdb1 on /mnt/sdb1 type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

2020-01-30 21:41:37 root@tinkywinky ~
# ls -AlR /mnt/sdb1
/mnt/sdb1:
total 4
drwxr-xr-x 3 root root 4096 Jan 30 19:42 EFI

/mnt/sdb1/EFI:
total 4
drwxr-xr-x 2 root root 4096 Jan 30 19:43 debian

/mnt/sdb1/EFI/debian:
total 5208
-rwxr-xr-x 1 root root     108 Jan 30 19:43 BOOTX64.CSV
-rwxr-xr-x 1 root root 1206824 Jan 30 19:43 fbx64.efi
-rwxr-xr-x 1 root root     121 Jan 30 19:43 grub.cfg
-rwxr-xr-x 1 root root 1529200 Jan 30 19:43 grubx64.efi
-rwxr-xr-x 1 root root 1261192 Jan 30 19:43 mmx64.efi
-rwxr-xr-x 1 root root 1322936 Jan 30 19:43 shimx64.efi


Inserting the installed stick into the Dell PowerEdge T30 front top USB 3.0 port, powering up, and pressing F2 to enter Setup:

General -> Boot Sequence -> debian -> View

    Boot Option Name
    debian

    File System List
    VenHw(99E275E7-75A0-4B37-A2E6-C5385E6C00CB)

    File Name
    \EFI\BOOT\BOOTX64.EFI


I find it strange that there is no EFI\BOOT\BOOTX64.EFI in the ESP partition/ filesystem listing, above.


-> Apply -> Exit


System warm boots, then:

No bootable devices found.
Press F1 key to retry boot.
Press F2 ky to reboot into setup.
Press F5 key to run onboard diagnostics.


Suggestions?


David


Reply to: