ieri ho scoperto un altra incongruenza ben + sostanziosa(in realtà questo passo lo feci dopo la prima visione dell' Alert ma ottenevo un Error 15 --come giù-- e non capivo il perchè. Adesso pare che quel
/boot in
find non era neccessario). A quanto pare hd1 anzichè hd0 [come sarebbe giusto che sia se si ha un solo disco) indica che per grub le cose rimasero come erano prima della rottura del HD(allora quello era il dsco attivo(sda) da cui si faceva il boot e conteneva Windows + una partiz. di swap per Buntu.Invece buntu stava sul secondo (e attualmente unico) disco(sdb) L' unica cosa che feci se non ricordo male fu di cambiare le linee in fstab senza però resettare grub o di associare(da LiveCD) partizioni fisiche a partizioni logiche e usare MBR hd0 con gparted non ricordo bene] di cui riferivo più su ???
harrykar@harrysas:~$ sudo grub
[sudo] password for harrykar:
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
Error 15: File not found
grub> find /grub/stage1
find /grub/stage1
(hd1,5)
grub> find /vmlinuz-2.6.32-22-generic
find /vmlinuz-2.6.32-22-generic
(hd1,5)
grub> geometry (hd1)
geometry (hd1)
drive 0x81: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sdb
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
Partition num: 9, Filesystem type is ext2fs, partition type 0x83
Partition num: 10, Filesystem type is ext2fs, partition type 0x83
grub> cat (hd1,4)/etc/fstab #non riporto l'output ma è ok
grub> cat (hd1,5)/grub/menu.lst #non riporto l'output ma è ok
grub> cat (hd1,5)/grub/device.map #non riporto l'output ma è ok
il
/boot/grub/device.map invece è:
(fd0) /dev/fd0
(hd0) /dev/sda
Grub semra essere ok ma per si e per no reinstallo grub
grub> root (hd1,5)
root (hd1,5)
grub> setup (hd1)
setup (hd1)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd1)"... 17 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd1) (hd1)1+17 p (hd1,5)/grub/stage2 /grub/menu.lst"... succeeded
Done.
E senza sorpresa niente è cambiato
aggiungo (a quanto li esistente) su /boot/grub/device.map la linea
(hd1) /dev/sdb ma anche qui nessuna novità
rimetto mano a /boot/grub/device.map levo la linea precedentemente immessa e cambio (hd0) /dev/sda -->(hd0) /dev/sdb controllo con la shell di grub
grub> find /grub/stage1
find /grub/stage1
(hd0,5)
faccio il reboot e adesso nel ls -l /dev/disk/by-uuid da ash non spunta più la chiavetta usb come prima(era sda) ma spuntano tutte le altre partizioni del HD
Anche se non c'entra tanto stavolta faccio un
harrykar@harrysas:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.32-22-generic
Found kernel: /vmlinuz-2.6.31-21-generic
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
ma come aspettavo niente di chè la ash persiste