Instalacia fedory 16 a zmyznutie systemu

Dobry den, vcera som instaloval fedoru, ale po instalacii ked som dal reboot notebooku tak sa mi v grube ukazali len polozky fedory a zmyzol mi win, chcel som pouzit priklad “update-grub” lenze ten nefunguje. Ako by som to mohol riesit? Mam dva disky:

fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd37c75e4

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 123086847 61440000 7 HPFS/NTFS/exFAT
/dev/sda3 123086848 625139711 251026432 7 HPFS/NTFS/exFAT

WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb’! The util fdisk doesn’t support GPT. Use GNU Parted.

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xefe067d9

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 309247 153600 83 Linux
/dev/sdb2 309248 31029247 15360000 83 Linux
/dev/sdb3 31029248 38197247 3584000 82 Linux swap / Solaris
/dev/sdb4 38197248 488397167 225099960 5 Extended
/dev/sdb5 38199296 488396799 225098752 83 Linux

Rada nebude jednoducha, protoze F16 zacala pouzivat grub2 a tam je vse ponekud zamotanejsi nez jsme zvykli. Nechapu proc instalace sama nepridala windows do startovaciho menu. Nicmene grub.cfg se generuje prikazem grub2-mkconfig (musi se zadat s parametrem -o /boot/grub2/grub.cfg pokud chces aby se config zapsal a pouzival). Pokud ti OS prober nevygeneruje konfiguraci s windows pak do 40_custom musis pridat neco jako:


menuentry "Microsoft Windows 7 BIOS-MBR" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr     
    search --fs-uuid --no-floppy --set=root 69B235F6749E84CE
    ntldr (${root})/bootmgr
}

UUID samozrejme musis zmenit…

Ja som mal pocit ze linuxove distribucie uz davno pouzivaju grub2, mal som ho i v ubuntu aj v debiane, ale vzdy som pouzival prikaz update-grub

Dik za pomoc, pouzil som prikaz grub2-mkconfig ten mi vygeneroval menuentry windowsu ktore vyzera nejak takto:

menuentry “Windows 7 (loader) (on /dev/sda1)” --class windows --class os {
insmod part_msdos
insmod ntfs
set root=’(hd0,msdos1)’
search --no-floppy --fs-uuid --set=root 1A52F62A52F609F1
chainloader +1
}

vlozil som to do 40_custom a potom spustil prikaz “grub2-mkconfig -o /boot/grub2/grub.cfg”