LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2004, 01:39 PM   #1
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158

Rep: Reputation: 16
dualboot fix challenge


I am posting this in the linux-software forum since it involves general dualbooting things even though the specific operating system is OpenBSD. I apologize if this is incorrect. Here's the problem:

I used to dualboot OpenBSD and Windows2000, a little while ago, windows stopped booting and I messed around with it and at some point ran, I think, fixmbr. I got windows working but I was very busy for a while and later found, unsurprisingly, that selecting OpenBSD in the Windows NTLDR boot menu resulted in "NTLDR is missing". I booted off an OpenBSD CD-ROM and when running fdisk, I get 3 partitions:
a smaller A6-OpenBSD partition first
then a very large 07-HPFS/QNX/AUX partition (I assume the windows 2000 partition)
then another A6-OpenBSD partition.
I assume the small OpenBSD partition was to get under the 1024 bytes from the start of disk, for booting. The HPFS partition has a star next to it(is bootable) which it clearly is since I can start into windows.

Now when I run disklabel on wd0, it says "/dev/rdw0a is not configured, using MBR partition 0: type A6 off 63 size 2097152, /dev/rwd0c:
16 partitions:
a:
c:
i:"
All with fstype=unused. These a, c, i correspond, I believe, to the partitions listed by fdisk.

There's one other piece of the puzzle. I have an "openbsd.pbr" file which is, if I remember correctly, the first 512 bytes of my openbsd boot partition. This file is in my windows C:/ so that the NTLDR can find the openbsd boot loader.

So the challenge is this: How do I get my openbsd installation booting again, without erasing any data. What did the windows "fixmbr" fix? Did it delete all the partitioning information for the openbsd installation? If so, why does fdisk report that those 2 OpenBSD partions are still intact. Also, is there a way I can retrieve the missing mbr information from this openbsd.pbr file, in any way? The biggest question of all: am I an idiot who has no idea how to use disklabel? Thanks for any help you might give.
 
Old 06-01-2004, 02:32 PM   #2
BorisMcHack
Member
 
Registered: May 2004
Location: uk
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
You're right about windows fixmbr, it 'FIXES' the master boot record to boot windows, and screw anything else! Ie it removes the partition information from the mbr, but the partitions remain intact.

So you need to figure out if that openbsd.prb file is actually what you think it is and if so figure out where the correct place to put it, but you guessed that much already.

I'm definately no expert on this. If I had the same problem in linux I'd try booting into linux with a rescue disc/distro installation disc and then try running 'lilo' the linux loader which would recreate the master boot record for me.

Alternatively I could goto the /boot dir and using dd copy the backup mbr back in place but this is pretty dangerous if you don't know what you're doing as it raw-writes to the device. (there is also rawwrite.exe for windows)

I'd recommend googling for howto's/faqs/anything to do with dual booting so that before you try anything you're 100% sure it will work - or wait until someone who really knows what they're talking about answers!

There is definately a howto for duel booting linux and bsd, so that could help.
 
Old 06-01-2004, 03:13 PM   #3
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158

Original Poster
Rep: Reputation: 16
Right, I ended up reinstalling as I was and am still unaware as to exactly what the MBR and pbr contain in terms of file system records. i.e. exactly what did windows fixmbr do to my partition scheme. Its all reinstalled so whatever.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want a challenge? TruckStuff Linux - Security 2 05-13-2005 01:39 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
Fix corrupted MBR on dualboot Machine Jingle Linux - Software 12 07-10-2004 03:13 PM
a challenge for you derfaust Programming 3 03-12-2004 12:23 AM
new, need help mounting ntfs to fix dualboot oPRAH Linux - Newbie 5 07-29-2002 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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