[Linux-Biella] Ancora problemi nell'installazione di linux

Andrea Ferraris linux@ml.bilug.linux.it
Mon, 12 Jan 2004 23:21:40 +0100


> Ora il problema,
> fedora core1,
> procedo con l'installazione ma al primo reboot non c'e' traccia
> di grub e la macchina procede con l'avvio di windows XP.
>
> Alcune info:
>
>
> Command (m for help):
> 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            15      3738  29912998+   7  HPFS/NTFS
> /dev/hda2   *         1        14    112423+  83  Linux
> /dev/hda3          3739      4997  10112917+  83  Linux
>
> Partition table entries are not in disk order
> Command (m for help):
> Disk /dev/hdb: 8455 MB, 8455200768 bytes
> 255 heads, 63 sectors/track, 1027 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hdb1   *         1       897   7205121    b  Win95 FAT32
> /dev/hdb2           898      1027   1044225   82  Linux swap
>
>
> Ed il grub.conf:
> # 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,1)
> #          kernel /vmlinuz-version ro root=/dev/hda3
> #          initrd /initrd-version.img
>
>
>
> Hints ?

Premetto la proverbiale solita incompetenza generalizzata e il fatto che
qualunque
cosa dica potrebbe essere falsa, tendenziosa, fuorviante, completamente
errata,
provocare carie, calvizie, alitosi e puzza di piedi.
Fatta queste doverosa premessa, ti diro` che ne penso.

1) hai installato grub?

Come root, una volta che hai fatto partire il sistema da CD Linux.

# grub
grub> root (hd0,1)          (Use information from the boot partition)
grub> setup (hd0)           (Install GRUB in the MBR)
grub> quit

Reboot:
Funziona!!!!!

Non funziona. ;-((
Allora, hai installato grub?

grub> root (hd0,0)          (Use information from the boot partition)
grub> setup (hd0)           (Install GRUB in the MBR)
grub> quit

Dopo averlo installato cosi`, modifichi grub.conf come segue

boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,1)
chainloader +1

Reboot.
Funziona!!!!

La seconda e` nell'ipotesi - non so quanto assurda, ma credo abbastanza -
che grub se ne freghi dei nomi delle partizioni, ma le consideri
fisicamente.
Da quel punto di vista la prima non e` hda1, ma hda2.

Vale il disclaimer standard se qualcosa non funziona: s.t.c.t.

Andrea