LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-09-2003, 11:23 PM   #1
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
I Messed Up My LiLo.Conf DOS Partition Entry...Help?


I was using Vi to delete the section for a non-existent windows partition in my lilo.conf file ( mandrake 9.0 distro, btw ), and somehow is started deleting lines above the section I had targeted. I tried exiting Vi with just "x" so it wouldn't write any changes, but it wrote them anyway.

The section that was partiall deleted by accident was a DOS partition that holds the boot loader for my Windows XP partion. Anyhow, I know something is wrong because when I run "lilo" it tells me there should be a "To" value above the final section of the lilo file. I added the word "To", but it of course expects a value there. I have no idea what it wants, but here is my lilo.conf file ( with the word "to" that I added.

boot=/dev/sda
map=/boot/map
vga=normal
default=linux
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/vmlinuz
label=linux
root=/dev/sda5
initrd=/boot/initrd.img
append="quiet devfs=mount"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/sda5
initrd=/boot/initrd.img
append="devfs=mount"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/sda5
initrd=/boot/initrd.img
append="failsafe devfs=nomount"
read-only
other=/dev/sda1
label=dos
table=/dev/sda
map-drive=0x81
to
other=/dev/fd0
label=floppy
unsafe

Anyone have a lilo file with a DOS entry that may help shed light on what I need to add? Remember, I am using Mandrake 9.0 , kernel 2.4.19-16mdk.

Thank You in advance!
 
Old 05-09-2003, 11:50 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
normally you would have somethinglike this

map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
 
Old 05-10-2003, 12:14 AM   #3
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
Some more info

ok, now I know what the map-drive and the "to" are for( to trick windows into thinking it is booting from first ide drive ).
Note that the DOS partion is on SDA along with my linux drive, and that is the boot disk for my system. I am wondering if I paniced too fast and perhaps should just delete the map-drive part as it could have been from the deleted section.

FYI I tried setting "to" to 0x80, 0x82, 0x83, with no change. (I get the "missing hal.dll" error every time ).
To clarify things, my boot drive is a RAID set that is seen by linux as SDA , the DOS partition is on this drive, and boots Windows XP from an IDE drive the built-in IDE controller on my motherboard, but again that is not my boot device.

Will let you folks know what happens, and thank you for your help.
 
Old 05-10-2003, 01:18 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
for xp i use this

other = /dev/hda2
label = Windows
optional


or yours would be where xp is
 
Old 05-11-2003, 04:36 PM   #5
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
Figured it out

I removed the two lines I was worried about and now it works fine. Thank you for your help.
 
Old 05-11-2003, 05:28 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bogus entry in /etc/resolv.conf jeffbarish Linux - Networking 10 12-12-2006 07:48 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 03:15 AM
module.conf entry not loading thompsonrj Linux - Hardware 2 01-31-2004 11:06 PM
lilo.conf doesn't have an effect on my boot-partition... pablovschby Linux - Software 6 10-19-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration