キーポイント:

キーポイント:

この質問は、次の理由でスーパーユーザーから移行されました。いいえフィードバックがあります。ここでより良い運があることを願っています。

私の問題は、被験者が話すよりも深いかもしれません。

キーポイント:

私の基本的な問題は、「ライブ」インストールメディアから起動してもGRUB2が完全にインストールされないことです。その他すべての質問〜らしい結果になります。アップデート3の一部の詳細は、参考のためにすべての記録を残しておきます。

いくつかの歴史:

  • ワークステーションは、SSDのルート(sda2、パーティションは消えた)とは別の/ homeディスク(もう消えます)があるDebian SIDシステムで始まりました。
  • スワップ領域(sda4)を再利用するLinux Mint 20インストール(現在sda5)を追加しました。
  • プライマリディスクにエラーが発生し始め(SMARTによると)、それをraidz2のZFSアレイ(現在sdc..sdf)に置き換えました。
  • sda DOSパーティションテーブルをGPTに変換しました。
  • この場合、GRUBはまだ「debian」ブートメニューを表示します。
  • 新しいディスク(sdb)をマウントし、その上にWindows10をインストールしました。気づく:
    • 他のパーティションの「偶然の更新」を防ぐために、インストール中にすべてのディスクを削除(物理的に切断)しました。
    • ディスクは実際にリムーバブルベイにあるので可能「紛失」され、他のすべてのドライブ名がsdb..sdeに転送されることがあります。
    • ディスクは実際にリムーバブルベイにあるため、変更できます(実際にはバックアップに使用します)。
  • 後で Debian パーティションが使用されなかったので削除しました。

現状は少し変です。

  • BIOS「ブートオーバーレイメニュー」が表示されます。
    • Debianブートメニュー(動作しません。選択した場合は左上に点滅するカーソルのみが表示されます)。
    • Windowsスタートアップマネージャ(正常に動作し、Win10を正しく起動する)
    • Disk0(sda、機能的、Linux Mintを起動)
    • 他のすべてのディスク(試行しない)
  • BIOSのデフォルトブート設定はDisk0ですが、いいえ自動起動、毎回「開始の上書き」が必要です。
  • Linux Mintrebootコマンドは BIOS を経由していないようで、起動を無視できないため (たとえば、方法が見つからないため) 動作が中断されます。
  • update-grubwinパーティションがマウントされていても何も変更されず、Winは表示されません(下記参照)。
  • install-grub /dev/sdaUEFI BIOSがあるため動作を拒否します。
  • grub-install --target=x86_64-efi --efi-directory=/tmp/esp --bootloader-id=GRUB失敗しました(下記参照)。
  • grub-install --target=i386-pc --efi-directory=/tmp/esp --bootloader-id=GRUBそれでも失敗します(他のメッセージを含む)。

この状況をどのように修正できますか?

mcon@cinderella:~$ sudo -i
root@cinderella:~# mount /dev/sdb4 /mnt
root@cinderella:~# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0   476M  0 part 
├─sda4   8:4    0   3,7G  0 part [SWAP]
└─sda5   8:5    0 143,1G  0 part /
sdb      8:16   0 698,7G  0 disk 
├─sdb1   8:17   0   499M  0 part 
├─sdb2   8:18   0   100M  0 part 
├─sdb3   8:19   0    16M  0 part 
└─sdb4   8:20   0   698G  0 part /mnt
sdc      8:32   0   2,7T  0 disk 
├─sdc1   8:33   0   2,7T  0 part 
└─sdc9   8:41   0     8M  0 part 
sdd      8:48   0   2,7T  0 disk 
├─sdd1   8:49   0   2,7T  0 part 
└─sdd9   8:57   0     8M  0 part 
sde      8:64   0   2,7T  0 disk 
├─sde1   8:65   0   2,7T  0 part 
└─sde9   8:73   0     8M  0 part 
sdf      8:80   0   2,7T  0 disk 
├─sdf1   8:81   0   2,7T  0 part 
└─sdf9   8:89   0     8M  0 part 
root@cinderella:~# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-53-generic
Found initrd image: /boot/initrd.img-5.4.0-53-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
Found linux image: /boot/vmlinuz-5.4.0-40-generic
Found initrd image: /boot/initrd.img-5.4.0-40-generic
Found linux image: /boot/vmlinuz-5.4.0-26-generic
Found initrd image: /boot/initrd.img-5.4.0-26-generic
device-mapper: reload ioctl on osprober-linux-sdc1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdd1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sde1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdf1  failed: Device or resource busy
Command failed.
done
root@cinderella:~# mkdir /tmp/esp
root@cinderella:~# mount /dev/sda1 /tmp/esp
root@cinderella:~# grub-install --target=x86_64-efi --efi-directory=/tmp/esp --bootloader-id=GRUB
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
root@cinderella:~# grub-install --target=i386-pc --efi-directory=/tmp/esp --bootloader-id=GRUB
Installing for i386-pc platform.
grub-install: error: install device isn't specified.

アップデート1:

ノート:私〜らしいここにいくつかの質問をする理由は、私の根本的な問題がこれらの問題の1つであり、これが私が報告した症状のすべて(またはほとんど)を引き起こしていると強く疑うからです。私はそれらが互いに関連しない問題であるとは信じていません。

grub-mkconfig実際に私が行ったアドバイス(以下のリストを参照)に従ってするrunningos-probeですが、確かにそうです。いいえwin10のインストール/dev/sdb4とインストールを参照してください/mnt

sdc1sdf1..(私の配列;正常なようです)にエラーが表示されますが、まったくzfs言及していません。sdb

追加の提案がありますか?

mcon@cinderella:~$ sudo -i
root@cinderella:~# mount /dev/sdb4 /mnt
root@cinderella:~# apt install os-prober
Reading package lists... Done
Building dependency tree       
Reading state information... Done
os-prober is already the newest version (1.74ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@cinderella:~# grub-mkconfig
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
else
  search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=10
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 10 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
Found linux image: /boot/vmlinuz-5.4.0-54-generic
Found initrd image: /boot/initrd.img-5.4.0-54-generic
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
    else
      search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
    fi
    linux   /boot/vmlinuz-5.4.0-54-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro  quiet splash $vt_handoff
    initrd  /boot/initrd.img-5.4.0-54-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
    menuentry 'Ubuntu, with Linux 5.4.0-54-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-54-generic-advanced-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-54-generic ...'
        linux   /boot/vmlinuz-5.4.0-54-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-54-generic
    }
    menuentry 'Ubuntu, with Linux 5.4.0-54-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-54-generic-recovery-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-54-generic ...'
        linux   /boot/vmlinuz-5.4.0-54-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-54-generic
    }
Found linux image: /boot/vmlinuz-5.4.0-53-generic
Found initrd image: /boot/initrd.img-5.4.0-53-generic
    menuentry 'Ubuntu, with Linux 5.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-53-generic-advanced-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-53-generic ...'
        linux   /boot/vmlinuz-5.4.0-53-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-53-generic
    }
    menuentry 'Ubuntu, with Linux 5.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-53-generic-recovery-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-53-generic ...'
        linux   /boot/vmlinuz-5.4.0-53-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-53-generic
    }
Found linux image: /boot/vmlinuz-5.4.0-26-generic
Found initrd image: /boot/initrd.img-5.4.0-26-generic
    menuentry 'Ubuntu, with Linux 5.4.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-advanced-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-26-generic ...'
        linux   /boot/vmlinuz-5.4.0-26-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-26-generic
    }
    menuentry 'Ubuntu, with Linux 5.4.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-recovery-cb358c7d-8b36-47d5-b59d-fd66e2b1ef74' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        else
          search --no-floppy --fs-uuid --set=root cb358c7d-8b36-47d5-b59d-fd66e2b1ef74
        fi
        echo    'Loading Linux 5.4.0-26-generic ...'
        linux   /boot/vmlinuz-5.4.0-26-generic root=UUID=cb358c7d-8b36-47d5-b59d-fd66e2b1ef74 ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.4.0-26-generic
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
device-mapper: reload ioctl on osprober-linux-sdc1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdd1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sde1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdf1  failed: Device or resource busy
Command failed.
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
done

アップデート2:

アドバイスに従うここGRUBを完全に再インストールしました。しばらくして状況が変わるかどうかを見てみましょう(それでもwin10はまだないようです)。

root@cinderella:~# apt-get install --reinstall grub-efi-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  grub-efi-amd64-bin grub-efi-amd64-signed
The following packages will be REMOVED:
  grub-gfxpayload-lists grub-pc
The following NEW packages will be installed:
  grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 1.219 kB of archives.
After this operation, 11,6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://es-mirrors.evowise.com/ubuntu focal-updates/main amd64 grub-efi-amd64-bin amd64 2.04-1ubuntu26.6 [703 kB]
Get:2 http://es-mirrors.evowise.com/ubuntu focal-updates/main amd64 grub-efi-amd64 amd64 2.04-1ubuntu26.6 [46,7 kB]
Get:3 http://es-mirrors.evowise.com/ubuntu focal-updates/main amd64 grub-efi-amd64-signed amd64 1.142.8+2.04-1ubuntu26.6 [469 kB]
Fetched 1.219 kB in 1s (1.030 kB/s)            
Preconfiguring packages ...
(Reading database ... 466657 files and directories currently installed.)
Removing grub-pc (2.04-1ubuntu26.6) ...
Removing grub-gfxpayload-lists (0.7) ...
Selecting previously unselected package grub-efi-amd64-bin.
(Reading database ... 466635 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64-bin_2.04-1ubuntu26.6_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.04-1ubuntu26.6) ...
Selecting previously unselected package grub-efi-amd64.
Preparing to unpack .../grub-efi-amd64_2.04-1ubuntu26.6_amd64.deb ...
Unpacking grub-efi-amd64 (2.04-1ubuntu26.6) ...
Selecting previously unselected package grub-efi-amd64-signed.
Preparing to unpack .../grub-efi-amd64-signed_1.142.8+2.04-1ubuntu26.6_amd64.deb ...
Unpacking grub-efi-amd64-signed (1.142.8+2.04-1ubuntu26.6) ...
Setting up grub-efi-amd64-bin (2.04-1ubuntu26.6) ...
Setting up grub-efi-amd64 (2.04-1ubuntu26.6) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-54-generic
Found initrd image: /boot/initrd.img-5.4.0-54-generic
Found linux image: /boot/vmlinuz-5.4.0-53-generic
Found initrd image: /boot/initrd.img-5.4.0-53-generic
Found linux image: /boot/vmlinuz-5.4.0-26-generic
Found initrd image: /boot/initrd.img-5.4.0-26-generic
device-mapper: reload ioctl on osprober-linux-sdc1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdd1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sde1  failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdf1  failed: Device or resource busy
Command failed.
done
Setting up grub-efi-amd64-signed (1.142.8+2.04-1ubuntu26.6) ...
Processing triggers for man-db (2.9.1-1) ...

アップデート2レポート:

再インストール後も変更はありません。それでもBIOSに「debian」起動エントリが表示され(動作しない)、最初の物理ドライブを選択してLinux Mintを起動できます。

アップデート3

@oldfredの提案に従って、次のように起動リカバリを実行してみました。

  • /etc/fstab廃止された参照の削除を修正します/dev/sda2(以前のDebianのインストール、削除されました)。
  • Linux Mintインストールメディア(USBキー)から起動します。

Boot Repairはいくつかの修正を提案し、レビュー後は変更せずに残しました。

結局、間違った結果が出ました。

修理中にエラーが発生しました。

ロックされたESPが検出されました。 /boot/efiパーティション(FAT32、100MB〜250MB、ディスクの起動、起動フラグ)を作成して再試行できます。これはgPartedなどのツールを介して行うことができます。次に、[ブートリカバリ]の[/boot/efiパーティションの分離:]オプションでパーティションを選択します。

インターネット検索の後、私は次のように同意した。

  • ランゲ分離
  • 削除された/dev/sda1(UEFI)パーティション
  • 128MiBパーティション(やはり/dev/sda1異なるサイズ)をフォーマットで再作成しました。FAT32
  • パーティションに起動フラグを設定する
  • 起動回復の再実行
  • Separate /boot/efi partition:実際に以下を指していることを確認してください。/dev/sda1
  • 実行を許可します。
  • 同じ、同じエラーが発生します。

役に立つと思われる場合は、両方の実行のログを使用できます(お問い合わせいただくと、一部のPastebinサイトにアップロードします)。

アップデート4:

ブートディスク()からUEFIパーティションを完全に削除/再作成し、/dev/sda1GRUB2を複数回再インストールしようとすると、次の「安定した」状況が発生します。

  • 手動介入なしで起動すると、Linux Mint()に入ります/dev/sda4
  • BIOSを停止して「代替ブート」を要求すると、BIOSに次のメニューが表示されます。
    [                    empty line                     ]
    [ Windows Boot Manager (P1: ST750LM022 HN-M750MB B) ]
    [           UEFI OS (P0: CT1000MX500SSD4)           ]
    [                P0: CT1000MX500SSD4                ]
    [                P3: TOSHIBA HDWD130                ]
    [                P4: TOSHIBA HDWD130                ]
    [                P5: TOSHIBA HDWD130                ]
    [                P2: TOSHIBA HDWD130                ]
    [             P1: ST750LM022 HN-M750MB B            ]
    [                   Enter Setup                     ]
  • Windows Boot...Win10を正しく起動してください。
  • UEFI OSGRUBメニューが表示されます。
  • GRUBメニュー〜する2つの「Windowsエントリ」がありますが、それを選択すると「無効な署名」メッセージのみが表示され、Linux関連のエントリのみが機能します。

アドバイスしてください。

ベストアンサー1

ここには多くの問題があります。私はWindows 10で欠けている機能のタイトルに表示されている質問に答えるために来ました。

パッケージがインストールされていることを確認してくださいos-proberapt install os-proberそれは行わなければなりません。このアプリケーションは、grub他のオペレーティングシステムを検索するために使用されます。

次に実行しますsudo grub-mkconfig。出力は標準出力として印刷されます。ログには次のような内容が表示されます。

### BEGIN /etc/grub.d/30_os-prober ###
Found Windows 10 on /dev/sda1
menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-967C12CC7C12A6D1' {
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  967C12CC7C12A6D1
        else
          search --no-floppy --fs-uuid --set=root 967C12CC7C12A6D1
        fi
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

そうであれば、実際に os-prober が呼び出されるのを見ることができます。出力に満足したら、コマンドを再実行して/boot/以下のようにパイプします。sudo grub-mkconfig > /boot/grub/grub.cfg

仕組みは次のとおりです。

grub-commonデプロイは/etc/grub.d/30_os-probergrub-mkconfig を介して読み取られ実行されます。次の場合に実行されますos-prober

  1. 存在し(パッケージがインストールされている)
  2. GRUB_DISABLE_OS_PROBER「本物」ではない

おすすめ記事