LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-21-2004, 03:48 PM   #16
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled

My situation is different from yours. I post this a lot and people always do something different or never say what the results were, so I have no idea whether this is a fluke or not but it works for me. Because I swapped drives and didn't bother changing anything, both hda1 and hdb1 are marked 'bootable' and I have this
Code:
other = /dev/hdb1
  label = NT
  table = /dev/hdb
  master-boot
as my NT stanza. Master-boot (as I understand it) basically means LILO will tell ny 'other' that they are booting from 0x80 regardless. I only really run Slack but all five systems *can* boot.

I have no followups. I always get confused when I say something like this and people suddenly tell me they've switched to GRUB or that they were *really* trying to dual-boot OS/2 and ask for more help. But if you boot with LILO between Linux and an NT system on hdb1 with it flagged bootable, it oughtta work.
 
Old 03-21-2004, 03:56 PM   #17
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Following digiot's advice, if you don't know, you can use cfdisk to mark the partitions as bootable.
 
Old 03-22-2004, 12:20 PM   #18
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
thank you guys... however yesterday I made a really bad mistake.....I crashed both boot loaders.......
how can I restore the windows one *without* having a bootable WinXP CD or a Rescue Floppy?? any ideas?? Or is there a way to do this through Linux?
 
Old 03-22-2004, 12:29 PM   #19
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm not sure what 'crashed both boot loaders' means, but simply reboot with a Linux floppy or CD, edit your lilo.conf, rerun /sbin/lilo, and reboot. As long as the XP *system* is intact and properly configured, LILO will boot it. But you ought to have boot floppies (or several) for every system you've got.
 
Old 03-22-2004, 12:38 PM   #20
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Weirdly enough, you can do this with Mandrake 9.2 CD1-- one of their rescue options is "Restore Windows Bootloader". But of course you're not using Mandrake, and I'm not sure if the Slack rescue options include this (not going to reboot to find out, sorry ).

Dare I wonder how you have installed XP without a bootable CD?

Do you perhaps have a Win98 or ME boot floppy? You could use that to boot and try the fdisk /mbr command. It might work.

But I must ask you again-- I know you said that it was a real PITA to reinstall all of the Windows Updates and all.... but is it still? Because at this point, it's pretty much as simple to reinstall both OSes correctly as it is to fix this mistake.
 
Old 03-22-2004, 12:43 PM   #21
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
well, I have boot floppies for both, but those for Win won't work properly.
At the last disk I got a blue screen I LOVE THOSE
And I don't know why, but when I booted from the slackware cd, mounted my linux drive, reconfigured lilo.conf, and tried to run /sbin/lilo it wouldn't work....
Are you sure that this master-boot thing works?
But mayber I will just reinstall. But then wouldn't it be better to install windows first on master, and then Linux on slave?
Where should I place the boot loader?
thx
 
Old 03-22-2004, 12:51 PM   #22
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
The correct order of installation for a dual-boot system is:

1. Windows first, on the first primary partition of the first hard drive. If installing more than one version of Windows, install the oldest version first, then the newer (i.e., Win 98 then Win XP). The Windows bootloader will always install to the MBR, so no choice there.

2. Install Linux to any partition (primary or extended-- extended is preferred to prevent Windows from trying to give Linux partitions drive letters when Windows is loaded) on any drive.

3. Install LiLO to the MBR. This will overwrite the Windows bootloader, but LiLO will see that there is a Windows partition and will make an entry for it, enabling you to boot either Linux or Windows from the menu. If you had more than one version of Windows installed, choosing the Windows entry in the LiLO menu will take you to the Windows boot menu, which will enable you to choose which version of Windows you want to boot.
 
Old 03-22-2004, 01:25 PM   #23
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
ok, i understand the 1 and 2, but 3?
How will there be a windows boot menu when lilo installs to the mbr?
 
Old 03-22-2004, 01:38 PM   #24
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Bootloaders (all bootloaders) come in two stages. The first stage is on the MBR, and tells the booting system (which at this point in the boot process knows pretty much nothing but that there is an MBR) where to find the specific information as to what operating systems exist, where they are located, and how to boot them.

Thus, LiLO's first stage, on the MBR, points to /etc/lilo.conf on the Linux partition, which has the information as to what the menu should look like (graphic, text, what color), what OSes should be listed, and where the boot files for each listed OS reside.

The Windows bootloader (I think that's NTLDR for XP and 2000), points to boot.ini, which lists the items on the boot menu and how to boot them. However, since Windows expects to be the sole OS on the system, the boot.ini menu is by default not displayed unless you have more than one version of Windows installed, in which case boot.ini shows both Win 98 and Win 2000, for example.

However, if you have only one version of Windows installed, no Windows boot menu will be displayed, since it is unnecessary, but "not displayed" is not the same as "non-existant".

Last edited by motub; 03-22-2004 at 01:39 PM.
 
Old 03-22-2004, 01:50 PM   #25
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
thanks, you all saved me from insanity...... I got Windows to work again.
i used the winme boot floppy, fdisk /mbr and it went just fine.
Now I even have win on primary, as i switched the drives in the meantime.
@motub: Thanks, you were great help to me
I hadn't read your post first, but now it came handy!
Well, I *always* install WinXP by first installing WinMe and then updating...
Do you know why my PC doesn't boot from win CDs but does for Linux ones? My old one even booted exactly those win cds....strange...
However. NOW I'll reinstall Linux.. and then it will work or I'll.....
 
Old 03-22-2004, 01:52 PM   #26
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
oh yeah, and thanks to motub for explaining me the mbr thing, thanks
 
Old 03-22-2004, 02:02 PM   #27
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Oh, I see... you have a WinXP Upgrade CD, then (non-bootable)? What a pain that is... mostly because it means you have to install WinMe, which is.... not the highlight of Microsoft's career, shall we say.

Anyway, you always do upgrades, but I was considering in the case that you might have been doing a side-by-side Windows install, like the way I once had Windows 98 installed only to try Wine with a native Windows, but Windows 2000 to actually use should I need to use Windows, plus (several) Linux.

Anyway, glad the floppies worked, looking forward to good news (oh dear, I think I've been playing too much Faxanadu on TuxNES... now I'm quoting it... )
 
Old 03-22-2004, 02:09 PM   #28
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
no. I HAVE A "REAL" WINXP CD. IT DID BOOT UNDER MY OLD PC.....JUST NOW, NO WAY
M$ thank you so much for being so kind to me, and for the invalueable time i've spend with fixing probs you were generous enough to give to me
THANKS

oh, *yes*, that was ironical.....

what is Faxandu on TuxNES ??? emulation or something?
 
Old 03-22-2004, 02:21 PM   #29
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Yep. TuxNES is an N(intendo)E(ntertainment)S(ystem) emulator. Much simpler to use that than fighting with my boyfriend to disconnect his C64 from the TV when we're both having a fit of "old-school gaming"....

Anyway, very weird about the CD not booting. I don't suppose you're like me and missing the (very annoying) "Press any key to boot from CD" command that Windows seems to require these days (for pete's sake, I put in a bootable CD, and set my BIOS to boot from CD first, so JUST BOOT THE D*MN CD, WOULDJA??? But noooooo... and yes, that was ironical, too )

But fine, we're not going to discuss the difficulties of that other OS on this forum, so let's just get this dual up and running with the ease and simplicity it was designed for (at least from the Linux end), so you can be a happy person .
 
Old 03-22-2004, 02:29 PM   #30
c31c
Member
 
Registered: Mar 2004
Location: Planet Earth
Distribution: Arch Linux
Posts: 106

Original Poster
Rep: Reputation: Disabled
thanks.....i love emulations too.
By the way, this is the first time I actually "meet" a "geek girl"
good to know they are around
and nope, no boot at all
 
  


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 05:13 PM
dual boot hangs - slack & winxp timoioi Linux - Software 5 10-09-2005 11:18 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 11:11 AM
vmware Slack (Host)/WinXP - dual-boot issues gearsmithy Linux - Software 0 01-28-2004 11:42 AM
Dual boot - Slack 9.1, WinXP Pro blade00 Linux - General 10 12-30-2003 10:07 PM


All times are GMT -5. The time now is 08:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration