LinuxQuestions.org
Visit Jeremy's Blog.
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 07-03-2008, 06:56 AM   #1
Ganeshkadam
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Question windows xp/linux dual boot problem


Hello all,
I had dual boot system of windows xp and linux. Accidentely, i deleted linux partition and now i get GRUB option for booting.I even can not access Windows now. How can i recover linux or atleast access windows? I don't have instalation CDs of both systems.
Any help is appriciated.
 
Old 07-03-2008, 07:28 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Here is a link to a page full of options.

http://www.users.bigpond.net.au/hermanzone/p18.htm

I personally would get a distro cd and reinstall a live distro.
 
Old 07-03-2008, 07:29 AM   #3
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
Get hold of another linux installation cd and install it.
 
Old 07-03-2008, 07:38 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,899
Blog Entries: 27

Rep: Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186
Hi,

Welcome to LQ!

You can do a F8 and enter the maintenance phase for win/xp.

Just do a 'fixboot' for the option.
 
Old 07-16-2008, 05:59 PM   #5
royce2020
Member
 
Registered: Jan 2003
Posts: 81

Rep: Reputation: 15
I agree with onebuck, in that the trick here is to recreate your windows MBR then reinstall linux, but his sugestion of hitting F8 simply will not work if you are using GRUB or LiLo. You'll need a live CD (I use Knoppix, but you could also use Ubuntu or Vector) to find the bin file that contains your windows boot sector. If you used GRUB, depending on how your machine was setup, your boot menu configuration will be in /mnt/<your linux drive here>/boot/grub/menu.lst (your linux drive could be sda2 (second partition on first scusi/sata drive) or hdb1 (first partition on second IDE drive), or one of a host of others), or you could use the KDE search function to find menu.lst. Having found it, scan your file for the windows entry, if it's set up like I think, it will list a BIN file, this is your windows boot sector (if not there will be a chain load command) what you need to do after finding the file is use DD to write it back to the MBR area of the hard drive (google it, I alwasy get it wrong - but be verry carful, DD is often called DestroyDisk and not without reason). If you find a chain load command, then the windows boot sector is actualy in a real boot area, just not the master one and you can set your BIOS to boot from that boot sector instead (this is diferent for each bios sorry).

Another thing you could do (which is eayser to explain, but more labour intensive) is to make a complete back up of all your files (just zip them up onto a USB disk or something) then reinstall windows (this includes a new boot sector), and finaly delete the contents of the drive and replace with the zipped files from the USB disk. That should be using all your old files, but with a new boot sector.

Once you do get windows working again, I sugest using GRUBldr to dual boot. I use it, and think it's great. It hooks into the windows boot loader (NTldr), so if anything happens to linux then windows always boots (becuase it's using it own loader rather than one of the linux ones). Also using this method you can upgrade XP to vista, hibernate and other things with the windows boot sector without messing up your linux installation.
 
Old 07-16-2008, 06:15 PM   #6
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing, OSX
Posts: 164

Rep: Reputation: 32
The easiest way to get windows working again is to boot with a windows cd or boot disk, then at the command prompt, type:
Code:
fdisk /mbr
This will restore your boot sector to normal windows settings without erasing anything.

Then from there, at least you will have a usable computer again, and can install linux as you would normally. (Don't forget to back-up your data before installing).

Good luck.
 
Old 07-16-2008, 08:07 PM   #7
shridhar005
Member
 
Registered: Jul 2008
Posts: 90

Rep: Reputation: 17
Better way go with fresh installation of Linux,by which at the time of partition making you will get chance to install new grub with partitions.
 
Old 07-16-2008, 11:28 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,899
Blog Entries: 27

Rep: Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186Reputation: 2186
Hi,

Just a reminder that the OP should install his/her Win/xp first. Then do the Linux of choice.
 
  


Reply


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 Boot Problem: Windows XP - Linux Boeboe Linux - General 7 05-23-2006 05:15 PM
Linux Slackware and Windows dual boot problem uro Linux - Newbie 7 04-08-2006 06:37 PM
Windows XP/ Linux dual boot problem pingu99 Linux - Software 16 01-09-2006 03:25 AM
dual boot windows xp and suse linux 9.0 partitioning problem spodops Linux - Newbie 3 10-31-2004 04:38 PM
Strange Dual boot Windows/Linux Problem KiLLaWaBBiT Linux - Software 3 09-08-2004 04:34 AM

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

All times are GMT -5. The time now is 08:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration