Portál AbcLinuxu, 10. května 2025 09:01

Dotaz: Konfigurace GRUBu

3.10.2010 21:29 Radim
Konfigurace GRUBu
Přečteno: 356×
Odpovědět | Admin
Zdravím. Mám Xubuntu 10.04 a potřebuju nakonfigurovat GRUB. Jenže nemůžu najít konfigurační soubor (hledal jsem grub.conf, menu.lst) ale ani jeden na disku neni. Prosim vas, jak se jmenuje konfigurační soubor, příp. kde je? Stačí mi jen editovat menu, víc zatím nepotřebuju. Díky.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

pepe_ avatar 3.10.2010 21:40 pepe_ | skóre: 48
Rozbalit Rozbalit vše Re: Konfigurace GRUBu
Odpovědět | | Sbalit | Link | Blokovat | Admin
/etc/default/grub
/etc/grub.d/00_header
/etc/grub.d/05_debian_theme
/etc/grub.d/10_linux
/etc/grub.d/20_memtest86+
/etc/grub.d/30_os-prober
/etc/grub.d/40_custom
jinak u mne vypada /boot/grub.cfg :
cat grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, s jadrem 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set 06de464e-e308-401f-b8d5-5aed3cf732b1
    linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=06de464e-e308-401f-b8d5-5aed3cf732b1 ro  nomodeset splash vga=788  
    initrd    /boot/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu, s jadrem 2.6.32-25-generic (nouzovy rezim)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set 06de464e-e308-401f-b8d5-5aed3cf732b1
    echo    'Startuji 2.6.32-25-generic ...'
    linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=06de464e-e308-401f-b8d5-5aed3cf732b1 ro single  nomodeset splash vga=788
    echo    'Nacitam data do ramdisku ...'
    initrd    /boot/initrd.img-2.6.32-25-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set 06de464e-e308-401f-b8d5-5aed3cf732b1
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set 06de464e-e308-401f-b8d5-5aed3cf732b1
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (na zarizeni /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 045816f05816dfea
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
tvoří ho : update-grub

záleží ale na verzi , distru , náladě , politické situaci , stolici :)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.