Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-14-2004, 01:40 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
another question about dual booting

I am planning on dual booting with linux and windows xp, if i decide i want rid of linux after installing it how do i uninstall it? just format the hard drive its installed on? and will this make windows xp load up automatically again?

Old 02-14-2004, 01:43 PM   #2
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
you can use fdisk..
then you can clean the partition that you installed Linux with format or other tools...
remember that you need to change the filesystem to use Linux


Old 02-14-2004, 06:22 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You will have to use the repair console and run fixmbr or use the diskpart program. fdisk will not work for XP.

Google for: NT Lilo Boot Howto.

If you use the NT Loader that XP uses to boot into lilo, then if you decide to get rid of linux later, you will only have to delete a line that you added to c:\boot.ini.

Here are abbreviated instructions:
During setup, write the lilo bootstrap loader to your root partition. If linux is on another disk, then you sellect the mbr of the linux disk.
If you can enter a console screen just after this point, <ctrl><alt><F2> for some distros, then you can copy the boot-strap sector to a file on floppy disk. Suppose that you installed lilo to /dev/hda5.
First mount the floppy somewhere: mount -t vfat /dev/fd0 /mnt/floppy
Then copy the sector to a file: dd if=/dev/hda5 of=/mnt/floppy/linux.lnx bs=1 count=256
Unmount the floppy: umount /mnt/floppy
Boot into XP.
Change the attributes of c:\boot.ini: attrib -s -r -h c:\boot.ini
Add the line c:\linux.lnx="Linux 9.2" to the end of boot.ini
Change the attributes back: attrib +s +r +h c:\boot.ini

Now you are ready to finish the linux setup and boot into either XP or Linux. Good Luck!

Note: The name of the boot sector file is arbitrary. So is the description "Linux 9.2". Replace hda5 with the partition that you installed linux on.

Last edited by jschiwal; 02-14-2004 at 06:25 PM.
Old 02-15-2004, 09:24 AM   #4
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
just to clarify the misunderstanding...
you can make a test installing Linux in a second hard drive...
if you have already a XP installed, you don't need to do anything with your XP..
install Linux, using fdisk for partition definition, in your second HD ...
make a boot disk, for sure always the most safe options for newbie that is not sure if will keep Linux..
if you take a decision to eliminate the Linux partition you just need to run fdisk again for the filesystem that you want...
that is what I mean..




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 Booting Question? JDP17 Linux - Newbie 2 09-18-2005 02:06 AM
Dual booting question blackjack90 Linux - Newbie 9 09-06-2005 11:39 AM
Dual Booting Question? glaz Linux - Newbie 10 07-02-2005 08:00 AM
Dual-booting question Renaxgade Linux - Software 1 10-20-2003 07:41 PM
Question on Dual booting coolamit78 Linux - Software 10 09-28-2003 10:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration