Paluks abi GRUB kirjete muutmisel[LAHENDATUD]

Algajatele mõeldud foorum. Siia võib teha kõik Linuxiga seotud teemad, mida mujale ei oska panna

Moderaator: Moderaatorid

Vasta
Kasutaja avatar
-IFFI-
Vana Pingviin
Vana Pingviin
Postitusi: 1411
Liitunud: 25.06.2005, 03:00

Paluks abi GRUB kirjete muutmisel[LAHENDATUD]

Postitus Postitas -IFFI- »

Üritan testida proxmox paigaldust test serveris selle õpetuse järgi http://pve.proxmox.com/wiki/Install_Pro ... ian_Wheezy

Paigaldus jäi toppama "Install Proxmox VE Kernel" juures.

Paigaldasin juba ära

Kood: Vali kõik

apt-get install pve-firmware pve-kernel-2.6.32-22-pve

ja 

apt-get install pve-headers-2.6.32-22-pve
Nüüd oleks vaja saada masin rebootida "Proxmox VE Kernel" aga kuna ma pääsen ligi aint üle SSH siis ei saa ma ise boot menüüst valida seda valikut.

GRUB menüü tundub ka väääga keeruline ja ise seal ei oska miskit teha...võin ju teha aga tulemuseks on kindlasti see, et masin ei tule enam ülesse.

grub.cfg sisu on selline

Kood: Vali kõik

#
# 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
  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 load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/acca9096fef9812ba4d2adc226fd5302)'
search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod part_msdos
  insmod ext2
  set root='(mduuid/acca9096fef9812ba4d2adc226fd5302)'
  search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
  set locale_dir=($root)/boot/grub/locale
  set lang=et_EE
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_OVHkernel ###
menuentry "Debian GNU/Linux, OVH kernel 3.8.13-xxxx-grs-ipv6-64" {
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/acca9096fef9812ba4d2adc226fd5302)'
	search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
	linux	/boot/bzImage-3.8.13-xxxx-grs-ipv6-64 root=/dev/md1 ro  quiet
}
### END /etc/grub.d/06_OVHkernel ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-22-pve' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/acca9096fef9812ba4d2adc226fd5302)'
	search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
	echo	'Loading Linux 2.6.32-22-pve ...'
	linux	/boot/vmlinuz-2.6.32-22-pve root=/dev/md1 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-22-pve
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-22-pve (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/acca9096fef9812ba4d2adc226fd5302)'
	search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
	echo	'Loading Linux 2.6.32-22-pve ...'
	linux	/boot/vmlinuz-2.6.32-22-pve root=/dev/md1 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-22-pve
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, OVH kernel 3.8.13-xxxx-grs-ipv6-64 (on /dev/sda1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
	linux /boot/bzImage-3.8.13-xxxx-grs-ipv6-64 root=/dev/md1 ro quiet
}
menuentry "Debian GNU/Linux, OVH kernel 3.8.13-xxxx-grs-ipv6-64 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 43256d8a-dfcb-4c31-b2ca-09deeb6f1276
	linux /boot/bzImage-3.8.13-xxxx-grs-ipv6-64 root=/dev/md1 ro quiet
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Kuidas või mida ma muutma pean või kirjutama?
Viimati muutis -IFFI-, 24.07.2013, 06:56, muudetud 1 kord kokku.
Kasutaja avatar
mihkel
Vana Pingviin
Vana Pingviin
Postitusi: 1284
Liitunud: 16.04.2006, 13:08

Postitus Postitas mihkel »

Peaksid muutma /etc/default/grub kirjet ja sealt GRUB_DEFAULT väärtust. Lisa, kui teda seal veel pole.

GRUB_DEFAULT="Debian GNU/Linux, with Linux 2.6.32-22-pve"

Seejärel:
grub2-mkconfig -o /boot/grub2/grub.cfg

LISA:
Kuna sul puudub füüsiline ligipääs masinale ja mina kirjutasin eelneva teksti enamvähem ehku peale, siis las keegi kinnitab või lükkab ümber selle jutu :P
Kasutaja avatar
-IFFI-
Vana Pingviin
Vana Pingviin
Postitusi: 1411
Liitunud: 25.06.2005, 03:00

Postitus Postitas -IFFI- »

Ei julge ise surkida, tahaks et masin ikka üles tuleks.

all siis /etc/default/grub sisu

Kood: Vali kõik

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# 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_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
...ma jätan selle proxmox paigalduse serverile vahele. Proovisin seda om masinale peale lasta ja sain taas kuhjaga erinevaid erroreid ning lõptulemuseks oli kadunud ka neti ühendus kuna seal loodi miski virtuaalne neti kaart BTR või miskit sellist.
Ühesõnaga oli lõptulemus masina re-install.

Õnneks ei jõudnud veel serverile seda peale lasta täielikult peale PVE kerneli ja headeri. Jään veel oma vana koosluse juurde ning võibolla tulevikus proovin/õpin seda teise serveri peal.

Tänud abi eest.
Vasta