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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-24-2003, 05:44 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Rep:
|
Help with Boot Options
I have recently set up Mandrake Linux 9.1 as a dual boot with Windows XP Home, and all is well, except I cant seem to set Windows as the default, so when I boot my PC up, it loads into Linux by default. I dont want this.
For some reason, I couldnt find Linux mentioned in the Windows boot.ini file, so I had a look in Linux and found the Control Center --> System --> Boot Manager section.
I saw Linux was default, so I set windows to default, and clicked Apply. I got an error message saying the Configuration was NOT ok. I thought this was Linux trying to make itself the default, so I ignored it, but Linux remained the default when I booted up. Also, I see to have linux, linux-enterpris, failsafe, windows and floppy listed in the Operating Systems windows, which is a bit weird and confusing.
Anyway, how do I make window the default?
Here is my current configuration file (which is shown in the Expert tab):
Quote:
boot="/dev/hda"
map=/boot/map
keytable=/boot/uk.klt
prompt
nowarn
timeout="100"
message=/boot/message
menu-scheme=wb:bw:wb:bw
default=windows
image="/boot/vmlinuz"
label="linux"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
read-only
image="/boot/vmlinuz-enterprise"
label="linux-enterpris"
root="/dev/hda5"
initrd="/boot/initrd-enterprise.img"
append="devfs=mount hdc=ide-scsi acpi=off"
read-only
image="/boot/vmlinuz"
label="failsafe"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=nomount hdc=ide-scsi acpi=off failsafe"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
image="/dev/hda1"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
image="/dev/hda1"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
|
And here is the Configuration file error:
Quote:
Configuration NOT ok. LILO said:
LILO version 22.4.1 (test mode), Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 11:11:26 on Feb 5 2003.
Reading boot sector from /dev/hda
Using GRAPHIC secondary loader
Calling map_insert_data
Mapping message file /boot/message -> message-graphic
Calling map_insert_file
Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added linux
Boot image: /boot/vmlinuz-enterprise -> vmlinuz-2.4.21-0.13mdkenterprise
Mapping RAM disk /boot/initrd-enterprise.img -> initrd-2.4.21-0.13mdkenterprise.img
Added linux-enterpris
Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added failsafe
Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Added windows *
Boot image: /dev/hda1 -> ide/host0/bus0/target0/lun0/part1
Fatal: Kernel doesn't support initial RAM disks
|
Has anyone got any ideas?
Also, since I'm here, another weird thing I've noticed is that I can access my Windows files from a Linux menu (from the mnt --> windows menu), and open images, etc, but I cant access Linux files from Windows. In fact, Windows has no mention of Linux anywhere.
They are on 2 separate partitions, so it is a bit weird, but its not a major problem like my default booting thing.
Any ideas please?
|
|
|
07-24-2003, 05:55 PM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
One possible problem in saving your Lilo.conf file is the 2 duplicate entries at the bottom.
Delete these 2 entries at the botom and save lilo.conf again
image="/dev/hda1"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
image="/dev/hda1"
root="/dev/hda5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
Youve already got :
default=windows
So once your able to save lilo.conf correctly - Windows will be your default boot up OS
remember to become root user at a console after youve saved lilo.conf and type
/sbin/lilo
In general you wont be able to see Linux partitions from Windows but you can see Windows partitions from Linux
Last edited by Skyline; 07-24-2003 at 05:57 PM.
|
|
|
07-24-2003, 05:59 PM
|
#3
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Major advice for Mandrake: Use the Mandrake Control Centre and it's bootloader configurator instead of the KDE one in the KDE Control Centre.
Also remember you can boot off the 1st Mdk install disk and the rescue mode has an option to fix Lilo if you manage to break it.
Only some newer server releases of Windows have linux filesystem support iirc.
|
|
|
07-24-2003, 06:11 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
I removed the duplicate entry, but still got both the error messages that I quoted in my first post. I didnt do that console thing, because I didnt think there was much point since I got errors, and when I rebooted, linux was still the default.
What else should I try?
|
|
|
07-24-2003, 06:17 PM
|
#5
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Lilo wont be updated until you run lilo, or better lilo -v -v. Just change the default line in /etc/lilo.conf, save the file, and run that command.
Or use the nice Mandrake editor.
|
|
|
07-24-2003, 06:22 PM
|
#6
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
So, you want me to open the Console and type /sbin/lilo -v -v
Is that right (excuse me for being a very slow Linux learner!)?
Btw, whats this Mandrake editor?
|
|
|
07-24-2003, 06:27 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Damian
I wouldnt run /sbin/lilo yet as you haven't been able to save lilo.conf correctly yet.
Do you hasve the powerpack edition of Mandrake - which edition have you got.
|
|
|
07-24-2003, 06:30 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
Yeah, I've got the PowerPack edition. I keep getting the Configuration is NOT ok error whenever I try to click Apply to any changes I make.
It doesnt seem to make much difference, as Linux and Windows both load correctly, but I would like to make Windows the default.
I am also a little confused as to what failsafe and Linux Enterpris are? I had something called Floppy on the list as well, but deleted it, which I'm guessing was the wrong thing to do now!
|
|
|
07-24-2003, 06:31 PM
|
#9
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Well, try posting the contents of /etc/lilo.conf here first, as that's what KDE's editor is trying to alter.
The Mandrake Boot option editor is explained in my post above.
|
|
|
07-24-2003, 06:36 PM
|
#10
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
I am going to Start Applications --> Configuration --> Control Center --> System --> Boot Manager (LILO), and changing the things in there.
Do you want me to post the contents of the Expert tab on that, or the contents of another file?
|
|
|
07-24-2003, 06:42 PM
|
#11
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
I'd rather the raw file, instead of KDE's possibly munged output. Simply start kwrite or your fav text editor and open /etc/lilo.conf. You may need to use the KDE launcher/Run... entry to start the app as root to access that file, depending on your security settings.
Failsafe is like windows safe mode, only this is actually useful and doesnt break other settings. Floppy was to boot off a floppy drive containing a boot disk. Enterprise is probably a hardened server variation of the kernel to deal with higher load and attacks in the business environment.
|
|
|
07-24-2003, 06:46 PM
|
#12
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Damian
The Expert tab is your LILO.CONF file - and you've already posted it.
As I said in my first post the default = directive already correctly points to Windows.
The problem youve got is trying to save it correctly first before you run the map installer /sbin/lilo
The last line of the error mesage talks about the kernel not supporting inital ram disks? - strange
Last edited by Skyline; 07-24-2003 at 06:48 PM.
|
|
|
07-24-2003, 06:49 PM
|
#13
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
I think this may be KDE's editor's fault, so running /sbin/lilo -v -v will report specifics about any problems when trying to update lilo. It may be the quickest way to solve the problem.
Editing lilo.conf by hand isnt hard, so we can skip kde's editor and just use a text editor.
Edit: scratch that, I think the symlinks for vmlinuz and initrd.img are squiffy, maybe because of multiple kernel source installs or repeated kernel install-uninstall?
Last edited by Proud; 07-24-2003 at 06:53 PM.
|
|
|
07-24-2003, 06:55 PM
|
#14
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
I found the etc/lilo.conf file but couldnt open it in anything - KWord wouldnt let me, neither would KJots, and attempting to save it to floppy disk to open in Notepad in Windows didnt work as it said "Cannot read from /etc/lilo.conf".
That RAM error is strange - maybe its because I have 1024Mb of RAM - I know Windows has initial problems working with so much.
Anyway, I am having to post this in Windows, close down, go into Linux, etc, etc, so sorry for a long time between posts. Shall I run that console command and see what happens, or has anyone got any other ideas?
Could someone do it on their own PC and copy and paste me the contents of lilo.conf, or wouldnt that work?
|
|
|
07-24-2003, 06:58 PM
|
#15
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
Well, I did install and then reinstalled over it (well, I thought I did), because the first time I did it, it didnt work at all.
The first time I installed it, i deleted everything in the list except windows and linux, and renamed linux to mandrakelinux, and window to windowsxp.
Then, on bootup, when I selected mandrakelinux, it said "Loading mandrakelinux....." but then didnt do anything, ever. I had to keep restarting the PC. Windows loaded fine though.
Maybe I reinstalled wrong - I do know I got confused at the partition questions it asked me, and just kept clicking Next and accepting their default values - maybe I agreed to a wrong value.
What can I do?
|
|
|
All times are GMT -5. The time now is 06:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|