Autore Topic: grub non vede windows  (Letto 5713 volte)

Offline maddog

  • Newbie
  • *
  • Post: 4
    • Mostra profilo
grub non vede windows
« il: 21 Febbraio 2015, 15:02:42 »
Buongiorno
Ho installato centos7 su un secondo hdd nel mio notebook (sdb) per conservare sul primo (sda) il sistema preinstallato Windows 7.
Ho indirizzato grub su sdb, sempre per mantenere intatto il primo disco, ma diversamente da Fedora, CentOS non rileva Windows7.
Come posso fare?
Dell Latitude E6540 - CentOS/Ubuntu lts

Offline dankan77

  • Moderator
  • Hero Member
  • *****
  • Post: 1365
    • Mostra profilo
    • E-mail
Re:grub non vede windows
« Risposta #1 il: 02 Marzo 2015, 10:59:58 »
Ciao,
che versione di CentOS stai utilizzando?

Offline smeserver

  • Hero Member
  • *****
  • Post: 1313
    • Mostra profilo
Re:grub non vede windows
« Risposta #2 il: 03 Marzo 2015, 20:25:43 »
Ho installato centos7 su un secondo hdd nel mio notebook (sdb)

:-)

Offline dankan77

  • Moderator
  • Hero Member
  • *****
  • Post: 1365
    • Mostra profilo
    • E-mail
Re:grub non vede windows
« Risposta #3 il: 04 Marzo 2015, 16:20:41 »
ok... mi ero perso l'info.
La risposta la trovi qui: http://www.dedoimedo.com/computers/dual-boot-windows-7-centos-7.html
al punto

...
 Fix GRUB2

There are two ways you can resolve the issue. One, you can add a manual chainload entry to the 40_custom GRUB script under /etc/grub.d, and then update the GRUB2 menu using the following command:

grub2-mkconfig -o /boot/grub2/grub.cfg

The content you actually need to add to the 40_custom script BEFORE you update the menu is as follows:

menuentry "Windows 7" {
   set root='(hd0,1)'
   chainloader +1
}  Fix GRUB2

There are two ways you can resolve the issue. One, you can add a manual chainload entry to the 40_custom GRUB script under /etc/grub.d, and then update the GRUB2 menu using the following command:

grub2-mkconfig -o /boot/grub2/grub.cfg

The content you actually need to add to the 40_custom script BEFORE you update the menu is as follows:

menuentry "Windows 7" {
   set root='(hd0,1)'
   chainloader +1
}
...