GRUB2 - przekazanie komendy startowej do j

Tematy związane z oprogramowaniem, instalacją, konfiguracją
Awatar użytkownika
panjandrum
Posty: 66
Rejestracja: 08 sierpnia 2009, 00:05

GRUB2 - przekazanie komendy startowej do jądra

Post autor: panjandrum »

Ze starym grubem wszystko działało, a z nowym już nie, a wpis muszę mieć, żeby prawidłowo mi wyłączało komputer. Jakieś sugestie?
Brak reakcji po dopisaniu:

Kod: Zaznacz cały

 acpi=force 
po przejściu na grub2.

/etc/dafault/grub:

Kod: Zaznacz cały

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

# 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 entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"
/boot/grub/grub.cfg

Kod: Zaznacz cały

#
# 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 ###
set default=0
set timeout=5
set root=(hd0,2)
search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,2)
search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30.4-custom" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.30.4-custom root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro  quiet acpi=force
	initrd	/boot/initrd.img-2.6.30.4-custom
}
menuentry "Debian GNU/Linux, Linux 2.6.30.4-custom (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.30.4-custom root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro single 
	initrd	/boot/initrd.img-2.6.30.4-custom
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-486" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.30-1-486 root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro  quiet acpi=force
	initrd	/boot/initrd.img-2.6.30-1-486
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-486 (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.30-1-486 root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro single 
	initrd	/boot/initrd.img-2.6.30-1-486
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-486" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.26-2-486 root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro  quiet acpi=force
	initrd	/boot/initrd.img-2.6.26-2-486
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-486 (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 2db39d97-d0f6-4a7e-a246-7a74c00e0f6e
	linux	/boot/vmlinuz-2.6.26-2-486 root=UUID=2db39d97-d0f6-4a7e-a246-7a74c00e0f6e ro single 
	initrd	/boot/initrd.img-2.6.26-2-486
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu 9.04, kernel 2.6.30.4-custom (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.30.4-custom root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro acpi=force quiet
	initrd /boot/initrd.img-2.6.30.4-custom
}
menuentry "Ubuntu 9.04, kernel 2.6.30.4-custom (recovery mode) (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.30.4-custom root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro single
	initrd /boot/initrd.img-2.6.30.4-custom
}
menuentry "Ubuntu 9.04, kernel 2.6.28-14-generic (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.28-14-generic root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro acpi=force quiet
	initrd /boot/initrd.img-2.6.28-14-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode) (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.28-14-generic root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro single
	initrd /boot/initrd.img-2.6.28-14-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.28-13-generic (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.28-13-generic root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro acpi=force quiet
	initrd /boot/initrd.img-2.6.28-13-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode) (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /boot/vmlinuz-2.6.28-13-generic root=UUID=ecef6373-d099-411e-86ea-eec53178f109 ro single
	initrd /boot/initrd.img-2.6.28-13-generic
}
menuentry "Debian Installer (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set ecef6373-d099-411e-86ea-eec53178f109
	linux /hd-media/vmlinuz root=/dev/hda1
	initrd /hd-media/initrd.gz
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
Awatar użytkownika
panjandrum
Posty: 66
Rejestracja: 08 sierpnia 2009, 00:05

Post autor: panjandrum »

Przeglądałem już te tematy, ale to nie ma nic wspólnego z moim problemem.

[ Dodano: 2009-08-18, 11:20 ]
Podsyłam logi:

Przez GRUB2:

Kod: Zaznacz cały

[    0.000000]  BIOS-e820: 0000000015ff0000 - 0000000015ff8000 (ACPI data)
[    0.000000]  BIOS-e820: 0000000015ff8000 - 0000000016000000 (ACPI NVS)
[    0.000000]  modified: 0000000015ff0000 - 0000000015ff8000 (ACPI data)
[    0.000000]  modified: 0000000015ff8000 - 0000000016000000 (ACPI NVS)
[    0.000000] ACPI: RSDP 000fc390 00014 (v00 AMI   )
[    0.000000] ACPI:      15ff0000 34A70311 (v00                 00000000      00000004)
[    0.027725] ACPI: Interpreter disabled.
[    0.030033] pnp: PnP ACPI: disabled
Na działającym, starszym GRUBie:

Kod: Zaznacz cały

[    0.000000]  BIOS-e820: 0000000015ff0000 - 0000000015ff8000 (ACPI data)
[    0.000000]  BIOS-e820: 0000000015ff8000 - 0000000016000000 (ACPI NVS)
[    0.000000]  modified: 0000000015ff0000 - 0000000015ff8000 (ACPI data)
[    0.000000]  modified: 0000000015ff8000 - 0000000016000000 (ACPI NVS)
[    0.000000] ACPI: RSDP 000fc390 00014 (v00 AMI   )
[    0.000000] ACPI: RSDT 15ff0000 00028 (v01 AMIINT AMIINT10 00001000 MSFT 0100000B)
[    0.000000] ACPI: FACP 15ff0030 00074 (v01 AMIINT AMIINT10 00001000 MSFT 0100000B)
[    0.000000] ACPI: DSDT 15ff00b0 02D2C (v01    SiS     730S 00000100 MSFT 0100000B)
[    0.000000] ACPI: FACS 15ff8000 00040
[    0.000000] ACPI: BIOS age (1997) fails cutoff (2000), acpi=force is required to enable ACPI
[    0.000000] ACPI: acpi=force override
[    0.000000] ACPI: PM-Timer IO Port: 0x5008
[    0.022402] ACPI: Core revision 20090320
[    0.032207] ACPI: setting ELCR to 0200 (from 0820)
[    0.040983] ACPI: bus type pci registered
[    0.045218] ACPI: EC: Look up EC in DSDT
[    0.053629] ACPI: Interpreter enabled
[    0.053645] ACPI: (supports S0 S1 S4 S5)
[    0.053685] ACPI: Using PIC for interrupt routing
[    0.062465] ACPI: Power Resource [URP1] (off)
[    0.062536] ACPI: Power Resource [URP2] (off)
[    0.062607] ACPI: Power Resource [FDDP] (off)
[    0.062676] ACPI: Power Resource [LPTP] (off)
[    0.062904] ACPI: No dock devices found.
[    0.062929] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.063686] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.065048] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 10 11 12 14 15) *0, disabled.
[    0.065302] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10 *11 12 14 15)
[    0.065550] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 10 11 12 14 15) *0, disabled.
[    0.065797] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 7 10 11 12 14 15)
[    0.066741] PCI: Using ACPI for IRQ routing
[    0.067200] pnp: PnP ACPI init
[    0.067239] ACPI: bus type pnp registered
[    0.075175] pnp: PnP ACPI: found 13 devices
[    0.075180] ACPI: ACPI bus type pnp unregistered
[    0.842338] ACPI: Power Button [PWRF]
[    0.842456] ACPI: Power Button [PWBX]
[    0.842571] ACPI: Sleep Button [SLPB]
[    0.842835] ACPI: CPU0 (power states: C1[C1] C2[C2])
[    0.842886] processor ACPI_CPU:00: registered as cooling_device0
[    0.842894] ACPI: Processor [CPU1] (supports 8 throttling states)
[    3.834021] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
[   20.973953] parport_pc 00:0a: reported by Plug and Play ACPI
[   22.631428] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
Tak jakby wcale kernel nie dostawał tej komendy, może coś nie tak z moim grubem?
fnmirk
Senior Member
Posty: 8324
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

panjandrum pisze:Przeglądałem już te tematy, ale to nie ma nic wspólnego z moim problemem.
panjandrum, a co ma jak nie zajrzenie do dokumentacji? Odpowiedź musi być zawarta w dokumentacji. Skoro z nowym grubem są problemy to dlaczego z niego korzystasz na głównym komputerze i na nim eksperymentujesz. Grub2 jest ciągle w fazie testów i nie wszystko z nim działa poprawnie.
Awatar użytkownika
panjandrum
Posty: 66
Rejestracja: 08 sierpnia 2009, 00:05

Post autor: panjandrum »

W dokumentacji nic nie ma, nie jest ona za obszerna, ale pewnie faktycznie to jest błąd bo próbowałem przeróżnych rozwiązań. Potrzebowałem grub2, ponieważ ten z Debiana (nawet z Sida) nie obsługuje ext4.
winnetou

Post autor: winnetou »

panjandrum pisze:W dokumentacji nic nie ma, nie jest ona za obszerna, ale pewnie faktycznie to jest bug bo próbowałem przeróżnych rozwiązań. Potrzebowałem grub2, ponieważ ten z debiana (nawet z sida) nie obsługuje ext4.
A w czym problem zrobić 30MB partycję /boot i sformatować ją na EXT2? Ja tak mam od zawsze i nie było problemów ] Dodatkowo mogę ją sobie współdzielić z kilkoma dystrybucjami - podobnie jak swap.
Awatar użytkownika
panjandrum
Posty: 66
Rejestracja: 08 sierpnia 2009, 00:05

Post autor: panjandrum »

Problem w sumie żaden, ale nie jest mi ona już potrzebna. Zainstalowałem grub-legacy i dodałem obsługę ext4. Szkoda tylko, że grub2 nie chce prawidłowo działać. No nic...

Zgłoszę błąd na:
http://savannah.gnu.org/bugs/?group=grub
to może naprawią.
Awatar użytkownika
kodzik
Beginner
Posty: 175
Rejestracja: 16 listopada 2007, 16:11
Lokalizacja: Sieradz

Post autor: kodzik »

Zawsze możesz spróbować dopisać ręcznie wpis do /etc/grub.d/10_linux
Znajdź fragment:

Kod: Zaznacz cały

linux_entry ()
{
  cat << EOF
menuentry "$1" {
EOF
  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
  cat << EOF
	linux	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
EOF
I dopisz opcje które chcesz po "ro"
Następnie polecenie

Kod: Zaznacz cały

update-grub
i powinno być ok.

Grub2 nie jest jeszcze w pełni sprawny, dlatego jeśli nie chcesz eksperymentować, zostaw sobie grub1
Awatar użytkownika
panjandrum
Posty: 66
Rejestracja: 08 sierpnia 2009, 00:05

Post autor: panjandrum »

Ale ten skrypt jest tylko do generowania grub.cfg, a jak widać w pierwszym poście mam tam dodane komendy:

Kod: Zaznacz cały

quiet acpi=force
quiet działa, ale acpi=force już nie, co widać w logach, które podesłałem.
Awatar użytkownika
kodzik
Beginner
Posty: 175
Rejestracja: 16 listopada 2007, 16:11
Lokalizacja: Sieradz

Post autor: kodzik »

Wiem, że on generuje grub.cfg. Właśnie tam powinno się zmieniać wpisy do gruba gdyż grub.cfg sam w sobie jest read-only. Poprzez te szablony przekazuje się do niego parametry.
ODPOWIEDZ