Guest User

Untitled

a guest
Dec 14th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. root@runtime:/home/vagrant#
  2. root@runtime:/home/vagrant# apt-get install grub-common
  3. Reading package lists... Done
  4. Building dependency tree
  5. Reading state information... Done
  6. grub-common is already the newest version (2.02~beta3-4ubuntu2.2).
  7. 0 upgraded, 0 newly installed, 0 to remove and 141 not upgraded.
  8. root@runtime:/home/vagrant# grub2-editenv list
  9. No command 'grub2-editenv' found, did you mean:
  10. Command 'grub-editenv' from package 'grub-common' (main)
  11. grub2-editenv: command not found
  12. root@runtime:/home/vagrant# grub2-editenv list^C
  13. root@runtime:/home/vagrant# grub-editenv
  14. You need to specify at least one command.
  15. Usage: grub-editenv [OPTION...] FILENAME COMMAND
  16. Try 'grub-editenv --help' or 'grub-editenv --usage' for more information.
  17. root@runtime:/home/vagrant# grub-editenv list
  18. saved_entry=3
  19. root@runtime:/home/vagrant# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
  20. Ubuntu
  21. Ubuntu, with Linux 4.10.0-38-generic
  22. Ubuntu, with Linux 4.10.0-38-generic (recovery mode)
  23. Ubuntu, with Linux 4.10.0-19-generic
  24. Ubuntu, with Linux 4.10.0-19-generic (recovery mode)
  25. Ubuntu, with Linux 4.9.68-040968-generic
  26. Ubuntu, with Linux 4.9.68-040968-generic (recovery mode)
  27. root@runtime:/home/vagrant# grub-editenv list^C
  28. root@runtime:/home/vagrant# uname -a
  29. Linux runtime 4.10.0-38-generic #42-Ubuntu SMP Tue Oct 10 13:24:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  30. root@runtime:/home/vagrant# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
  31. Ubuntu
  32. Ubuntu, with Linux 4.10.0-38-generic
  33. Ubuntu, with Linux 4.10.0-38-generic (recovery mode)
  34. Ubuntu, with Linux 4.10.0-19-generic
  35. Ubuntu, with Linux 4.10.0-19-generic (recovery mode)
  36. Ubuntu, with Linux 4.9.68-040968-generic
  37. Ubuntu, with Linux 4.9.68-040968-generic (recovery mode)
  38. root@runtime:/home/vagrant# grub-editenv list
  39. saved_entry=3
  40. root@runtime:/home/vagrant# apt-get install grub-commongrub2-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64'^C
  41. root@runtime:/home/vagrant# grub-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64'
  42. Searching for GRUB installation directory ... found: /boot/grub
  43. root@runtime:/home/vagrant# grub-set-default 'Fedora Linux, with Linux 3.1.2-1.fc16.x86_64^C
  44. root@runtime:/home/vagrant# vim /boot/
  45. abi-4.10.0-19-generic config-4.10.0-19-generic grub/ initrd.img-4.9.68-040968-generic System.map-4.9.68-040968-generic vmlinuz-4.9.68-040968-generic
  46. abi-4.10.0-38-generic config-4.10.0-38-generic initrd.img-4.10.0-19-generic System.map-4.10.0-19-generic vmlinuz-4.10.0-19-generic
  47. abi-4.9.68-040968-generic config-4.9.68-040968-generic initrd.img-4.10.0-38-generic System.map-4.10.0-38-generic vmlinuz-4.10.0-38-generic
  48. root@runtime:/home/vagrant# vim /boot/grub/
  49. default fonts/ gfxblacklist.txt grub.cfg grubenv i386-pc/ locale/ menu.lst menu.lst~ unicode.pf2
  50. root@runtime:/home/vagrant# vim /boot/grub/menu.lst
  51. root@runtime:/home/vagrant# ^C
  52. root@runtime:/home/vagrant# grub-editenv list
  53. saved_entry=Fedora Linux, with Linux 3.1.2-1.fc16.x86_64
  54. root@runtime:/home/vagrant#
Add Comment
Please, Sign In to add comment