Si, fsck penso che abbia riparato qualcosa, e l'ho dato sulla partizione sda6, prima di partire un messaggio di attenzione diceva che non era montato il filesystem, io l'ho fatto partire comunque.
ho provato ma al passo n°5 mi da errore...forse invece di così:
devo digitare in questa maniera?
ecco quello che ho fatto nel terminale:
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x0008ed7b
Device Boot Start End Blocks Id System
/dev/sda1 1 131 1046528 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 131 38914 311522305 5 Extended
/dev/sda5 13504 38914 204100608 83 Linux
/dev/sda6 * 131 13504 107420672 83 Linux
Partition table entries are not in disk order
root@ubuntu:/home/ubuntu# sudo mount /dev/sda6 /mnt
root@ubuntu:/home/ubuntu# sudo mount --bind /dev /mnt/dev
root@ubuntu:/home/ubuntu# sudo mount --bind /proc /mnt/proc
root@ubuntu:/home/ubuntu# sudo mount --bind /sys /mnt/sys
root@ubuntu:/home/ubuntu# sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sda
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 5, in <module>
from util import gettext_wrapper as _
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 35, in <module>
_ = gettext_wrapper = setup_locale()
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 28, in setup_locale
gettext.install("command-not-found", unicode=True)
File "/usr/lib/python2.6/gettext.py", line 508, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/usr/lib/python2.6/gettext.py", line 493, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
IOError: [Errno 21] Is a directory: '/usr/share/locale-langpack/it/LC_MESSAGES/command-not-found.mo'
root@ubuntu:/# update-grub2
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 5, in <module>
from util import gettext_wrapper as _
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 35, in <module>
_ = gettext_wrapper = setup_locale()
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 28, in setup_locale
gettext.install("command-not-found", unicode=True)
File "/usr/lib/python2.6/gettext.py", line 508, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/usr/lib/python2.6/gettext.py", line 493, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
IOError: [Errno 21] Is a directory: '/usr/share/locale-langpack/it/LC_MESSAGES/command-not-found.mo'
root@ubuntu:/# grub-install --recheck /dev/sda
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 5, in <module>
from util import gettext_wrapper as _
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 35, in <module>
_ = gettext_wrapper = setup_locale()
File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 28, in setup_locale
gettext.install("command-not-found", unicode=True)
File "/usr/lib/python2.6/gettext.py", line 508, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/usr/lib/python2.6/gettext.py", line 493, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
IOError: [Errno 21] Is a directory: '/usr/share/locale-langpack/it/LC_MESSAGES/command-not-found.mo'
root@ubuntu:/#