apt-get updateapt-get upgrade
sudo parted -l
franco3p ha scritto:Devo fare copia incolla di quello che viene fuori e poi eseguire il comando # ? Non ho capito la seconda parte sinceramente!!
Testo copiato dal terminalesudo fsck -fvy /dev/sdb1
apt-get updateapt-get upgradegrub-install /dev/sdaupdate-grub2
franco3p ha scritto:Allora, ho provato a rifare tutto quello che mi avevi detto in precedenza, saltando i passaggi intermedi, della guida ho fatto fino a chroot e poi la parte per uscire da chroot e smontare i dischi, ed è andato tutto a buon fine, ma mi da sempre busybox ecc. Come prima...
iononsbaLGiomai ha scritto:Ripristina grub seguendo tutta questa guida eccetto mount /dev/sda2 /boot.
Quel passaggio dovevi saltarlo anche prima quando hai fatto l'aggiornamento, dato che non hai la boot separata. Se invece prima facevi anche quello, ora, subito dopo il chroot, dai:
- Codice: Seleziona tutto
apt-get update
- Codice: Seleziona tutto
apt-get upgrade
Poi continua con
- Codice: Seleziona tutto
grub-install /dev/sda
- Codice: Seleziona tutto
update-grub2
fino alla fine.
iononsbaLGiomai ha scritto:...selezionalo tutto e clicca sul tasto"#" sopra le faccine
iononsbaLGiomai ha scritto:...Clicca su modifica al messaggio in cui hai posta l'output di parted, seleziona tutto il testo preso dal terminale e clicca sul cancelletto sopra le faccine...


franco3p ha scritto:Ma grub-install /dev/sda non dovrebbe essere grub-install sdb??? Dato che io ho linux su /dev/sdb1??

ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
ubuntu@ubuntu:~$ sudo mount ---bind /dev /mnt/dev
mount: unrecognized option '---bind'
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
ubuntu@ubuntu:~$ sudo mount --bind /dev/ mnt/dev
mount: mount point mnt/dev does not exist
ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
mount: /dev/sdb1 already mounted or /mnt busy
mount: according to mtab, /dev/sdb1 is already mounted on /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:/# apt-get update
Ign http://extras.ubuntu.com oneiric InRelease
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://it.archive.ubuntu.com oneiric InRelease
Hit http://security.ubuntu.com oneiric-security Release.gpg
Hit http://extras.ubuntu.com oneiric Release.gpg
Ign http://it.archive.ubuntu.com oneiric-updates InRelease
Hit http://security.ubuntu.com oneiric-security Release
Hit http://extras.ubuntu.com oneiric Release
Ign http://it.archive.ubuntu.com oneiric-backports InRelease
Hit http://it.archive.ubuntu.com oneiric Release.gpg
Hit http://security.ubuntu.com oneiric-security/main Sources
Hit http://extras.ubuntu.com oneiric/main Sources
Hit http://security.ubuntu.com oneiric-security/restricted Sources
Hit http://security.ubuntu.com oneiric-security/universe Sources
Hit http://security.ubuntu.com oneiric-security/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://it.archive.ubuntu.com oneiric-updates Release.gpg
Hit http://extras.ubuntu.com oneiric/main i386 Packages
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://security.ubuntu.com oneiric-security/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://security.ubuntu.com oneiric-security/main Translation-en
Hit http://security.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en
Hit http://security.ubuntu.com oneiric-security/universe Translation-en
Hit http://it.archive.ubuntu.com oneiric-backports Release.gpg
Ign http://extras.ubuntu.com oneiric/main Translation-en_US
Hit http://it.archive.ubuntu.com oneiric Release
Ign http://extras.ubuntu.com oneiric/main Translation-en
Hit http://it.archive.ubuntu.com oneiric-updates Release
Hit http://it.archive.ubuntu.com oneiric-backports Release
Hit http://it.archive.ubuntu.com oneiric/main Sources
Hit http://it.archive.ubuntu.com oneiric/restricted Sources
Hit http://it.archive.ubuntu.com oneiric/universe Sources
Hit http://it.archive.ubuntu.com oneiric/multiverse Sources
Hit http://it.archive.ubuntu.com oneiric/main i386 Packages
Hit http://it.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://it.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://it.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://it.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://it.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://it.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://it.archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-updates/main Sources
Hit http://it.archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://it.archive.ubuntu.com oneiric-updates/universe Sources
Hit http://it.archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://it.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://it.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://it.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://it.archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://it.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-backports/main Sources
Hit http://it.archive.ubuntu.com oneiric-backports/restricted Sources
Hit http://it.archive.ubuntu.com oneiric-backports/universe Sources
Hit http://it.archive.ubuntu.com oneiric-backports/multiverse Sources
Hit http://it.archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://it.archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://it.archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://it.archive.ubuntu.com oneiric-backports/multiverse i386 Packages
Hit http://it.archive.ubuntu.com oneiric-backports/main TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Hit http://it.archive.ubuntu.com oneiric-backports/universe TranslationIndex
Hit http://it.archive.ubuntu.com oneiric/main Translation-en
Hit http://it.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://it.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://it.archive.ubuntu.com oneiric/universe Translation-en
Hit http://it.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://it.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://it.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://it.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://it.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://it.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://it.archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://it.archive.ubuntu.com oneiric-backports/universe Translation-en
Reading package lists... Done
root@ubuntu:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic software-center
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@ubuntu:/# grub-install /dev/sdb
Installation finished. No error reported.
root@ubuntu:/# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-16-generic-pae
Found initrd image: /boot/initrd.img-3.0.0-16-generic-pae
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
root@ubuntu:/# exit
exit
ubuntu@ubuntu:~$ cd ~
ubuntu@ubuntu:~$ sudo umount /mnt/dev
ubuntu@ubuntu:~$ sudo umount /mnt/proc
ubuntu@ubuntu:~$ sudo umount /mnt/sys
ubuntu@ubuntu:~$ sudo umount /mnt/
ubuntu@ubuntu:~$
Ecco tutto quello che mi ha riportato il terminal! Spero possa essere utile e che io abbia fatto tutti i passaggi in modo corretto!

Visualizzano questa sezione: 0 utenti registrati e 2 ospiti