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

Dotaz: grub problem

TheTechnic avatar 22.4.2010 19:06 TheTechnic | skóre: 7
grub problem
Přečteno: 437×
Odpovědět | Admin
Ahojte,

potrebujem radu, preco ked som nainstaloval grub cez live cd, pri bootovani mi to skoci do programu grub, kde skusim opat nainstalovat grub:

find /boot/grub/stage1 root (hda0,9) setup (hd0)

-nefunguje mi tu quit, ale cez live cd preslo vsetko ok, len nemozem nabootovat. Tusite v com moze byt problem?
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

TheTechnic avatar 22.4.2010 19:59 TheTechnic | skóre: 7
Rozbalit Rozbalit vše Re: grub problem
Odpovědět | | Sbalit | Link | Blokovat | Admin
Příloha:

-vid priloha, co dostavam po reboote stale.

pepe_ avatar 22.4.2010 20:04 pepe_ | skóre: 48
Rozbalit Rozbalit vše Re: grub problem
no asi nemáš vytvořenej /boot/grub/grub.cfg či /boot/grub/menu.lst
grub.cfg u mne :
set default=1
set timeout=2
set root=(hd0,6)
if font /usr/share/grub/ascii.pff ; then
  set gfxmode=800x600
  set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### 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/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
#Colors  bits  640x480  800×600  1024×768  1152×864 1280×1024  1600×1200
#   256    8   vga=769  vga=771   vga=773   vga=353   vga=775    vga=796
#   32000  ?   vga=784  vga=787   vga=790   vga= ?    vga=793    vga= ? 
#   65000 16   vga=785  vga=788   vga=791   vga=355   vga=794    vga=798
#   16.7M 24   vga=786  vga=789   vga=792   vga=795   vga=799
menuentry "Debian GNU/Linux, linux 2.6.32-trunk-686" {
	set root=(hd0,5)
	linux	/vmlinuz-2.6.32-8.shl.1-sidux-686 root=/dev/hda6 vga=791 ro  
	initrd	/initrd.img-2.6.32-8.shl.1-sidux-686
}
menuentry "Debian GNU/Linux" {
	set root=(hd0,5)
	linux	/vmlinuz-2.6.32-trunk-686 root=/dev/hda6 vga=791 noapic acpi_sleep=s3_bios agp=off ro  
	initrd	/initrd.img-2.6.32-trunk-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_otheros ###

menuentry "Windows 7 / Windows XP" {
	set root=(hd0,1)
	chainloader +1
}
### END /etc/grub.d/30_otheros ###

### BEGIN /etc/grub.d/40_custom ###
### END /etc/grub.d/40_custom ###






menu.lst u mne :


# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
title		Microsoft Windows6
root		(hd0,0)
makeactive
chainloader	+1
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=40b7e212-90e3-46cd-84d9-a3b294ab8cc2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=vga=791

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=3

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=true

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Debian GNU/Linux, kernel 2.6.32-trunk-686
root		(hd0,4)
kernel		/vmlinuz-2.6.32-trunk-686 root=UUID=40b7e212-90e3-46cd-84d9-a3b294ab8cc2 ro vga=791
initrd		/initrd.img-2.6.32-trunk-686

title		Debian GNU/Linux, kernel 2.6.30-2-686
root		(hd0,4)
kernel		/vmlinuz-2.6.30-2-686 root=UUID=40b7e212-90e3-46cd-84d9-a3b294ab8cc2 ro vga=791
initrd		/initrd.img-2.6.30-2-686

title		Debian GNU/Linux, kernel 2.6.26-2-486
root		(hd0,4)
kernel		/vmlinuz-2.6.26-2-486 root=UUID=40b7e212-90e3-46cd-84d9-a3b294ab8cc2 ro vga=791
initrd		/initrd.img-2.6.26-2-486

### END DEBIAN AUTOMAGIC KERNELS LIST


místo root=UUID můžeš dát root=/dev/hda* nebo root=/dev/sda* podle tebe , samozřejmě musíš vědět co kde máš a upravit jinak ti můj fungovat nebude.

Takže neni chyba co ti to dělá , jen nemáš konfigurační soubor.
pepe_ avatar 22.4.2010 20:15 pepe_ | skóre: 48
Rozbalit Rozbalit vše Re: grub problem
a nastartovat můžeš :
například u mne :


grub> root (hd0,4)
 Filesystem type is ext2fs, partition type 0x83




hledáš až najdeš správnou partition která nehlásí  Filesystem type unknown


potom

kernel (hd0,4)/boot/vmlin


a zmáčkneš tab (vybereš správnej) a enter

potom

kernel (hd0,4)/boot/initr

a podobně jako s kernelem

a nakonec   boot a enter






pokud chceš bootnout například winxp na první partition tak

root noverify (hd0,0)
makeactive
chainloader +1
boot



doufam že ti to pomůže 


Pepe-Cheb
TheTechnic avatar 22.4.2010 20:53 TheTechnic | skóre: 7
Rozbalit Rozbalit vše Re: grub problem
Odpovědět | | Sbalit | Link | Blokovat | Admin
hm divne, konfigy existuju, nefunguje mi to len s grub vo verzii 0.97-29ubuntu59 ani nenabootuje, stale ta hlaska co predtym, dokonca je opatchovany tento grub, aby spoznal btrfs system, samozrejme /boot partition mam na ext4. Skusil som grub2 vo verzii 1.97~beta4-1ubuntu4.1 ten nabootuje, ale nejak nevie spoznat /root partition. Skusil som ju prekonvertovat spat na ext4 ale stale je niekde problem, s grub.cfg sa mi zda ze berie stale zle UUID disku, pritom v /etc/fstab je zmenene OK, len v grub.cfg neviem zapisovat aby som to rucne zmenil.

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.