Nowe posty

Autor Wątek: Boot manager  (Przeczytany 4685 razy)

Offline marcin'82

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 402
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #15 dnia: 2019-01-28, 22:56:33 »
No to czemu nie działa? :D
marcin82

Offline Dilectus

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 25
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #16 dnia: 2019-01-28, 23:42:13 »
Też się zastanawiam...

Offline Dilectus

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 25
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #17 dnia: 2019-01-29, 10:57:13 »
Chyba jednak coś spieprzyłem. Dziś wykonałem polecenie
nano /etc/dfault/grub
i moim zdumionym oczom ukazał się pusty plik. Czy można go jakos przywrócić?

Offline marcin'82

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 402
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #18 dnia: 2019-01-29, 16:50:15 »
Skopiuj stąd - jako root:
/bin/cp -vf /usr/share/grub/default/grub /etc/default/
Na wszelki wypadek zrób kopię zapasową:
cp /etc/default/grub /etc/default/grub.backup

Edytuj wg tego co pisałem wcześniej + update-grub.
marcin82

Offline Dilectus

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 25
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #19 dnia: 2019-01-29, 17:52:46 »
Zrobiłem tak, jak mówisz, ale nie pomogło. Mój grub wygląda tak:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_SUBMENU=y

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
                         

Offline marcin'82

  • Users
  • Prawie jak Guru
  • ****
  • Wiadomości: 402
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #20 dnia: 2019-01-29, 18:00:35 »
#teżniewiem :D

Przejrzyj cały wątek od początku i upewnij się, że wszystko zrobiłeś po kolei co pisałem.
marcin82

Offline Dilectus

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 25
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #21 dnia: 2019-01-29, 23:56:25 »
Pokaż wynik drugiego i trzeciego polecenia:
sudo su -
grep 'menuentry ' /boot/grub/grub.cfg
cat /etc/default/grub


[sudo] hasło użytkownika jacek: 
root@jacek-Lenovo-3000-N500:/home/jacek# grep 'menuentry ' /boot/grub/grub.cfg
menuentry 'Ubuntu (lowlatency)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-565ecc58-e031-401f-81c5-29d7827e8b87' {
menuentry 'Ubuntu, za pomocą systemu Linux 4.15.0-44-lowlatency' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-44-lowlatency-advanced-565ecc58-e031-401f-81c5-29d7827e8b87' {
menuentry 'Ubuntu, with Linux 4.15.0-44-lowlatency (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-44-lowlatency-recovery-565ecc58-e031-401f-81c5-29d7827e8b87' {
menuentry 'Ubuntu, za pomocą systemu Linux 4.15.0-43-lowlatency' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-lowlatency-advanced-565ecc58-e031-401f-81c5-29d7827e8b87' {
menuentry 'Ubuntu, with Linux 4.15.0-43-lowlatency (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-lowlatency-recovery-565ecc58-e031-401f-81c5-29d7827e8b87' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
menuentry 'Windows 7 (na /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-E0963DDD963DB4BE' {
menuentry 'Windows 7 (na /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-522E2EDD2E2EBA3D' {
root@jacek-Lenovo-3000-N500:/home/jacek#

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_SUBMENU=y

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@jacek-Lenovo-3000-N500:/home/jacek#

Offline Dilectus

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 25
    • Zobacz profil
Odp: Boot manager
« Odpowiedź #22 dnia: 2019-02-03, 12:46:18 »
Uruchomiłem dziś z pendrajwa bootrepair i - o dziwo - po tej akcji domyślnie wstają Windowsy, czyli jest nareszcie tak, jak chciałem. Najgorsze, jest to, że nie wiem, co zmienił ten bootrepair, bo grub jest taki sam, jak przedtem:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_SUBMENU=y

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)