LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-13-2003, 11:04 AM   #1
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Rep: Reputation: 0
Angry mdk overwrote MBR without warning!!


my goal is to have ntloader handle a multi-boot single IDE drive XP / mdk9 system.

I read a tutorial on how to make this work. It suggested installing LILO on the ext3 partition and boot with a floppy, then extract the bootloader to a msdos floppy and copy that to c: and edit boot.ini to include mdk. However, mdk did not prompt me before simply overwriting my MBR, nor did it ask me to create a bootdisk. I had prepared my XP system for the linux install using partition magic 8. At the end of its "install another OS" Wizard, it hid my c: drive and set the newly created ext3 partition to active.

Now I cannot get back into xp.. my former c: drive has become h: to the xp recovery console. How to I get back on track for my original goal? XP diskpart command does not allow activating a partition, only creating/deleting. Where is the old fdisk on xp?? my pm8 rescue disk 1 is corrupted and I cannot access program files folder from recovery console.

Thanks anyone for your help. It is greatly appreciated!
 
Old 02-13-2003, 11:12 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
So you need to remove Linux bootloader and change the active partition, right?
1) To remove Linux bootloader:
lilo -U
(from console)
But make sure you have a boot floppy before. The command to create a boot disk is 'mkbootdisk' (or you can use Manddrake Control Ceneter).
2) Active partition can be changed using Linux fdisk. When you run it (fdisk /dev/hda) you can do this using 'a' option. First list the partitions ('p' option) and note down the XP partition to use when you choose 'a'.
 
Old 02-14-2003, 09:47 AM   #3
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy

thank you for your quick reply, mara. I did as you said, but:

- should both, the linux and the xp partition set to be active or only the xp one? (I figured it would not be possible to have both set to active but it was)

- with both set to active and lilo removed, xp still wont start, and recovery console still reports the c drive inactive and its bootloader as "os/2 boot man". Linux only starts with the bootdisk anymore so I know lilo removal from mbr was effective.

Is my mbr empty now? How can I make it so xp starts again?

thanks!
 
Old 02-14-2003, 11:45 AM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Did you install (or upgrade to) XP using an XP installer CD?
or
Did your computer come preloaded with XP?

In the former case, you can pop the XP install CD in, boot from it, and choose manual repair to go to the recovery console. The commands 'fixmbr' (and 'fixboot' perhaps) should help replace the MBR with Windows bootcode.

If you fall under the latter category ( which is more likely ) the recovery console that you are booting into may have these commands built in. Generally, a fixmbr should solve your problems.
 
Old 02-14-2003, 12:50 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
On Mandrake you have rescue mode which will restore your winbloze boot loader. Boot into rescue mode by:
Pop in your install CD, get to the screen where you "press enter to continue or F1 for more options"

So press F1, then type "rescue" at the line there. Hit enter, you'll boot into rescue mode. One of your options at the first screen sould be to restore the old boot loader, go for it.

Cool
 
Old 02-14-2003, 01:36 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by MasterC
So press F1, then type "rescue" at the line there. Hit enter, you'll boot into rescue mode. One of your options at the first screen sould be to restore the old boot loader, go for it.
Cool [/B]
Cool!! mandy has a bootloader revert option?!! I havent seen that with RH, good to know MasterC.
 
Old 02-15-2003, 01:50 PM   #7
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
@nx..

my xp is a clean install. I am scared of fixmbr as I believe it corresponds to the former undocumented fdisk /mbr which is said to have been undocumented for a reason (wipes out partitions but I dont want to lose my partitions).

there is another command, named fixboot.. would it work, too? it doesnt seem as dangerous..

@the other guy

I am going to try rescue mode now.. hope it wont just offer me the option to restore lilo into the mbr which is where I have just removed it from following maraīs post.

thanks..
 
Old 02-17-2003, 11:56 AM   #8
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Question

ok.. it turns out I had not completed the setting of the active partition (I had quit the program instead of applying changes first with the w option). so I did it now and XP does start up from the hd again. However it indicates autochk cannot be found and that therefore autocheck was being skipped. Then it BSODs on me saying something about session manager initialization process failing. How pretty..

To recovery console, my c drive still shows as hidden, so I am starting to think that what I really need is a way to unhide my c drive. Can Mandy do this? XP cannot.

The F1 thing did not seem to have accomplished anything more than lilo -U had done.
 
Old 02-17-2003, 12:15 PM   #9
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Question

I just came to think about this.. could it be that it is impossible to use ntloader for multibooting when the two OSīs are on two separate primary partitions on the same hd (this is my case)? Wouldnt I have to use some other bootmanager soft that dynamically hides one primary partition and unhides the other depending on my choice during startup?

thanks
 
Old 02-17-2003, 12:33 PM   #10
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
NT loader is an inflexible black box. Is there a specific reason you want to use the NT loader? I'd prefer lilo or grub any day.
 
Old 02-17-2003, 12:54 PM   #11
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
in a first step, please tell me how I can unhide my c drive from linux (or any other way) so I can boot into xp again. In a second step, I will consider using either bootmagic or lilo.
 
Old 02-17-2003, 01:31 PM   #12
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Could you post your fstab and lilo.conf so we can avoid speculation and consequent screwups?

First of all, (AFAIK) you dont need to hide/unhide partitions dynamically/otherwise unless you have multiple primary FAT partitions on your hdd. Multiple versions of Windows is an example. So if any of your partitions have the hidden bit set, you can unset it using grub or whatever s/w you used to hide it in the first place.

Write lilo/grub to the MBR and let it handle all your booting needs. It is much simpler than people seem to think.
 
Old 02-19-2003, 01:03 PM   #13
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
ok.. here's what happened. I used grub to unhide my c drive and there went xp starting up again. However, mandy now started up with a severe graphics bug when booted from floppy.

Its partition was reported to be damaged in some way by partition magic as well, so I formatted it over and made it larger as I had originally configured it too small. Now I am looking at re-installing mandy, but before I do so, I was going to ask for some advice on setting up my partitions for best performance/stability.

Here's how they currently look:

c: ntfs primary 6,5 gb XP with all programs
ext3 primary 2 gb mdk9
linuxswap logical 500mb
f: ntfs logical 9gb data, mp3, etc
h: ntfs logical more data, etc.

some questions that are on my mind are : wouldn't it be best to have the XP swap on a dedicated partition as well and shouldn't the linux swap partition best be primary? I would like to install a backup partition at the end of my drive. Should I have one for xp and one for linux or one for both? Thanks.
 
Old 02-19-2003, 06:36 PM   #14
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
What is an XP swap? I didn't know we could control where the swap area is with windows. I've heard about hibernate partitions, but that's about it.

As far as linux is concerned, it doesnt really matter if your swap is primary or extended. The only performance difference the location of a swap partition would possibly make is probably when all your linux data is on the beginnig of the disk and the swap area is towards the end or vice-versa. Again that depends on how much swapping you do.

A backup partition that can be shared by both linux and XP is what you have in mind, right? Yes, make sure you format it FAT32.
 
Old 02-20-2003, 10:58 AM   #15
frankae
LQ Newbie
 
Registered: Feb 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
windows swap:

control panel -> advanced -> performance settings -> advanced -> virtual memory -> change

configure min and max size and location of pagefile.sys (by default placed under root of the partition holding the xp installation).

So you are recommending the linux installation and linux swap partitions be neighboring partitions for best performance, correct? Cool, as that's already the case. What about the size of the swap?

If I make the backup partition fat32, then I cannot use access control and any low-level user can touch my backups, right?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally overwrote MBR - Grub rrc124 Linux - Newbie 2 05-20-2005 12:24 AM
MDK 2005 : Gtk-WARNING **:... wasabi82 Mandriva 6 05-11-2005 07:04 AM
windows overwrote my mbr c-- Linux - Newbie 5 03-30-2005 01:23 PM
winxp overwrote MBR :( rohan208 Red Hat 5 05-17-2004 08:05 AM
OOPS! overwrote MBR, GRUB wont boot :( slacker9876 Linux - Newbie 4 04-16-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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