くだらねえ質問はここに書き込め!Part 253 (791レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

リロード規制です。10分ほどで解除するので、他のブラウザへ避難してください。
702
(1): 538 08/22(金)19:44 ID:ylk2aeVr(1/5) AAS
kvmで起動したカーネルではefiにgrub-installできないのでは?と思いまして
VAIOをLive インストールイメージで起動し(/boot/efiにマウントされます)
$ sudo mount /dev/sdb3 /mnt # sdb3は/
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo chroot /mnt
# mount /dev/sdb2 /boot/efi
# /usr/sbin/grub-install --target=x86_64-efi /dev/sdb
Installation for x86_64-efi platform.
/usr/sbin/grub-install: warning: EFI variables cannot be set on this system.
/usr/sbin/grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished, No error reported.
# update-grub
起動してみましたが/boot/efiはマウントされないようです
>>617
EFIパーティションを/boot/efiに手動でマウントして確認しました
/boot/efi/EFI/debian/grub.cfgにあるuuidは間違っていません

行けるかな? と思ってましたが駄目でした
手詰まりです
708: 538 08/22(金)21:36 ID:ylk2aeVr(2/5) AAS
>>706,707
有難うございます
kvmではなくてDebianのLive インストールイメージを用意してVAIOで起動しています
このLinuxは/boot/efiがマウントされていますのでUEFIで起動されています
その後問題のUSB型SSDを/mntにmountしてchrootしてgurb-installしています

>/usr/sbin/grub-install: warning: EFI variables cannot be set on this system.
>ってEFI変数(efivarfs)が設定されてないエラー出てますぜ
警告ですよね? 一応これでgrub-installはエラーなく終了します(返値は0)
# mount -t efivarfs none /sys/firmware/efi/efivars
してgrub-installするとエラーでgrub-installはできません
711
(1): 538 08/22(金)23:19 ID:ylk2aeVr(3/5) AAS
>>709,710有難うございます
$ sudo mount /dev/sdb3 /mnt
$ sudo mount /dev/sdb2 /mnt/boot/efi
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /dev/pts /mnt/dev/pts
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ lsmod | grep efivarfs
efivarfs 28672 1
$ sudo modprobe efivarfs
$ lsmod | grep efivarfs
efivarfs 28672 1
$ sudo chroot /mnt
# grub-install /dev/sdb --bootloader-id Debian13
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
# efibootmgr --verbose | grep Debian13
EFI variables are not supported on this system.
error trace:
712: 538 08/22(金)23:20 ID:ylk2aeVr(4/5) AAS
(つづき)
# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.12.38+deb13-amd64
Found initrd image: /boot/initrd.img-6.12.38+deb13-amd64
Found linux image: /boot/vmlinuz-6.1.0-37-amd64
Found initrd image: /boot/initrd.img-6.1.0-37-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
# exit
起動すると/boot/efiはやはり空ですorz
715: 538 08/22(金)23:53 ID:ylk2aeVr(5/5) AAS
>>713,714
>>549にある通りgptです
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.040s