LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-14-2004, 01:40 PM   #1
Steelrat
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?

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

Rep: Reputation: 46
yeah...
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

regards

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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
slackie1000
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..

regards

slackie
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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