くだらねえ質問はここに書き込め!Part 253 (791レス)
くだらねえ質問はここに書き込め!Part 253 http://mao.5ch.net/test/read.cgi/linux/1747103458/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
702: 538 [] 2025/08/22(金) 19:44:06.59 ID:ylk2aeVr 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は間違っていません 行けるかな? と思ってましたが駄目でした 手詰まりです http://mao.5ch.net/test/read.cgi/linux/1747103458/702
708: 538 [sage] 2025/08/22(金) 21:36:03.92 ID:ylk2aeVr >>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はできません http://mao.5ch.net/test/read.cgi/linux/1747103458/708
711: 538 [sage] 2025/08/22(金) 23:19:36.12 ID:ylk2aeVr >>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: http://mao.5ch.net/test/read.cgi/linux/1747103458/711
712: 538 [sage] 2025/08/22(金) 23:20:00.57 ID:ylk2aeVr (つづき) # 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 http://mao.5ch.net/test/read.cgi/linux/1747103458/712
715: 538 [sage] 2025/08/22(金) 23:53:10.87 ID:ylk2aeVr >>713,714 >>549にある通りgptです http://mao.5ch.net/test/read.cgi/linux/1747103458/715
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.037s