LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-08-2006, 12:58 PM   #1
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
HELP: lost partition woes ... :S


I need help. I just lost my Windows 2000 partition/boot up when I installed another OS. Can someone give me a quick tutorial on usage of LILO or GRUB to create a multi-boot menu, without a linux system installed.
 
Old 02-08-2006, 01:11 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hello,

This worked for me your mileage may vary...if there is no os you are trying to save other than windows...type at a dos prompt
fdisk /mbr
That may work...sorry if I am wrong.
This wi9ll not wipe out any partitions, it just formats the master boot record...when you reboot you should have windows back. Again sorry if I am wrong, but I know I have done that before and it worked.

Last edited by lord-fu; 02-08-2006 at 01:13 PM.
 
Old 02-08-2006, 02:20 PM   #3
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 134

Rep: Reputation: 15
fdisk /mbr works with Win98. With XP and Win2k you need to open a recovery console on booting up and run fixmbr. Googling for fixmbr will show you plenty of tutorials.

This will make your windows reappear but will make your "another OS" disappear.

You ask for a tutorial on using Grub/lilo on a system without Linux. Unless your are running something like *BSD or something exotic I cannot see the point or know of a method. Windows provides its own boot loader.

Please explain what operating systems your are running and which you want to run. If one of them is a Linux tell us which distro (Redhat, Mandriva, Ubuntu etc) you want to use. I sounds as though you have tried to install something and that mangled your MBR.

ZB
 
Old 02-08-2006, 02:45 PM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
http://www.microsoft.com/resources/d...d_tro_oxhc.asp
Sorry long link. fdisk /mbr and xp resources.

Last edited by lord-fu; 02-08-2006 at 02:47 PM.
 
Old 02-08-2006, 04:24 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Another option is to just reinstall the "other operating system" and make a separate /boot partition. Then when you delete the root partition, grub/lilo should still be able to find it's config file and load windows.

Or install a 3rd party boot loader like "Grub for NT", XOSL, or Smartboot Manager. Google for "Ultimate Boot CD" and there are tools to recover your MBR on there too...
 
Old 02-08-2006, 04:45 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
"Just booting tips"

From restoring Windows MBR, restoring Lilo, Restoring Grub, how to rescue an unbootable Linux etc etc etc....

With it you can afford to lose over 100 systems and still can get all of them back.

Last edited by saikee; 02-08-2006 at 04:46 PM.
 
Old 02-08-2006, 09:13 PM   #7
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Very nice saikee, glad I rechecked this thread.
 
Old 02-09-2006, 04:32 AM   #8
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
[8MB][2.9GB][{8GB}{49GB}]

Basically I got a 60GB HD which contains 8MB, 2.9GB primary partitions, and a 57GB extended partition (which contained 8GB & 49GB logical partitions). I keep all my important files in my 49GB logical partition so could not resize my primary partition without doing long backing up procedures.

I wanted to install Windows 2000 as my main OS and installed that into my 8GB logical partition. Windows 2000 complained saying that there must be some FAT primary partition to be able to write the MBR, etc. (at that time there was no primary parition). So I created a minimum 8MB FAT primary partition. Windows 2000 installed into 8GB E:\, while it's MBR, boot.ini, etc. files went into C:\

Then I installed Windows XP into the 2.9GB (2nd partition). It immediately overwrote the MBR, boot.ini, etc. files in C:\. I know this for a fact because (with show hidden files on, etc.) in D:\ & E:\ (winXP & win2k) files contents was only the pagefile.sys.

I know that if one installed Win2000 in C:\ then WinXP in another then WinXP will merge the boot.ini and happily do multi-boot. However, if there is no OS in C:\ then WinXP will overwrite those boot.ini, MBR, files.

FACT: "if there is no OS in C:\ then WinXP will overwrite those boot.ini, MBR, files."

I already tried guess my partition in boot.ini, but all I get is:

(%system%)\system32\hal.dll not found, or something.

There are no linux OS on my machine, but if GRUB/LILO could understand/boot Windows then I can't see why not use it.

And function: fixmbr really does not work. I think the problemed lie in the fact that there was NO OS in C:\. That means there is no C:\Windows\System32, or C:\WinNT\System32\ folder.

Last edited by kevingpo; 02-09-2006 at 04:40 AM.
 
Old 02-09-2006, 06:12 AM   #9
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
First fact: windows generally doesn't like not being on the first partition. XP may be different, but haven't tried it out.
So, installing windows on C: is the way to go...normally.

Windows boot loaders are different for the NT/2000 family than for the 9x/ME family. XP is a combination of both and hence may be able to be installed as a second OS in addition to one from the other families.

But if you want help on how to set this up, I suggest you consult the Knowledge Base of M$ at
http://support.microsoft.com
or simply my favorite site for tweaking Windows: http://www.jsifaq.com
 
Old 02-09-2006, 07:36 AM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The simplest way to install multiple MS systems is put the first one in the first bootable parimary, have it working, then hide it, create the second primary partition and switch on its booting flag active, install the seond MS system, make sure it working alright, then hide the partition and proceed with the third MS system and so on.

The hiding can be done by a Linux Live CD using cfdisk command or just a Grub floppy created from a Live CD.

When every system has been installed just install Grub in the MBR and host it in any logical partition. Edit Grub configuration so that each MS system is unhide just before it is booted.

That is the way I boot 3 versions of Dos and 3 versions of WIndows in the 100+ system. The Grub menu is in here

Using XP/Win2k's NTldr is OK but it needs 10 times more effort than Grub to produce 1/10 result.
 
Old 02-09-2006, 08:36 AM   #11
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
Quote:
Originally Posted by timmeke
First fact: windows generally doesn't like not being on the first partition. XP may be different, but haven't tried it out.
XP is no different. If anything, it's worse at throwing wobblies.

It also absolutely, categorically, give-it-to-me-or-I-won't-work must have its boot partition on the IDE master drive (at least if you have a slave installed, not tried it with just a slave). Now OK, that's not a problem for most people, but when you set up your partitions and have to resize them because of the way Windows works... :/
 
Old 02-09-2006, 08:51 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I have put XP in hda4 and Sata disks. OK it is quite rigid and has a good protection mechanism but Grub and Lilo can re-map the drive so that it can be booted from any disk. I currently run my XP from the 3rd disk and the Win2k from the 4th disk.

I have use Linux's QTparted resize XP. All it take is to defrag it first. XP is of course can be cloned even with a Live CD.

I also have Grub booting 3 copies of the same XP in the box before. Yes XP is tough to the Windows users but it not to the Linux users.

XP or any of the MS systems is also the easiest to boot in Linux.

Last edited by saikee; 02-09-2006 at 08:53 AM.
 
Old 02-09-2006, 12:50 PM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I tend to prefer just keeping all the OS's separate and use a third party boot manager, XOSL, for booting each OS. My brother uses WinGrub. Then you can boot any OS from any partition with relative ease...
 
Old 02-09-2006, 01:34 PM   #14
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I didn't bother with third party boot loaders because the standard boot loader off the shelf from Linux can boot 100+ systems of Dos, Windows, Linux, BSD and Solaris.

It boots all the above systems with the same 3 lines of commands too.
 
  


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
HELP: lost partitions .... woes :S kevingpo Fedora 9 02-20-2006 05:34 PM
partition woes - logicals overlap?!? acidstars Linux - Newbie 3 06-23-2004 06:42 PM
Partition Table Woes!!! rahulraj Linux - Newbie 2 06-13-2004 03:23 AM
partition woes :( katana Linux - General 1 09-26-2002 09:43 PM
RH 7.2 Partition Woes... PrincessDie Linux - Software 1 02-12-2002 10:44 AM


All times are GMT -5. The time now is 02:13 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