LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-28-2006, 11:57 AM   #1
bassy-alex
LQ Newbie
 
Registered: Apr 2006
Location: birmingham, UK
Distribution: mandrake 10.0
Posts: 4

Rep: Reputation: 0
Question Dual Boot system problems - please help!!!


Hi... My first post, and Im sorry to be asking for quite a bit of assitance in it. Also, apologies if this would be more suitable in another forum....

Right, I have a HP 3 ghz system running windows XP. I decided I would like to try Linux, but didnt fancy partitioning the hard disk that I had already been using for quite a bit, so I bought another hard disk to install Linux on. I installed the second hard disk, and set it up as a slave. I got hold of Mandrake 10 and installed it onto the second hard disk.... the installation was all going well, until I got to the section asking about the boot loader, it asked me where I wanted to install it, and I clicked MBR cos that was the recomended option.

So, what I want to do now, is un-install Linux (dont all hate me, Im just cleaning my system, and want to un-install it to start again, possibly with a different version of Linux, anyway....). However, with the bootloader in the MBR, the computer seems to boot up off of the main hard disk, then go to the 2nd hard disk to go to the boot loader (wich is called Lilo 2.7 or something like that?). If i un-install Linux, will my system beable to boot, or will it still be looking for the bootloader on the second hard disk? Ive tried unplugging the second hard disk, and it looks as though its trying to go to the boot loader.... If i un-install Linux, will it also un-install any Linux realted information in the MBR? Im not sure how it would beable to do this... I really cant risk losing my information on my first hard disk...

Any help would be very useful, I really need to sort this out asap!

Cheers...
 
Old 04-28-2006, 12:11 PM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Well the only way to "uninstall" linux is to delete all the paritions associated with it. If that includes the boot parition on the disk, then yes it will take the MBR off of the second disk. If by chance Lilo has overwritten the boot record on your first harddrive, which is possiable, your winxp disk should be able to restore it to its former self without any real risk of losing all of your data.
 
Old 04-28-2006, 12:14 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
If you worte Lilo to the MBR, you do not have to remove it, if it has entries for windoze and linux. There is no boot loader on the second disk, there will be a /boot directory where the kernel and other system files are loaded from. Normally there is only need for one boot loader.

As far as un-installing linux, not necessary. Put the install CD in your CDRom drive, and boot the system. Most distros allow you to partition the disk and format as necessary. So, stick the install CD in, partition your second disk, and install. All traces of the first install will be gone. Just be carfule which disk you are working with, don't want to blow your windbloze disk away.... yet.

I have a two disk system also, still got W98 and Mandrake 9.2 on hda and Mandriva 2006 on hdb. (hda= C in windows speek, hdb=D windows speek).
 
Old 04-28-2006, 12:42 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
There's a couple of options for you here:

1) Insert a boot floppy/CD (google for Ultimate Boot Disk or use your Windows CD) and then enter recovery mode. What you want to do is "Restore the MBR" which should restore your original Windows bootloader. Then you can just delete the linux partitions on the second drive and reinstall linux.

2) Insert your new linux distro and just install over the top of whatever you installed before. When it asks you where to put the bootloader, put in MBR again and it should overwrite the old bootloader with a new one.

If you want your new linux install to be completely independent of your Windows installation, I would do the following:

1) Restore the MBR of the windows disk so that it has the original Windows NTLDR.
2) Swap the drives so that windows is on the second disk
3) Install linux to the first drive, and install bootloader to the MBR
4) Using grub or lilo, you'll have to configure the bootloader to fool windows into thinking it is the first drive (but that's pretty easy and we can cross that bridge when you come to it).

By doing that, you can have it so that Windows is never touched by linux. One other thing you can do is make a separate /boot partition on the linux drive. That way, when you delete a linux install, just leave the /boot partition intact and you'll still be able to boot Windows.
 
Old 04-28-2006, 12:55 PM   #5
bassy-alex
LQ Newbie
 
Registered: Apr 2006
Location: birmingham, UK
Distribution: mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
"If you worte Lilo to the MBR, you do not have to remove it, if it has entries for windoze and linux. There is no boot loader on the second disk, there will be a /boot directory where the kernel and other system files are loaded from. Normally there is only need for one boot loader. "

How come if i disconnect the second hard disk, my system wont boot then? Sorry, i dont mean to question you but i am unexperianced in the way of Linux....

Can i just confirm, that If i take the boot partition of Linux off of my second hard disk (cos that where it is...) it will take any trace of Linux out of the MBR on my first hard disk? This is what I seem to need to do, but im not sure how the two are connected really?

I dont think I wrote Lilo to the MBR... it seems to me, something in the MBR (on the 1st hard disk) is telling the computer to go to Lilo on the 2nd hard disk. This would explain (to me anyway(!)) why the sytem wont boot without the 2nd hard disk in place. I just need to be absolutley certain about what i do before I don anything - i dont want the system not to boot! I really want to beable to use the system with just my 1st hard disk for now....

Cheers again....
 
Old 04-28-2006, 03:18 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Lilo should be able to boot even if you delete the partitions because it resides fully in the MBR (this is why when you change /etc/lilo.conf, you have to run /sbin/lilo for changes to take effect).

Grub on the other hand, reads a config file from the /boot directory, so if you were to delete the partition with /boot on it, Grub would fail to boot.

Now if you're really worried about it, up above I told you that you should use your Windows boot disk to fdisk /mbr (or if that doesn't work, try fixmbr) on the first disk drive (thus restoring your Windows NTLDR) prior to removing the linux partition.

Then swap the drives so that your next linux install won't touch windows at all.

If you have a floppy drive, you can download a windows 98 boot disk with fdisk on it if you don't feel comfortable playing with the Windows install CD. Otherwise, I would download the ultimate boot CD and use the Dos boot disk on there.

Last edited by pljvaldez; 04-28-2006 at 03:20 PM.
 
Old 04-29-2006, 05:56 AM   #7
bassy-alex
LQ Newbie
 
Registered: Apr 2006
Location: birmingham, UK
Distribution: mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, so just one more thing I want to check, you say i have to fdisk the mbr, is that why my system wont boot without the second hard disk? Is there something that Linux has put in the MBR on the first hard-disk telling it to look for the Lilo bottloadery thing on the second hard disk?

Cheers....
 
Old 04-29-2006, 06:27 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally Posted by bassy-alex
Ok, so just one more thing I want to check, you say i have to fdisk the mbr, is that why my system wont boot without the second hard disk? Is there something that Linux has put in the MBR on the first hard-disk telling it to look for the Lilo bottloadery thing on the second hard disk?

Cheers....
YES !!! - gotta love those bottloadery (sp ???) thingamejigs ...

O.K. you have gotten some good info, and some plain wrong. The MBR on the boot disk (the Windows disk in your case) gets updated to find the loader. For lilo, some extra sectors are copied into the sectors following the MBR. But as you found, you still need the install disk.

Best solution for you is to boot your XP CD and select "Recovery Console" - from there run fixmbr. This restores M$ofts loader (generally referred to as ntldr), and you will boot straight to XP, as you used to. It won't even recognise Linux partitions - and you can pull the (Linux) disk out to prove it.
When you are happy, do as you wish with Linux - a re-install will allow you to re-organise those partitions if you wish.
 
Old 04-29-2006, 06:54 AM   #9
bassy-alex
LQ Newbie
 
Registered: Apr 2006
Location: birmingham, UK
Distribution: mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Excellent - cheers for the help! I will update when Ive had a fiddle (if my machine still works;-)!!!
 
Old 04-29-2006, 12:07 PM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Lightbulb

Quote:
Originally Posted by syg00
Best solution for you is to boot your XP CD and select "Recovery Console" - from there run fixmbr. This restores M$ofts loader (generally referred to as ntldr), and you will boot straight to XP, as you used to. It won't even recognise Linux partitions - and you can pull the (Linux) disk out to prove it.
When you are happy, do as you wish with Linux - a re-install will allow you to re-organise those partitions if you wish.
Thats some really good advice. I'm goina have to bookmark this thread or something.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a dual-boot system on a linux system RoyalGala Linux - Newbie 6 03-03-2006 02:36 PM
File system middle man on dual boot system? TehFlyingDutchman Linux - General 5 12-28-2005 02:17 AM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 11:04 AM
Problems installing dual boot system ernesto_lelo Linux - Software 2 07-03-2004 02:12 AM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 08:57 PM

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

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