MandrivaUsers.org : Lilo [solved] - MandrivaUsers.org

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Lilo [solved] problems

#1 User is offline   DirecX 

  • New Here
  • Group: New here
  • Posts: 7
  • Joined: 28-December 04

Post icon  Posted 05 February 2005 - 03:30 AM

I'm fairly new to linux, but I am learning rather quickly. After I updated mandrake, 10.0 official, I went to change a setting or two with Lilo and for some reason all information in regards to it's settings etc was, to my surprise, gone. Out of curiosity i looked at Lilo's config file and all of the information was there. I changed what i wanted to change there, yes i did change it correctly, and saved it and rebooted. Lilo was there but the modifications that I had made to it were not. I re-did my modifications and there was no change. I attempted to re-install Lilo two ways. First I opened the kernel and typed su, then /sbin/lilo -v and I received the error "Fatal: File system would be destroyed by LILO boot sector:/dev/hda1" I then attempted to re-install it by booting off of CD 1 of the install and it gave me the same error. Would it be best to un-install Lilo and remove mandrake and re-install it?

Thankx
0

#2 User is offline   Ixthusdan 

  • Platinum
  • Group: Platinum
  • Posts: 9,042
  • Joined: 17-September 02

Posted 05 February 2005 - 04:13 AM

Any time you make changes in lilo, you must also run "lilo -v" in order for the changes to take effect. I am not sure what the results are of reinstalling the ways you describe.

Boot Mnadrake, Open a console and su to root. Type "lilo -v" . If you get an error, it is possible you have installed lilo into two different areas. I always use the mbr. The warning might be given if your edits are going to cause some sort of error. Why not post the lilo you wish to run and let's check it out for any possible issue.
The people never give up their liberties but under some delusion. Edmund Burke, 1784
0

#3 User is offline   DirecX 

  • New Here
  • Group: New here
  • Posts: 7
  • Joined: 28-December 04

Posted 05 February 2005 - 06:24 PM

I did as you susgested with the lilo -v command and I recieved the same error:"Fatal: File system would be destroyed by LILO boot sector:/dev/hda1". Also how do you view the mbr in the console? :unsure:/>

Here is my lilo.conf file:

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hda1
map=/boot/map
default="windows"
keytable=/boot/us.klt
prompt
nowarn
timeout=600
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
	label="linux"
	root=/dev/hda7
	initrd=/boot/initrd.img
	append="devfs=mount acpi=ht splash=silent"
	vga=788
	read-only
image=/boot/vmlinuz
	label="linux-nonfb"
	root=/dev/hda7
	initrd=/boot/initrd.img
	append="devfs=mount acpi=ht"
	read-only
image=/boot/vmlinuz-i686-up-4GB
	label="linux-i686-up-4GB"
	root=/dev/hda7
	initrd=/boot/initrd-i686-up-4GB.img
	append="devfs=mount acpi=ht splash=silent"
	read-only
image=/boot/vmlinuz-p3-smp-64GB
	label="linux-p3-smp-64GB"
	root=/dev/hda7
	initrd=/boot/initrd-p3-smp-64GB.img
	append="devfs=mount acpi=ht splash=silent"
	read-only
image=/boot/vmlinuz-2.6.3-7mdk
	label="263-7"
	root=/dev/hda7
	initrd=/boot/initrd-2.6.3-7mdk.img
	append="devfs=mount acpi=ht splash=silent"
	read-only
image=/boot/vmlinuz-smp
	label="linux-smp"
	root=/dev/hda7
	initrd=/boot/initrd-smp.img
	append="devfs=mount acpi=ht splash=silent"
	read-only
image=/boot/vmlinuz
	label="failsafe"
	root=/dev/hda7
	initrd=/boot/initrd.img
	append="failsafe acpi=ht devfs=nomount"
	read-only
other=/dev/hda1
	label="windows"
	table=/dev/hda

This post has been edited by DirecX: 05 February 2005 - 06:25 PM

0

#4 User is offline   Ixthusdan 

  • Platinum
  • Group: Platinum
  • Posts: 9,042
  • Joined: 17-September 02

Posted 06 February 2005 - 12:52 AM

Uninstall lilo first. See if you get any warnings like "no lilo installed" or such.
The people never give up their liberties but under some delusion. Edmund Burke, 1784
0

#5 User is offline   a13x 

  • Awesome
  • Group: OTW
  • Posts: 485
  • Joined: 26-June 04

Posted 06 February 2005 - 12:22 PM

I think this is the problem:


other=/dev/hda1  
label="windows"


This is your Windows partition as far as I can tell and it probably is NTFS

 
boot=/dev/hda1  


You are trying to put the bootloader on the Windows partition. That will never work, I think.

Change boot=/dev/hda1 to boot=/dev/hda (to put the bootloader in the MBR) or boot=/dev/hda7 (to put lilo on your Linux partition).

Then run lilo -v or lilo -cv (if you want it to boot faster).

I always put the bootloader in the MBR. I never had any trouble with it there.

I hope this helps. ;)/>

This post has been edited by a13x: 06 February 2005 - 12:24 PM

Posted Image Gentoo ~x86 Kernel 2.6.12-rc2-love1 NPTL GCC 3.4.3 Reiser4 KDE 3.4 Desktop with Project Utopia

Knowledge is power, wisdom is invincibility.
0

#6 User is offline   DirecX 

  • New Here
  • Group: New here
  • Posts: 7
  • Joined: 28-December 04

Posted 06 February 2005 - 07:01 PM

Thank you all. It worked :D/>
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users