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!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#51  2014-01-05 21:07:09

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

 

#52  2014-01-05 21:12:41

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

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?


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#53  2014-01-05 21:13:54

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

Offline

 

#54  2014-01-05 21:16:40

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Uzyje os-prober powtornie i przesle wynik.


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#55  2014-01-05 21:20:47

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Kod:

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#

------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#56  2014-01-05 21:22:15

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

No są przecież. :)

Offline

 

#57  2014-01-05 21:29:41

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Ale to jest z LiveCD jak zabotuje z HD to nie ma.
Musze zobaczyc i skonfigurowac plik konfigu GRUBa.
Jak wpisze

Kod:

sudo gedit /boot/grub/menu.lst

to mam czysta kartke notatnika.

Ostatnio edytowany przez Novi-cjusz (2014-01-05 21:31:41)


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#58  2014-01-05 21:31:00

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

 

#59  2014-01-05 21:32:29

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

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)


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#60  2014-01-05 21:33:16

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

Offline

 

#61  2014-01-05 21:47:17

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

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)


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#62  2014-01-05 21:50:36

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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ć:

Kod:

grub-install /dev/sda

Offline

 

#63  2014-01-05 21:54:07

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Kod:

root@joe-desktop:/home/joe# grub-install /dev/sda
Installation finished. No error reported.
root@joe-desktop:/home/joe#

Probowac z dysku twardego?


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#64  2014-01-05 21:54:22

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

Tak.

Offline

 

#65  2014-01-05 21:57:15

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Pokazal 3 OS za wyjatkiem PCBSD


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#66  2014-01-05 21:59:12

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

Kod:

update-grub

Offline

 

#67  2014-01-05 22:09:41

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Nie bardzo zalapalem, teraz jest tak:

Kod:

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:~$

------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#68  2014-01-05 22:12:18

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

W pliku /etc/grub.d/40_custom dopisz ten wpis co wcześniej miałeś:

Kod:

menuentry "PCBSD 9.2 (na /dev/sda4)" {
    set root=(hd0,4)
    chainloader (hd0,4)+1
    boot
}

Potem daj:

Kod:

udpate-grub

___

PS Nie będzie mnie chwilę na forum. :)

Offline

 

#69  2014-01-05 22:24:35

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Chyba niedobrze? Bo mi sie konsola baardzo zaangazowala.

Kod:

#
# 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-grub

Znalazlem 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)


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#70  2014-01-05 23:01:58

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

Offline

 

#71  2014-01-05 23:31:54

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Nie dziala - widac tylko 3 OS


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#72  2014-01-05 23:34:21

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

Zmieniłeś tak jak pisałem żeby wpis był po komentarzu? Tak ma plik /etc/grub.d/40_custom wyglądać:

Kod:

#!/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:

Kod:

update-grub

Offline

 

#73  2014-01-05 23:40:52

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

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


------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#74  2014-01-07 19:30:06

  Novi-cjusz - Użytkownik

Novi-cjusz
Użytkownik
Zarejestrowany: 2013-03-05

Re: ( SOLVED )Multibootowalny komputer

Witam ponownie.
Wpisanie kodu do konsoli  (bez: update-grub) przynioslo taki efekt:

Kod:

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:~$ }

------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."

Offline

 

#75  2014-01-07 19:31:10

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: ( SOLVED )Multibootowalny komputer

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

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)