Ho installato per la prima volta Fedora su un sistema UEFI. Sembrava andato tutto bene, ma al riavvio parte sempre Windows.
Il partizionamento manuale che ho seguito è stato:
sda12 / (ext4)
sda9 /home (ext4)
sda10 /boot (ext4)
sda2 /boot/efi (efi) <-- è anche la partizione efi di Windows!
sda9 swap
[code]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B25A3CBF-EC07-43AA-A25F-636A24D3662D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3757 sectors (1.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 821247 400.0 MiB 2700 Basic data partition
2 821248 1353727 260.0 MiB EF00 EFI System Partition
3 1353728 1615871 128.0 MiB 0C01 Microsoft reserved …
4 1615872 411215871 195.3 GiB 0700 Basic data partition
5 411215872 412139519 451.0 MiB 2700
6 412139520 412856319 350.0 MiB 2700
7 412856320 467949567 26.3 GiB 0700 Basic data partition
8 467949568 476141567 3.9 GiB 8200
9 476141568 1381181439 431.6 GiB 8300
10 1381181440 1382205439 500.0 MiB 8300
11 1382205440 1390604287 4.0 GiB 8200
12 1390604288 1465147391 35.5 GiB 8300 [/code]
Se disabilito il secure boot o se attivo la modalità legacy non cambia nulla, parte sempre Windows (dove ho già disabilitato da Pannello di controllo la voce “Attiva Avvia Rapido”).
Ho provato a creare un chroot come segue (gli UUID li ho presi dall’/etc/fstab presente nella partizione dove ho installato Fedora):
[code]# mkdir /mnt/sysimage
mount UUID=18c4f8d2-df1e-4414-8df9-a3d5fefb76e0 /mnt/sysimage
mount UUID=89980680-088c-4d46-b9c5-0d867b64ba32 /mnt/sysimage/boot
mount UUID=3A55-4EE1 /mnt/sysimage/boot/efi
mount UUID=576e65a7-f4ae-4125-87ab-77ff9b271a7e /mnt/sysimage/home
for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind “$i” “/mnt/sysimage$i”; done
chroot /mnt/sysimage[/code]
Dal chroot ho provato a reinstallare grub, ottenendo un messaggio di errore:
# grub2-install /dev/sda
grub2-install: errore: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Ho anche, sempre dal chroot, ricreato i file di configurazione di grub come segue:
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
La cosa strana è che non c’è la voce relativa a Windows, ma siccome Fedora non parte, di questo ci occupiamo più tardi:
# cat /boot/efi/EFI/fedora/grub.cfg | grep "^menuentry"
menuentry 'Fedora, with Linux 3.17.4-301.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.17.4-301.fc21.x86_64-advanced-18c4f8d2-df1e-4414-8df9-a3d5fefb76e0' {
menuentry 'Fedora, with Linux 0-rescue-a5235143cee94224a723baf86a53799e' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-a5235143cee94224a723baf86a53799e-advanced-18c4f8d2-df1e-4414-8df9-a3d5fefb76e0' {
Ho letto http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/ch19s02.html pagina dove parla di efibootmgr; siccome non ho capito bene i numeri che dovrei inserire, per ora ho solo verificato la situazione attuale:
# efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2002,3000,3002,2001,2003
Boot0000* Windows Boot Manager HD(2,c8800,82000,6274af2e-adee-4afc-b7e1-6598e178cc2d)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...e...............
Boot0001* Internal CD/DVD ROM Drive (UEFI) ACPI(a0341d0,0)PCI(1f,2)SATA(10,8000,0)CD-ROM(1,2b,2798)RC
Boot0002* Fedora HD(2,c8800,82000,6274af2e-adee-4afc-b7e1-6598e178cc2d)File(\EFI\fedora\shim.efi)
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Per finire, questi sono i files nelle cartelle /boot e /boot/efi (sempre dal chroot):
# find /boot -type f | egrep -v "/Microsoft/|/HP/"
/boot/grub2/themes/system/fireworks.png
/boot/grub2/themes/system/background.png
/boot/initramfs-3.17.4-301.fc21.x86_64.img
/boot/System.map-3.17.4-301.fc21.x86_64
/boot/initrd-plymouth.img
/boot/vmlinuz-0-rescue-a5235143cee94224a723baf86a53799e
/boot/initramfs-0-rescue-a5235143cee94224a723baf86a53799e.img
/boot/elf-memtest86+-5.01
/boot/config-3.17.4-301.fc21.x86_64
/boot/efi/EFI/Boot/fallback.efi
/boot/efi/EFI/Boot/bootx64.efi
/boot/efi/EFI/fedora/fonts/unicode.pf2
/boot/efi/EFI/fedora/grubenv
/boot/efi/EFI/fedora/BOOT.CSV
/boot/efi/EFI/fedora/MokManager.efi
/boot/efi/EFI/fedora/gcdx64.efi
/boot/efi/EFI/fedora/grubx64.efi
/boot/efi/EFI/fedora/shim-fedora.efi
/boot/efi/EFI/fedora/shim.efi
/boot/efi/EFI/fedora/grub.cfg
/boot/efi/boot/boot.sdi
/boot/efi/System/Library/CoreServices/SystemVersion.plist
/boot/efi/BOOTSECT.BAK
/boot/efi/mach_kernel
/boot/memtest86+-5.01
/boot/.vmlinuz-3.17.4-301.fc21.x86_64.hmac
/boot/vmlinuz-3.17.4-301.fc21.x86_64
/boot/extlinux/sysdump.c32
/boot/extlinux/hdt.c32
/boot/extlinux/mboot.c32
/boot/extlinux/libutil.c32
/boot/extlinux/ifcpu.c32
/boot/extlinux/prdhcp.c32
/boot/extlinux/liblua.c32
/boot/extlinux/cat.c32
/boot/extlinux/gfxboot.c32
/boot/extlinux/ifcpu64.c32
/boot/extlinux/pmload.c32
/boot/extlinux/reboot.c32
/boot/extlinux/vesa.c32
/boot/extlinux/dhcp.c32
/boot/extlinux/chain.c32
/boot/extlinux/lfs.c32
/boot/extlinux/pcitest.c32
/boot/extlinux/disk.c32
/boot/extlinux/host.c32
/boot/extlinux/gpxecmd.c32
/boot/extlinux/whichsys.c32
/boot/extlinux/cmenu.c32
/boot/extlinux/cpuid.c32
/boot/extlinux/vpdtest.c32
/boot/extlinux/lua.c32
/boot/extlinux/pxechn.c32
/boot/extlinux/dmi.c32
/boot/extlinux/vesamenu.c32
/boot/extlinux/ethersel.c32
/boot/extlinux/pwd.c32
/boot/extlinux/pci.c32
/boot/extlinux/config.c32
/boot/extlinux/ifmemdsk.c32
/boot/extlinux/linux.c32
/boot/extlinux/poweroff.c32
/boot/extlinux/cpuidtest.c32
/boot/extlinux/zzjson.c32
/boot/extlinux/ldlinux.c32
/boot/extlinux/hexdump.c32
/boot/extlinux/ls.c32
/boot/extlinux/memdisk
/boot/extlinux/menu.c32
/boot/extlinux/cptime.c32
/boot/extlinux/rosh.c32
/boot/extlinux/syslinux.c32
/boot/extlinux/sanboot.c32
/boot/extlinux/ifplop.c32
/boot/extlinux/meminfo.c32
/boot/extlinux/dmitest.c32
/boot/extlinux/debug.c32
/boot/extlinux/libcom32.c32
/boot/extlinux/elf.c32
/boot/extlinux/vesainfo.c32
/boot/extlinux/libmenu.c32
/boot/extlinux/sdi.c32
/boot/extlinux/cpu.c32
/boot/extlinux/kbdmap.c32
/boot/extlinux/libgpl.c32
/boot/extlinux/cmd.c32
/boot/extlinux/kontron_wdt.c32
Cosa dovrei fare per far partire Fedora?