Permalänk
Medlem

lilo mbr

hur gör jag så att lilo skriver över mbr jag kör slackware och windows xp

Visa signatur

Grejer jag tycker om: OpenBSD, FreeBSD samt Gentoo

Permalänk
Medlem

Lättast är nog att köra liloconfig och välja mbr där

Visa signatur

Hej

Permalänk
Hedersmedlem

Kör lilo så skriver den mbr efter inställningarna i /etc/lilo.conf.

liloconfig har jag ingen exekver som heter.

Visa signatur

motor.holy.se - Projekt "Tüsk MiniJänk med Engelsk V8"
"Bingolotto, till och med Loket har trötnat" - Loesje
"Och jag som trodde att världens häftigaste moderator inte existerade!" - Robbster

Permalänk
Medlem

Beroende på hur du valt att installera linux så kan även lilo vara konfigurerat att skriva till bootsektorn på en viss partition (t ex /dev/hda1) inställt för mbr. Se till att du har en rad liknande "boot=/dev/hda" i lilo.conf.

Permalänk
Medlem

tack för all hjälp hitils när jag har kör liloconfig så får jag fel medelandet ERROR #1
Jag har installerat lilo på /dev/hda6 och min root finns på partionen /dev/hda2
och windows ligger på /dev/hda1.. min lilo.conf ser ut så här:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
append="/dev/hda2"
boot = /dev/hda6
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins
other = /dev/hda1
label = WindowsXP
table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only
# Linux bootable partition config ends

Visa signatur

Grejer jag tycker om: OpenBSD, FreeBSD samt Gentoo

Permalänk
Hedersmedlem

"boot = /dev/hda6"

Borde väl vara "boot = /dev/hda" ?

Och /boot/vmlinuz är din kärna?

Visa signatur

motor.holy.se - Projekt "Tüsk MiniJänk med Engelsk V8"
"Bingolotto, till och med Loket har trötnat" - Loesje
"Och jag som trodde att världens häftigaste moderator inte existerade!" - Robbster

Permalänk
Medlem

tack för hjälpen igen.. nu har jag ändrat lilo.conf till:# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
append="/dev/hda2"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins
other = /dev/hda1
label = WindowsXP
table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-ide-2.4.22
root = /dev/hda2
label = Linux
read-only
# Linux bootable partition config ends

vilka växlar ska jag ha på lilo för att skriva över mbr nu?

Visa signatur

Grejer jag tycker om: OpenBSD, FreeBSD samt Gentoo

Permalänk
Medlem

jag brukar peka boot på /dev/hda så skriver den i MBR istället

sen kör man bara "lilo" som root för att skriva om MBR

Permalänk
Medlem

någonsin testat "man lilo" och sedan söka efter mbr?

-M master-device [mbr|ext] Install a Master Boot Record on the device specified as master- device, selecting the Standard or Extended Master Boot Loader per the option. The primary partition table on master-device is undisturbed. If no valid volume ID (serial number) is present, then generate one and write it to the MBR. If mbr is specified, the Standard Master Boot Loader will search partitions 1-4 for an active flag, and boot the flagged partition. Only one active flag is allowed. If ext is specified, the search for an active partition will include extended partitions as well. The pres- ence of the Extended Master Boot Loader on the Master Boot Record (MBR = sector 0) of a disk affects the operation of the -A option.

så "lilo -M /dev/device-du-vill-mosa-in-mrb-på"

Permalänk
Medlem

jag skrev lilo -M /dev/hda mbr men jag får ändå inte upp lilo efter en reboot...

Visa signatur

Grejer jag tycker om: OpenBSD, FreeBSD samt Gentoo

Permalänk
Hedersmedlem

Köra bara lilo, utan växlar. Vad säger lilo då?

Ska stå
Added <blah>*
Added <blah>
osv för alla den lagt till. Stjärnan betyder att det är defaultvalet.

Dessa options vette fan vad de gör. Kanske värt att kolla upp:
# Override dangerous defaults that rewrite the partition table:
change-rules
reset

Dock vore det ju fånigt om den inte skrev mbr med de där.

Detta kan resultera i en svart skärm när kärnan laddar, om fb inte är konfigurerat rätt.
vga = 773

Kommentera ut och avkommentera
vga = normal

Om det skulle bli så (vilket inte är helt ovanligt).

Visa signatur

motor.holy.se - Projekt "Tüsk MiniJänk med Engelsk V8"
"Bingolotto, till och med Loket har trötnat" - Loesje
"Och jag som trodde att världens häftigaste moderator inte existerade!" - Robbster

Permalänk
Medlem

tack för all hjälp det löste sig till slut :D... skrev om hela lilo.conf med hjälp av man lilo.conf

Visa signatur

Grejer jag tycker om: OpenBSD, FreeBSD samt Gentoo