Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.







Kapelusznik








Dla Linuxów tak jak pisałem na samym początku. Dla BSD miałeś tam wpis oddzielny, nie masz go już?
O WiFi lepiej osobny wątek załóż.
Offline



Użytkownik




Pamietam ze jak konfigurowalem GRUBa kilka miesiecy wstecz dla wszystkich OS to bylo to robione z bootchainloader + 1. Niestety szczegolow nie pamietam i musze to robic od nowa. A moze zainstalowac GAG?
Offline







Kapelusznik








Ale z czym jest problem? :) os-prober powinien wykryć Linuxy, a dla BSD masz ten wpis przecież.
Offline



Użytkownik




Uzyje os-prober powtornie i przesle wynik.
Offline



Użytkownik




joe@joe-desktop:~$ sudo su [sudo] password for joe: root@joe-desktop:/home/joe# os-prober /dev/sda2:Debian GNU/Linux (7.2):Debian:linux /dev/sda3:CentOS release 6.4 (Final):RedHat:linux root@joe-desktop:/home/joe# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.11.0-12-generic Found initrd image: /boot/initrd.img-3.11.0-12-generic Found memtest86+ image: /boot/memtest86+.bin Found Debian GNU/Linux (7.2) on /dev/sda2 Found CentOS release 6.4 (Final) on /dev/sda3 done root@joe-desktop:/home/joe#
Offline







Kapelusznik








No są przecież. :)
Offline



Użytkownik




Ale to jest z LiveCD jak zabotuje z HD to nie ma.
Musze zobaczyc i skonfigurowac plik konfigu GRUBa.
Jak wpisze
sudo gedit /boot/grub/menu.lst
to mam czysta kartke notatnika.
Ostatnio edytowany przez Novi-cjusz (2014-01-05 21:31:41)
Offline







Kapelusznik








Jak z livecd jak tam masz użytkownika joe? To jest to Ubuntu co masz na dysku. Jak uruchamiasz system, tzn. GRUB-a z którego systemu używasz?
Offline



Użytkownik




Dobra, wyjmuje plytke i botuje z twardego dysku.
Uzytkownika "joe" mam na wszystkich partycjach zeby bylo latwiej zapamietac.
Ostatnio edytowany przez Novi-cjusz (2014-01-05 21:33:13)
Offline







Kapelusznik








Jak uruchamiasz system, tzn. GRUB-a z którego systemu używasz i którego chcesz używać?
Offline



Użytkownik




Jest tak jak pisalem. Ostatni zostal zainstalowany PCBSD i jego GRUB nadpisal MBR w wyniku czego tylko PCBSD startuje a pozostale 3 systemy sa niewidoczne.
Tak jest kiedy startuje z HDD.
Teraz "jestem na" LiveCD, ale tym sie nie sugeruj.
Prosze pomoz mi skonfigurowac GRUBA zeby pokazywal wszystkie 4 OS przy starcie z HD..
Ostatnio edytowany przez Novi-cjusz (2014-01-05 21:50:15)
Offline







Kapelusznik








Tego, że BSD startuje domyślnie nie pisałeś wcześniej, myślałem że z GRUB-a Ubuntu odpalasz system.
Rozumiem, że teraz piszesz spod Ubuntu na dysku odpalonego przy pomocy livecd, powinno zatem wystarczyć:
grub-install /dev/sda
Offline



Użytkownik




root@joe-desktop:/home/joe# grub-install /dev/sda Installation finished. No error reported. root@joe-desktop:/home/joe#
Probowac z dysku twardego?
Offline







Kapelusznik








Tak.
Offline



Użytkownik




Pokazal 3 OS za wyjatkiem PCBSD
Offline







Kapelusznik








Dodaj w /etc/grub.d/40_custom ten wpis co wcześniej miałeś dla BSD (masz go w tym wątku) i puść:
update-grub
Offline



Użytkownik




Nie bardzo zalapalem, teraz jest tak:
joe@joe-desktop:~$ fdisk -l
joe@joe-desktop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_IE
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.11.0-12-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
echo 'Loading Linux 3.11.0-12-generic ...'
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
echo 'Loading Linux 3.11.0-12-generic ...'
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11.0-12-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux16 /boot/memtest86+.bin
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux (7.2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro quiet
initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (7.2)' $menuentry_id_option 'osprober-gnulinux-advanced-4200c9f8-87d1-4a65-a810-966ada1a60de' {
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro quiet
initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro single-4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro single
initrd /boot/initrd.img-3.2.0-4-amd64
}
}
menuentry 'CentOS release 6.4 (Final)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
else
search --no-floppy --fs-uuid --set=root 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
fi
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
submenu 'Advanced options for CentOS release 6.4 (Final)' $menuentry_id_option 'osprober-gnulinux-advanced-2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
menuentry 'CentOS (2.6.32-358.el6.x86_64) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.32-358.el6.x86_64--2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
else
search --no-floppy --fs-uuid --set=root 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
fi
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
joe@joe-desktop:~$Offline







Kapelusznik








W pliku /etc/grub.d/40_custom dopisz ten wpis co wcześniej miałeś:
menuentry "PCBSD 9.2 (na /dev/sda4)" {
set root=(hd0,4)
chainloader (hd0,4)+1
boot
}Potem daj:
udpate-grub
___
PS Nie będzie mnie chwilę na forum. :)
Offline



Użytkownik




Chyba niedobrze? Bo mi sie konsola baardzo zaangazowala.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_IE
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.11.0-12-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
echo 'Loading Linux 3.11.0-12-generic ...'
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-d987eb0e-57ff-4575-bab8-31451fc76ef4' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
echo 'Loading Linux 3.11.0-12-generic ...'
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=d987eb0e-57ff-4575-bab8-31451fc76ef4 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11.0-12-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux16 /boot/memtest86+.bin
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 d987eb0e-57ff-4575-bab8-31451fc76ef4
else
search --no-floppy --fs-uuid --set=root d987eb0e-57ff-4575-bab8-31451fc76ef4
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux (7.2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro quiet
initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (7.2)' $menuentry_id_option 'osprober-gnulinux-advanced-4200c9f8-87d1-4a65-a810-966ada1a60de' {
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro quiet
initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro single-4200c9f8-87d1-4a65-a810-966ada1a60de' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 4200c9f8-87d1-4a65-a810-966ada1a60de
else
search --no-floppy --fs-uuid --set=root 4200c9f8-87d1-4a65-a810-966ada1a60de
fi
linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=4200c9f8-87d1-4a65-a810-966ada1a60de ro single
initrd /boot/initrd.img-3.2.0-4-amd64
}
}
menuentry 'CentOS release 6.4 (Final)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
else
search --no-floppy --fs-uuid --set=root 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
fi
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
submenu 'Advanced options for CentOS release 6.4 (Final)' $menuentry_id_option 'osprober-gnulinux-advanced-2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
menuentry 'CentOS (2.6.32-358.el6.x86_64) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.32-358.el6.x86_64--2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
else
search --no-floppy --fs-uuid --set=root 2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a
fi
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=2ce6dec7-3cd0-4d08-9125-d4fb9c7eda7a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
menuentry "PCBSD 9.2 (na /dev/sda4)" {
set root=(hd0,4)
chainloader (hd0,4)+1
boot
}
# 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
update-grubZnalazlem ciekawe narzedzie: http://www.ubuntu-pomoc.org/grub-customizer-3-0-szy … uracja-gruba/
Ostatnio edytowany przez Novi-cjusz (2014-01-05 22:53:22)
Offline







Kapelusznik








I nie działa? W komentarzu w tym pliku jest napisane żeby swoje wpisy dać po komentarzu.
Offline



Użytkownik




Nie dziala - widac tylko 3 OS
Offline







Kapelusznik








Zmieniłeś tak jak pisałem żeby wpis był po komentarzu? Tak ma plik /etc/grub.d/40_custom wyglądać:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "PCBSD 9.2 (na /dev/sda4)" {
set root=(hd0,4)
chainloader (hd0,4)+1
boot
}Potem:
update-grub
Offline



Użytkownik




Dokoncze jutro bo dzis juz nie moge kontynuowac.
Dziekuje za dzisiaj
Offline



Użytkownik




Witam ponownie.
Wpisanie kodu do konsoli (bez: update-grub) przynioslo taki efekt:
joe@joe-desktop:~$ su
Password:
root@joe-desktop:/home/joe# #!/bin/sh
root@joe-desktop:/home/joe# exec tail -n +3 $0
tail: cannot open ‘bash’ for reading: No such file or directory
joe@joe-desktop:~$ # This file provides an easy way to add custom menu entries. Simply type the
joe@joe-desktop:~$ # menu entries you want to add after this comment. Be careful not to change
joe@joe-desktop:~$ # the 'exec tail' line above.
joe@joe-desktop:~$
joe@joe-desktop:~$ menuentry "PCBSD 9.2 (na /dev/sda4)" {
menuentry: command not found
joe@joe-desktop:~$ set root=(hd0,4)
bash: syntax error near unexpected token `('
joe@joe-desktop:~$ chainloader (hd0,4)+1
bash: syntax error near unexpected token `hd0,4'
joe@joe-desktop:~$ boot
No command 'boot' found, did you mean:
Command 'booc' from package 'boo' (universe)
Command 'boog' from package 'alliance' (universe)
Command 'root' from package 'root-system-bin' (universe)
Command 'brot' from package 'fortunes-de' (universe)
Command 'boom' from package 'alliance' (universe)
Command 'boom' from package 'prboom' (universe)
Command 'hboot' from package 'lam-runtime' (universe)
Command 'booth' from package 'booth' (universe)
Command 'booi' from package 'boo' (universe)
boot: command not found
joe@joe-desktop:~$ }Offline







Kapelusznik








Przeczytaj dokładnie co ja napisałem, a potem pomyśl co Ty zrobiłeś. :)
Offline