1) write environment failure

     grub> save_env 123
     error: failure writing sector 0xe153800 to `hd0'.

2) LBA of grub environment variable file
ubuntu@ubuntu:~$ sudo hdparm --fibmap /boot/grub/grubenv
[sudo] password for ubuntu: 

/boot/grub/grubenv:
 filesystem blocksize 4096, begins at LBA 1050624; assuming 512 byte sectors.
 byte_offset  begin_LBA    end_LBA    sectors
           0  236271616  236271623          8
=> 0xE153800 - 0xE153807

3) From 1) and 2), the sector number to be wroten is correct

4) debug message:
lib/disk.c:61: Writing `hd0'...
disk/efi/efidisk.c:602: writing 0x2 sectors at the sector 0xe153800 to hd0
kern/disk.c:295: Closing `hd0'.
disk/efi/efidisk.c:553: closing hd0
error: failure writing sector 0xe153800 to `hd0'.

grub_efidisk_write()
    ->grub_efidisk_readwrite()
          ->efi_call_5()...

5) so looks the issue should be related with APM's UEFI firmware:
        X-Gene Merlin Board
        Boot firmware (version 2.0.0 built at 12:52:11 on Sep  1 2015)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1512193

Title:
  arm64: report 'error: failure writing sector 0x19df788 to `hd0'' after
  a fresh install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1512193/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to