Go Back   Computer Forums > General Computing > Software and Operating Systems
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-21-2009, 05:54 PM   #1
Beta Member
 
Join Date: Dec 2009
Posts: 4
Angry Have a big problem!

A few days ago I installed linux on my pc but I didn't like it that much so I tried to get rid of it by easing everything in the partion on my hard drive where it was installed(I was dual-booting). The I shutdown my pc but it won't let me load widows or do anything not even a system restore so I reinstalled linux and now it is only letting me on linux and I think it erased everything on my hard drive because it says I have 285Gb free out of 320Gb. Is there anyway to reverse this?
__________________

kogo50 is offline   Reply With Quote
Old 12-21-2009, 05:59 PM   #2
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Have a big problem!

How big was your windows partition? If it genuinally has erased everything then you're not getting anything back without data recovery software, nope.

If on the other hand the partition is there but its just a case of the windows boot sector isn't there any more, you should be able to pop the XP disk in the drive, go into recovery mode and then just whack "fixboot" into the terminal which should solve your woes.
__________________

berry120 is offline   Reply With Quote
Old 12-21-2009, 06:30 PM   #3
Beta Member
 
Join Date: Dec 2009
Posts: 4
Default Re: Have a big problem!

The widows partition was 285GB and the linux was 30GB. I think it use the widows partition instead of the other 30Gb.
kogo50 is offline   Reply With Quote
Old 12-23-2009, 09:41 PM   #4
Baseband Member
 
thevil1's Avatar
 
Join Date: Dec 2009
Posts: 36
Default Re: Have a big problem!

I know your problem and it's simple but hard to understand, and I have no idea how to fix it. But I can explain it to you as best I can. If you have Windows and then you duel boot Linux, Linux will "wrap" itself around the windows partition. Hopefully the picture I drew will help explain.

If you try to delete the Linux partition in Windows you will delete everything on your hard drive. If you don't get it just say so and I'll try to explain it again.
__________________
An optimist is someone who falls off the Empire State Building, and after 50 floors says, ''So far so good!''
thevil1 is offline   Reply With Quote
Old 12-23-2009, 10:38 PM   #5
Beta Member
 
Join Date: Dec 2009
Posts: 4
Default Re: Have a big problem!

I understand so does that mean i'm going to have to buy windows again
kogo50 is offline   Reply With Quote
Old 12-23-2009, 10:40 PM   #6
Baseband Member
 
thevil1's Avatar
 
Join Date: Dec 2009
Posts: 36
Default Re: Have a big problem!

Quote:
Originally Posted by kogo50 View Post
I understand so does that mean i'm going to have to buy windows again
From my understanding... Yes. You can try doing a system recovery. When you boot up before the splash screen you can hit one of the F_ keys. I forget witch one it is. And I don't know if it will work but it's worth a try. Good Luck
__________________
An optimist is someone who falls off the Empire State Building, and after 50 floors says, ''So far so good!''
thevil1 is offline   Reply With Quote
Old 12-24-2009, 07:25 AM   #7
Beta Member
 
Join Date: Dec 2009
Posts: 4
Default Re: Have a big problem!

Yeah I tried that already and it didn't work.
kogo50 is offline   Reply With Quote
Old 12-24-2009, 08:20 AM   #8
Baseband Member
 
thevil1's Avatar
 
Join Date: Dec 2009
Posts: 36
Default Re: Have a big problem!

Then you probably will need to re-install Windows. I know it $ucks. I'm just hoping you had your files backed up. That's one thing I keep meaning to do. And I know I need to.
Do you still have your original boot CD?
Or if you don't want to pay for the CD again, you can go with Linux, and just download Wine, so you can run Windows apps. Many people do that. and it works well.
__________________
An optimist is someone who falls off the Empire State Building, and after 50 floors says, ''So far so good!''
thevil1 is offline   Reply With Quote
Old 12-28-2009, 11:46 PM   #9
Baseband Member
 
Join Date: Dec 2009
Posts: 24
Default Re: Have a big problem!

Quote:
Or if you don't want to pay for the CD again, you can go with Linux, and just download Wine, so you can run Windows apps. Many people do that. and it works well.
He's Right I Do That With My Dual-Boot.
AppleMicrosoft is offline   Reply With Quote
Old 12-29-2009, 05:30 AM   #10
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Have a big problem!

before re-installing windows, try booting from the windows CD, you should be able to boot to a text mode recovery console, (note this is not a repair install, it's an option before you get to this).

from here the CD should be able to scan the hard drive, and use the fixboot command to fix your boot sector...

thevil1's drawing wasn't exactly accurate... (but I see why that conclusion has been drawn).

what happens is that when windows is installed it points the boot sector towards the windows boot loader...

so your disk looks like this.

|boot sector||partition 1 (with windows installed)||free space|

the boot sector says, go to partition 1, here you find the necessary files to boot the machine into windows. since there is only 1 windows installation your boot loader says load windows that's on partition 1...

if you have 2 copies of windows, your windows boot loader recognises this, so the boot sector says, find the boot loader on this partition (say partition 1).

the boot loader then lets you choose between windows installed on partition 1, or windows installed on partition 2. (with a simple black/white text menu).


When you install windows it does not recognise Linux installations, so if you have a linux machine and try to put windows on it to duel boot, you soon find that the boot sector on the disk has changed to instead of look at your /boot partition that has the linux boot loader (grub/lilo etc) on it, it just looks at the window one, and so only finds windows installations.

for this reason when you want to set up a duel boot machine it's always easiest to install windows first, then linux.

because when you install linux, it does recognise that there is an existing windows installation, and it adds this boot option to it's boot loader giving you the opportunity to dual boot.

you disk now might look like this...

|boot sector||partition 1 (with windows installed||partition 2 (with Linux installed)||parttion 3, (SWAP)||Partition 4 (boot -with grub/lilo installed)|

the boot sector on the disk now has the instruction to find the boot loader at partition 4, so looks there for a boot loader.

this boot loader then starts and gives you the options to load windows or Linux,

now that you've removed linux there is no partition 4, your disk is back looking like this
|boot sector||partition1||free space|

but your boot sector is still trying to find partition 4, (rather it's looking for the sector of the disk where the boot loader has been installed).

you see, the problem isn't that Linux has "wrapped" it's self around windows, and by deleting Linux you've deleted windows.

the problem is, (or at least was at first) that the boot sector was looking at the wrong place for a boot loader...
(when you installed windows it was told to look at sector 0x12, when you installed linux is said, look at sector 0xf1 (for example), all you need to do is Change the boot sector to tell it to look in the right place again, (0x12))...

as I said, there is a handy utility for doing this on the windows CD in the text based recovery mode,

fixboot.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -5. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0