ラップトップからGrubデュアルブートWindowsとLinuxをロードできません。

ラップトップからGrubデュアルブートWindowsとLinuxをロードできません。

Linuxパーティションの横にWindowsをインストールした後、少しパニックになりました。コンピュータを起動すると、grubがロードされ、Linuxを手動で起動する必要があります。

set root=(x)
linux /boot/xxx root=/dev/yyy
initd /boot/zzz
boot

理論的には、ブート後にupdate-grubを実行できる必要があり、エントリをgrubに追加する必要があります。そうですか?

実際には、ブートパーティションをマウントし、そこにgrubを再インストールして更新し、新しい設定を作成する必要があると思います。 (ここではそれが何であるかわかりません。)

だから:

[17:58:52] marius :: DeepThought  ➜  ~ » sudo grub-install --target=x86_64-efi --efi-directory=/mnt/boot --bootloader-id=GRUB 
Installing for x86_64-efi platform.
Installation finished. No error reported.
[17:59:27] marius :: DeepThought  ➜  ~ » sudo update-grub                   1 ↵
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.9
Found initrd image: /boot/initrd.img-6.2.9
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

私の理解ではこれを行う必要がありますが、うまくいきません。

私もこれを行うことができます:

sudo grub-mkconfig -o /mnt/grub/grub.cfg

しかし、それは役に立ちません。

パーティションがあります:

[18:05:45] marius :: DeepThought  ➜  ~ » sudo blkid   
/dev/nvme0n1p1: UUID="53FC-45F0" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="a2ef2964-433c-4573-bbce-32e00984ef2a"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="DA7E06347E0609C9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e621fdb2-daf6-4403-9a41-f0a7adf0dd31"
/dev/nvme0n1p2: UUID="92eed5c7-fd3d-4fee-b132-a1130b3fdb5e" UUID_SUB="6ff00ccc-8050-4702-852f-4c2d4e27d390" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="434eb7f2-e323-45b5-869e-5617bb1a4732"
/dev/loop1: TYPE="squashfs"
/dev/loop19: TYPE="squashfs"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="e75df4a9-a8b2-4041-9407-60760afbf089"

何が起こっているかについての助けと説明を歓迎します:)

編集する:

わかりました。元の質問を修正する必要があります。

fstabの出力は次のようになります。

[19:31:19] marius :: DeepThought  ➜  ~ » cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# /dev/nvme0n1p2
UUID=92eed5c7-fd3d-4fee-b132-a1130b3fdb5e   /           btrfs       rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/    0 0

# /dev/nvme0n1p1
#UUID=53FC-45F0         /boot/efi   vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro   0 2


UUID=53FC-45F0  /boot/efi       vfat    defaults      0       1

私自身もext4の代わりにbtrfsを見つけて驚きました。ただし、Windowsをインストールする前に正常に動作します。

ベストアンサー1

おすすめ記事