LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2004, 04:27 AM   #1
kingscott
LQ Newbie
 
Registered: Nov 2004
Location: Cambridge, MA
Distribution: Mandrake 10.0
Posts: 15

Rep: Reputation: Disabled
changin lilo.conf has no effect


I'm new to running linux. I've managed to set up a dual-boot (Mandrake 10.0/XP) on my IBM Thinkpad. I'd like XP to be the default boot, so I changed lilo.conf so that the 'default' key was set to "windows". Afterwards I ran lilo as root, and it seemed to finish successfully (even putitng an asterix next to the windows line it prints out, which I assume means that it has been set as the default). However, after reboot windows is still not the default. I tried this a few times, no changes.
I looked in /boot/grub, and I don't see a grub.conf file, or a menu.lst file, which makes me think that lilo is in fact what is being used by my system, and not grub (I just used a Mandrake 10.0 install disk, I didn't build the kernel myself, so I don't know exactlhy what's going on). Anyone know how I can fix this?

Thanks!
 
Old 11-01-2004, 04:42 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Try running lilo -v n where n is a number between 1 & 5. The higher the number, the more verbose the output is. Check for any errors that may be occuring.

Baldrick
 
Old 11-01-2004, 04:28 PM   #3
kingscott
LQ Newbie
 
Registered: Nov 2004
Location: Cambridge, MA
Distribution: Mandrake 10.0
Posts: 15

Original Poster
Rep: Reputation: Disabled
OK, tried that, no obvious errors...it syas that it can't make a backup copy of the boot sector because the default file already exists, but that's about it (grep'd the output for n=5 with "warn", "fail", and "err").

I don't know if this could be related, but installation was a little rocky for me. Initially I had Mandrake on the linux partition. I couldn't get the wireless card working, so someone tried to "fix" it for me and installed FedoraCore instead. He couldn't get the wireless card working, but I found someone who had gotten it working under mandrake, so I put mandrake back on (and got the card working, eventually). Now when I reinstalled Mandrake I had some problems and I had to try it a couple of times. During this process, I tried different values for the "mount point" option in the Mandrake 10.0 installation wizard (remember, running linux is new to me, I was just going with a trial-and-error approach). Is it possible that I choose the wrong thing? Or by choosing different values on different installation attempts maybe lilo got confused about where the MRB is? Just a thought....any way to check this? From my lilo.conf file I see that the root for the linux boots is /dev/had3, but for windows it's /dev/hda. Is that bad?

Thanks again.....
 
Old 11-01-2004, 04:32 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
If it's /dev/hda for windows (and the lilo was installed to the mbr), then it probably is just going in circles loading itself again and again. Try '/dev/hda1' (assuming windows is on the first partition).
 
Old 11-01-2004, 04:49 PM   #5
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Mint 17.2
Posts: 415

Rep: Reputation: 32
Do it through MCC. I use grub but if I change settings manually there ignored. through MCC and they work fine.
 
Old 11-01-2004, 05:34 PM   #6
kingscott
LQ Newbie
 
Registered: Nov 2004
Location: Cambridge, MA
Distribution: Mandrake 10.0
Posts: 15

Original Poster
Rep: Reputation: Disabled
I just tried MCC, it already had windows listed as the default boot. Still, I went through the configuration, but it had no effect.

As for "trying /dev/hda1", I'm not sure what is menat by this. The first line in my lilo.conf file says "boot=/dev/hda3", are you saying I should change this to "boot=/dev/hda1"? Or just change the windows entry? The windows entry looks like:

other=/dev/hda1
label="windows"
table=/dev/hda

I'm asking before I try because I _REALLY_ don't want to hose things so I can't boot. As a newbie it would be a pain for me to figure out how to fix it....

Thanks again!
 
Old 11-02-2004, 09:18 AM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Do not use 'boot=/dev/hda1'. I thought you were talking about the windows 'other=' line. Maybe you are actually using grub. The 'boot=/dev/hda3' means the lilo is being installed to the linux partition instead of the mbr. This would mean that the windows mbr was not overwritten, which is not the case since it seems you have some sort of boot menu (maybe grub) in the mbr now.

Try editing the /etc/grub.conf (the file's location often varies, but I think this where it is for Mandrake). Or you try to install lilo to the mbr instead by using 'boot=/dev/hda' in lilo.conf, then running 'lilo' to apply.
 
Old 11-02-2004, 06:46 PM   #8
kingscott
LQ Newbie
 
Registered: Nov 2004
Location: Cambridge, MA
Distribution: Mandrake 10.0
Posts: 15

Original Poster
Rep: Reputation: Disabled
Changing to boot=/dev/hda did the trick...thanks! I guess I had overwritten the MBR on one of my previous Mandrake installs, but on the latest one I chose /dev/hda3 as the mount point, so I guess lilo was writing to the linux partiton instead. Anyway, it's all good now, :-)

Maybe I should start a new thread for this, but while I'm at it, I noticed that Ihave a small (99Mb) partition at /dev/hda2, I can't tell where it came from or what it's used for. Is there a simple way to figure out if I can get rid of it?

Thanks again for all the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changin lilo src code Yntarius Linux - Software 1 12-22-2004 11:38 AM
Changin lilo src code Yntarius Linux - General 1 12-22-2004 11:35 AM
Changin lilo src code Yntarius Programming 0 12-22-2004 10:38 AM
Lilo.conf having no effect in 9.2 Boffy Mandriva 3 07-19-2004 09:29 AM
lilo.conf doesn't have an effect on my boot-partition... pablovschby Linux - Software 6 10-19-2003 06:40 PM


All times are GMT -5. The time now is 02:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration