|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2006
Messaggi: 526
|
AIUTO! grub.conf
AIUTO! grub.conf
ho appena iniziato a cimentarmi con la configurazione di grub. Attualmente, all'avvio la mia sabayon non mi permette di avviare win, infatti selezionando other il boot si blocca. L'unico modo per far partire win xp è cambiare l'ordine delle periferiche per il boot. La mia configurazione di grub.conf attualmente è la seguente : grub.conf generated by anaconda ## Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /kernel-genkernelreal_root=/dev/VolGroup00/LogVol00 # initrd /initramfs-genkernel #boot=/dev/hda default=0 timeout=6 splashimage=(hd0,0)/grub/splash.xpm.gz title Sabayon Linux i686 root (hd0,0) kernel /kernel-genkernel-x86-2.6.18-gentoo dolvm2 root=/dev/ram0 ramdi$ initrd /initramfs-genkernel-x86-2.6.18-gentoo title Other rootnoverify (hd1,0) chainloader +1 quello che mi pare di aver capito è che devo è cambiare la parte title other. Le righe che intendo aggiungere sono le seguenti (tratte dalla documentazione di gentoo): title=Windows XP rootnoverify (hd0,5) makeactive chainloader +1 Quello che non riesco a capire è il parametro da inserire al posto di (hd0,5). Questa è la mia tabella delle partizoni: Disk /dev/hda: 41.1 GB, 41110142976 bytes 255 heads, 63 sectors/track, 4998 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 4998 40042012+ 8e Linux LVM Corrispondente al disco in cui ho su sabayon Questa è quella relativa all'hdd in fat 32 che mi serve da storage: Disk /dev/hdb: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 9964 80035798+ c W95 FAT32 (LBA) ed infine, il terzo hdd, quello con su win xp: Disk /dev/sda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 9963 80027766 7 HPFS/NTFS il fatto è che non ho capito come grub identifica le varie partizioni, specie se entrano in gioco dischi scsi |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2006
Messaggi: 526
|
up....
ne ho provati un casino...niente....li posto, chissà che magari qualcuno abbia qualche idea.... (hd2,3), (hd2,0) (sd2,3) (sd0,0) (hd1,0) (sd2,0) |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Apr 2006
Messaggi: 526
|
aggiungo l'output di fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes 255 heads, 63 sectors/track, 4998 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 4998 40042012+ 8e Linux LVM Disk /dev/hdb: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 9964 80035798+ c W95 FAT32 (LBA) Disk /dev/sda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 9963 80027766 7 HPFS/NTFS /dev/sda4 * 1 1 0 0 Empty Partition 4 does not end on cylinder boundary |
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Oct 2006
Messaggi: 475
|
Il primo numero identifica il disco fisso, il secondo la partizione. Entrambi partono da 0.
Quindi: hda1 = (hd0,0) hda2 = (hd0,1) hda3 = (hd0,2) hdb1 = (hd1,0) hdb2 = (hd1,1) hdb2 = (hd1,2) etc... hdaX è il nome che usa linux per chiamare le partizioni, spero che almeno quello lo conosci! primary master: hda primary slave: hdb secondary master: hdc secondary slave: hdd quindi per linux la partizione su cui c'è windows è hdd1, che per grub sarebbe (hd3,0). Se hai sata penso che al posto di hd devi mettere sd, ma non sono sicuro perche io non li uso. |
|
|
|
|
|
#5 |
|
Senior Member
Iscritto dal: Apr 2006
Messaggi: 526
|
in realtà la cosa è stata un po' più complicata. Ho risolto aggiungendo (hd2,0), e due righe:
map (hd0) (hd2) map (hd2) (hd0) |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 17:17.



















