LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-19-2009, 02:02 AM   #1
Mrugesh
LQ Newbie
 
Registered: Aug 2009
Location: Chembur
Posts: 2

Rep: Reputation: 0
Smile how to remove RHEL 5.0 on dual boot machine


i install windows vista (Licence copy)& RHEL 5.0 on my machine but now i want to remove linux but my friends says if i delete linux my windows get corrupted. i don't want to format my pc because of 2 reason
1. it is a licence copy
2. i have large amount of important data in it

pls help me friendssssssssss


thax in advance

Last edited by Mrugesh; 08-19-2009 at 02:04 AM.
 
Old 08-19-2009, 02:24 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 647

Rep: Reputation: 66
Dear murgesh
Real problem start if you remove grub boot loader that present in /boot partition of linux. Deleting / and other partition will not distrub your vista at all.
I think rewriting mbr will also solve your problem. To restore mbr boot windows in recovery mode.

thnks
 
Old 08-23-2009, 12:56 PM   #3
Kroutt
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Unhappy

Could you be more specific, please?
I installed Mint 7 on a separate drive with Vista present (on a second drive). Apparently Linux placed an entry in Vista's boot loader that points it to GRUB when PC boots. I'd like to keep Linux on a separate drive as it is, but I 'd like to be able to do one of the following:
1. set Vista as the FIRST choice of boot drive, OR
2. Remove Linux boot screen and still be able to boot to Linux via BIOS boot option.
Any suggestions?
Thank you

Last edited by Kroutt; 08-23-2009 at 12:57 PM.
 
Old 08-23-2009, 01:30 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
One of the first few lines of /boot/grub/menu.lst will indicate which entry should be booted by default:
Code:
# Modified by YaST2. Last modification on Thu Aug 20 23:52:49 CDT 2009    
default 0                                                                 
timeout 8                                                                 
gfxmenu (hd0,5)/boot/message
However, if this /boot partition is something you want to get rid of, then you will need to replace the current MBR with the XP's MBR using the recovery console. This is done by booting to the Windows XP install disk.

The linux /boot partition may have a backup of the original MBR. Double check the filesize. If is is 512 bytes, it will also contain the partition table of the original mbr. The boot strap loader is in the first 440 bytes. Please read through this Wikipedia article on the MBR:
http://en.wikipedia.org/wiki/Master_boot_record before doing anything. Also keep in mind that if Linux was installed previous to this last one, this backup_mbr may contain an old Linux MBR. You can restore an mbr with "dd if=<backup mbr filename> of=/dev/sda bs=440 count=1.
Be sure to use "fdisk -l" and "fdisk -lu" and save the results on a pendrive, or print them out. This will save the information on your partition tables. If your MBR partition tables become damaged, this will allow you to use fdisk from a live distro to rebuild the old values.
Doing this for every backup would be a good idea as well, so you are sure to backup any changes. You can also backup your MBR as well.

Also google for "NT Grub dual boot" for web pages on how to use the XP's loader to chainload Linux. This entails installing the grub MBR to a partition or disk with Linux, cutting it out to a file on your C:\ drive, and editing C:\BOOT.INI so there is a Windows boot menu with a Linux entry. This will leave a pristine MBR on your main boot drive. For Vista, there isn't a BOOT.INI file, but if you create one, Vista will use it.
 
Old 08-23-2009, 01:31 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Moved: This thread is more suitable in Linux - General and has been moved accordingly to help your question get the exposure it deserves.
 
  


Reply

Tags
boot, machine


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install RH AS4 and RHEL 5 on the same machine having options at boot time? masquerade Red Hat 2 01-20-2009 04:33 AM
Boot loader config issue, updating Fedroa 6 to 7, dual-boot machine (XP) BurntChips Fedora - Installation 5 04-16-2008 04:12 AM
Dual boot on dual user machine?? donchale Linux - Newbie 3 12-17-2007 09:30 PM
Dual boot RHEL harry_80 Linux - Software 1 12-23-2005 07:25 AM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 05:02 PM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration