Advertisement
demoss

mount grub recovery

Sep 12th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. To run a command as administrator (user "root"), use "sudo <command>".
  2. See "man sudo_root" for details.
  3.  
  4. ubuntu@ubuntu:~$ sudo passwd
  5. Введите новый пароль UNIX:
  6. Повторите ввод нового пароля UNIX:
  7. passwd: пароль успешно обновлён
  8. ubuntu@ubuntu:~$ su
  9. Пароль:
  10. root@ubuntu:/home/ubuntu# cd
  11. root@ubuntu:~# mount /dev/sda1 /mnt
  12. root@ubuntu:~# mount -t proc none /mnt/proc
  13. root@ubuntu:~# mount -o bind /dev /mnt/dev
  14. root@ubuntu:~# mount /dev/sda5 /mnt/usr
  15. root@ubuntu:~# chroot /mnt
  16. root@ubuntu:/# grub-install /dev/sda
  17. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  18. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  19. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  20. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  21. /usr/sbin/grub-setup: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  22. /usr/sbin/grub-setup: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  23. /usr/sbin/grub-setup: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  24. /usr/sbin/grub-setup: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  25. Installation finished. No error reported.
  26. root@ubuntu:/# update-grub
  27. Generating grub.cfg ...
  28. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (/dev/sda,msdos2,msdos1).
  29. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (/dev/sda,msdos2,msdos1).
  30. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (/dev/sda,msdos2,msdos1).
  31. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  32. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  33. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  34. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  35. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  36. Found linux image: /boot/vmlinuz-2.6.35-22-generic-pae
  37. Found initrd image: /boot/initrd.img-2.6.35-22-generic-pae
  38. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  39. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  40. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  41. /usr/sbin/grub-probe: warn: Discarding improperly nested partition (hd0,msdos2,msdos1).
  42. Found memtest86+ image: /boot/memtest86+.bin
  43. Cannot find list of partitions!
  44. done
  45. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement