Dopo aver installatto windows sopra un installazione di ubuntu 9.10 ho provato a ripristinare grub con la live di 9.10.
Posto qui il procedimento completo per maggior chiarezza
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo fdisk -l
omitting empty partition (5)
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe265e265
Device Boot Start End Blocks Id System
/dev/sda1 1 21077 169300971 5 Extended
/dev/sda2 1502 20953 156248158+ 83 Linux # /home
/dev/sda3 * 21078 24710 29182072+ 7 HPFS/NTFS # windows
/dev/sda5 1 1501 12056688 83 Linux # /
/dev/sda6 20954 21077 995998+ 82 Linux swap / Solaris
Disk /dev/sdb: 1017 MB, 1017380864 bytes
32 heads, 61 sectors/track, 1017 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Disk identifier: 0x000c4dcd
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1017 992561+ b W95 FAT32
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sda
/dev/sda7: Not found or not a block device.
root@ubuntu:/# 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: /boot/vmlinuz-2.6.31-20-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
root@ubuntu:/# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/dev/sda7: Not found or not a block device.
dove ho provato a rendere bootabile il filesystem di mount e mi viene questo errore:
Codice: Seleziona tutto
Error modifying partition: helper exited with exit code 1: In part_change_partition: device_file=/dev/sda, start=96768, new_start=96768, new_size=12346112512, type=0x05
Entering MS-DOS parser (offset=0, size=203928109056)
MSDOS_MAGIC found
looking at part 0 (offset 32256, size 173364194304, type 0x05)
Entering MS-DOS extended parser (offset=32256, size=173364194304)
readfrom = 32256
MSDOS_MAGIC found
Exiting MS-DOS extended parser
looking at part 1 (offset 12346177536, size 159998114304, type 0x83)
new part entry
looking at part 2 (offset 173364226560, size 29882442240, type 0x07)
new part entry
looking at part 3 (offset 0, size 0, type 0x00)
new part entry
Exiting MS-DOS parser
MSDOS partition table detected
containing partition table scheme = 1
Cannot create an extended partition inside an extended partition
A questo punto ho guardata al /etc/fstab ed ecco cosa ho trovato:
Codice: Seleziona tutto
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=c2f1e1b9-b4ae-4a0b-a292-dce4fd09cbfb / ext3 relatime,errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=1bab9b99-5f30-48aa-bbf7-d9fe00e9173c /home ext3 relatime 0 2
# swap was on /dev/sda6 during installation
UUID=d0047448-3752-4e30-a9cb-cf208614c1be none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
mi ha molto incurriosito ,non sono molto espersto di ubuntu, il fatto che con fdisk mi da che /dev/sda5 e "/"
mentre nel fstab ce scritto che ho installato il "/" su /dev/sda7. Non so come collegare questo fatto con l'errore che mi da all-inizio: /dev/sda7: Not found or not a block device.
Ma ho avviato Gparted che mi segna che tutte le partizioni(swap, "/", /home) in ext3 di linux sono unallocated anche se io posso tranquillamente montarle con nautilus e vedere i file dentro di esse.
Forse qualcuno mi puo aiutare.Ho allegato gli errori di palimpsets e gparted.
Grazie


