Pagina 1 di 1
[Risolto] [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 15:46
da Calvin Klein
Ieri ho scaricato Ubuntu 11.04 con dual-boot Ubuntu 10.10.
Fino a pomeriggio tutto bene, ma oggi aprendo GParted mi è apparso un errore strano.
Ho fatto il controllo della partizione, ho riavviato e adesso mi appare l'errore:
E poi non mi parte niente.
Per ora sono con una Live.
Come faccio?
Devo per forza reinstallare Ubuntu? :'( >:( >:( :'(
Re: Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 15:47
da trekfan1
Re: [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 16:00
da Calvin Klein
Ho scritto questo:
Codice: Seleziona tutto
francesco@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00073dd1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4567 36677426+ 83 Linux
/dev/sda2 7117 7296 1440769 5 Extended
/dev/sda3 4567 7117 20484096 83 Linux
/dev/sda5 7117 7296 1440768 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 2045 MB, 2045771776 bytes
128 heads, 32 sectors/track, 975 cylinders
Units = cylinders of 4096 * 512 = 2097152 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00099feb
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 976 1997636+ 6 FAT16
Partition 1 has different physical/logical endings:
phys=(975, 127, 32) logical=(975, 63, 32)
francesco@ubuntu:~$ sudo mount /dev/sda1 /mnt
francesco@ubuntu:~$ sudo mount --bind /dev /mnt/dev
francesco@ubuntu:~$ sudo mount --bind /proc /mnt/proc
francesco@ubuntu:~$ sudo mount --bind /sys /mnt/sys
francesco@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# mount /dev/sda3 /boot
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# update-grub2
Generating grub.cfg ...
done
root@ubuntu:/# grub-install --recheck /dev/sda
Installation finished. No error reported.
root@ubuntu:/# exit
exit
francesco@ubuntu:~$ cd ~
francesco@ubuntu:~$ sudo umount /mnt/dev
francesco@ubuntu:~$ sudo umount /mnt/proc
francesco@ubuntu:~$ sudo umount /mnt/sys
francesco@ubuntu:~$ sudo umount /mnt/
umount: /mnt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
francesco@ubuntu:~$
Penso di non aver sbagliato...
Re: [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 16:09
da Calvin Klein
Adesso mi compare quest'errore:
Codice: Seleziona tutto
Minimal BASH-like line editing is supported. For the first word, TAB list possible command completions. Anywhere else TAB lists possible device or file completions
grub>
Cosa devo fare?
Re: [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 16:47
da orione...
Ciao,
esiste un programma che ti permette di entrare nel so anche col grub danneggiato, si chiama supergrub 2, basta scaricarlo e masterizzare l'immagine poi una volta entrato ripristinare il grub.
Ciao
Re: [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 17:41
da patel
francesco97 ha scritto:
francesco@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# mount /dev/sda3 /boot
root@ubuntu:/# grub-install /dev/sda
Penso di non aver sbagliato...
sì, hai sbagliato, non devi montare mount /dev/sda3 /boot, nella guida c'è scritto che lo deve fare solo chi ha la /boot in partizione separata
Re: [Urgente] Problema urgente con dual-boot Ubuntu
Inviato: mercoledì 23 marzo 2011, 17:53
da Calvin Klein
Comunque, ho sistemato reinstallando Ubuntu 11.04, tanto ancora nemmeno lo avevo personalizzato, quindi...