Salve a tutti sono Xarabas. Per tutti arriva il primo post, questo è il mio.
Dopo 4 giorni (più notti che gg :P) che sto dietro a un error17 di grub, ho deciso di chiedere il vostro venerando aiuto, dopo aver seguito 1000 guide e letto manuali e contromanuali di grub. Inutile dire che quelle di questo sito le ho lette e rilette insieme ai post.
Sto cercando di installare in dual boot con winzoz XP la nostra amata distro Hardy 8.04.1. Ho prima installato win, poi ho diminuito la partizione di win con partiSCIon magic, poi ho creato la ext3 ex-novo dal cd di installazione di ubuntu. Non ho potuto usare gparted perchè sono su un pc con 256MB di ram e non 'parted'. Ho il sospetto che il partizionamento con partition M sia comunque stato fatale. (Il procedimento è stato fatto 2 volte sempre con lo stesso risultato: GRUB ERROR 17)
Ho installato win. Poi ho installato ubuntu dal cd-live.
win è in sda1 = (hd0,0); ubuntu in sda2=(hd0,1).
Quando riavvio il pc, inesorabilmente mi da Grub error17.
gli strumenti che ho a disposizione sono: ubuntu-live, un cd con supergrub, collegamento a internet anche con la live.
Vi posto direttamente quel che penso tornerà utile a chi vorrà darmi qualche dritta:
posto qui i NUOVI file di configurazione:: fstab, mtab, lspci, fdisk -l, menu.lst
Codice: Seleziona tutto
----------FSTAB-----------
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=a85f755a-18aa-4bf0-883a-7677d90ed784 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda3
UUID=8187e78c-678e-4e24-b0c2-ae93560daaad none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
----------MTAB--------------
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/scd0 /cdrom iso9660 ro,noatime,relatime 0 0
/dev/loop0 /rofs squashfs ro,noatime,relatime 0 0
tmpfs /cow tmpfs rw,noatime,relatime 0 0
unionfs / unionfs rw,noatime,relatime,dirs=/cow=rw:/rofs=ro,debug=4294967295,delete=whiteout 0 0
unionfs /dev/.static/dev unionfs rw,noatime,relatime,dirs=/cow=rw:/rofs=ro,debug=4294967295,delete=whiteout 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /lib/modules/2.6.24-19-generic/volatile tmpfs rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
gvfs-fuse-daemon /home/ubuntu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=999,group_id=999 0 0
/dev/sdb1 /media/disk vfat rw,nosuid,nodev,relatime,uid=999,fmask=0077,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
/dev/sda2 /media/disk-1 ext3 rw,nosuid,nodev,relatime,data=ordered 0 0
/dev/sda2 /mnt/work ext3 rw,relatime,data=ordered 0 0
udev /mnt/work/dev tmpfs rw,relatime 0 0
none /mnt/work/proc proc rw,nosuid,nodev,noexec 0 0
----------lspci lanciato da root------------
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 20)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
---------fdisk -l ---------------
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb4891607
Device Boot Start End Blocks Id System
/dev/sda1 * 1 21350 171493843+ 7 HPFS/NTFS
/dev/sda2 21485 30401 71625802+ 83 Linux
/dev/sda3 21351 21484 1076355 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 4138 MB, 4138729472 bytes
8 heads, 32 sectors/track, 31576 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Disk identifier: 0x221e5780
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 31576 4041712 b W95 FAT32
-------------MENU.LST-----------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=a85f755a-18aa-4bf0-883a-7677d90ed784 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=a85f755a-18aa-4bf0-883a-7677d90ed784 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=a85f755a-18aa-4bf0-883a-7677d90ed784 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
supergrub: riesce a farmi riavviare windows, ma assolutamente non riesco a fargli vedere linux. sembra che non riesca ad avviare il grub, oltre che linux.
live cd
1) ho provato:
Codice: Seleziona tutto
$ sudo mkdir /mnt/sda2 /* creo la directory dove montare il file system installato nell'HD*/
$ sudo mount /dev/sda2 /mnt/sda2 /* monto la partizione di ubuntu */
$ sudo mount -o bind /dev /mnt/sda2/dev /* monto la directory dev del cd nella /dev dell'HD così vedo i dispositivi */
$ sudo chroot /mnt/sda2 /* divento root dell'ubuntu installato */
# update-grub /* questo dovrebbe ripristinare grub nel senso che legge le righe commentate _____ con un solo # del file /boot/grub/menu.lst e inserite tra "### BEGIN AUTOMAGIC KERNELS LIST" e "### END DEBIAN AUTOMAGIC KERNELS LIST" */
Codice: Seleziona tutto
$ sudo mkdir /mnt/sda2 /* creo la directory dove montare il file system installato nell'HD*/
$ sudo mount /dev/sda2 /mnt/sda2 /* monto la partizione di ubuntu */
$ sudo mount -o bind /dev /mnt/sda2/dev /* monto la directory dev del cd nella /dev dell'HD così vedo i dispositivi */
$ sudo chroot /mnt/sda2 /* divento root dell'ubuntu installato */
# grub /* eseguo il programma grub, quello installato nell'HD (almeno credo) */
>root (hd0,1) /* [comando grub] penso che serva per dire a grub dove è lui stesso installato.
>setup (hd0) /* non so cosa faccia, ma è questo quello che "dovrebbe fare la magia"
>quit /* esco da grub
# exit /* ritorno nella shell del cd come utente normale
Codice: Seleziona tutto
$ sudo mkdir /mnt/sda2
$ sudo mount /dev/sda2 /mnt/sda2
$ sudo mount -o bind /dev /mnt/sda2/dev
$ mount -t proc none disk/proc
$ sudo chroot /mnt/sda2/bin/bash
# grub-install /dev/sda @@ qui mi da errore (non riesce ad accedere ad sda)
# grub-install /dev/sda2 @@ errore come sopra
un esemprio per tutti: ho sostituito la riga
Codice: Seleziona tutto
initrd /boot/initrd.img-2.6.24-19-generic Codice: Seleziona tutto
initrd (hd0,1)/boot/initrd.img-2.6.24-19-generic Gli altri tentativi non me li ricordo.
Chissà che cavolo sto sbagliando. Una procedura che NON sono riuscito a sapere come si fa è questa:
-disinstallare totalmente grub (non sovrascriverlo etc etc etc) - reinstallarlo nell'mbr o nella partizione di Ubuntazzo.
Prego chi gentilmente mi vorrà dare una mano di spiegare quello che sta facendo passo passo, se non è troppo di disturbo, così capisco anche io cosa LUI sa e io no :P... e lo potranno capire anche gli altri che avranno lo stesso problema in futuro.
Grazie a tutti!
PS: se hai letto fino a qui sei tu quello di cui ho bisogno :: PLIS HELL P ME! ::

