LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-17-2004, 01:51 PM   #1
noahfields
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
setting the boot back to windows


Hi, I recently installed Fedora on my laptop but the hard drive is small and I need to reclaim the space for Windows. Before I delete the grub/linux partitions, how do I reset the boot back to Windows? Thanks,
NF
 
Old 05-17-2004, 02:51 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
now if you have installed your bootloader into a partition, and NOT into MBR (master boot record), this should work:

start some disk partition program, like fdisk, from your linux install...I think it should start (from command line) like

fdisk /dev/hda

now if you use fdisk, it tells you to press m if you want help. press it. then press p to print the partition table - now you should know what partition your windows is in, as well as the others..you'll see an asterisk, *, which means a bootable flag - now press a to change bootable flag and you're asked of a partition number. press the number that corresponds your windows partition - if it's the first partition on the disc, then usually 1. now press p again to see the changed table..I guess you now have to asterisks. press a again and now choose the other partition that has * in front of it (not windows) so that it's removed. check with p that the asterisk is now in front of your windows partition and there is no other asterisk, press d and give your linux partition's number, press d again and give your other linux partition's (like swap) number and repeat this until you only have your windows partition left (you can check this by pressing p after each d+number).

when you're ready, press once more p and check that you only have your windows partition and that it is active. then press w to save the table, reboot your pc and be unhappy with windows (heh, just joking..) BUT if you missed something, did a mistake and don't know how to undo it, DON'T press w BUT PRESS q so the table isn't saved. then just restart the app and repeat the steps correctly...

after reboot, windows should load up normally and you should be able to use windows's own fdisk to add new partitions to it.

but if you HAVE installed your bootloader into MBR, I guess you'll need to do this: follow the instructions above. when you save the partition table and reboot, put in a windows's install disc, and boot your pc with it (it won't boot otherwise I think) and clean MBR with fdisk (was it fdisk -mbr or what? better check that out) because that's what you need to do to get your bootloader out and windows in...I haven't done this, because I always install bootloader into a partition to avoid problems..
 
Old 05-17-2004, 03:32 PM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
for Win9x-----> fdisk /mbr with a win98 boot floppy
for Win2000/XP------> throw in cd, go to recovery console ("r" if you're fast enough) and type fixmbr
 
Old 05-18-2004, 08:02 AM   #4
noahfields
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks guys!
 
  


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
Cant switch back to or double-boot windows carocrazy123 Linux - Hardware 3 10-15-2005 06:35 PM
Setting active partition back to /boot after XP reinstall fordsm Linux - General 3 04-28-2004 10:45 AM
How do i boot back to Windows pinpalsapu Linux - Newbie 3 12-13-2003 05:20 PM
How do i boot back to Windows pinpalsapu Linux - General 17 12-12-2003 05:16 AM
Help! - Deleted boot option for Windows from LILO! - HOW DO I GET IT BACK?! CrossfireCurt Linux - General 2 06-16-2002 10:49 AM

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

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