LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-23-2008, 03:29 PM   #1
bendt.v.rasmussen
LQ Newbie
 
Registered: Feb 2008
Location: Fjerritslev, Denmark
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Unhappy Windows killed my ubuntu hd - this is not the grub problem


In an attack of sheer idiocy, I decided to install windows to my computer...

I have a sataII drive which holds(held?) my ubuntu install. I installed an ide drive to hold my new windows XP.

So I boot up the windows XP install cd, but when I get to the harddrive recognition part, the win install recognises the sata drive as drive C in one big unknown partition and the ide drive as drive d.

I repartition the d drive and ask the win install to install windows there, but this I am denied.

Then I unplug the sata drive and install windows on to the ide drive, which is now recognized as drive C.

At the end of my install, I reinstall the sata drive and reboot my computer, in hope of seeing my beloved Ubuntu start screen.

I get a screen looking like this:
_________________________________________________________________________

_ <- blinking cursor










________________________________________________________________________

Then I think its the good old grub-reinstall problem, so I boot up my ubuntu livecd, but this informs med, that /dev/sda1 is one partition.
mount refuses to mount this partition.
Grub refuses to recognice /dev/sata og (hd0,0). Also find /boot/grub/stage1 in the grub prompt returns nothing.

I unplug the IDE drive and reboot - still nothing...

I install ext2 support for windows and try to find the drive in file explorer - but this only returns, that the drive (now recognized as E is not formatted.

HELP ME!!!

I think my first encounter with the win install cd is where things messed up, but how do I get back my precious ubuntu drive(whith all my data - months work - no backup :-( )
 
Old 02-23-2008, 04:32 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Hopefully only the MBR (boot-loader plus partition table) are gone.
Try testdisk - might be on the Ubuntu liveCD, is certainly on Knoppix.
Windoze would have (attempted) to install to the primary drive - at least requires the "system" partition there. Things like boot.ini, ntldr. Has been known to walk all over other (useful) partitions.
 
Old 02-23-2008, 05:33 PM   #3
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Rep: Reputation: 33
Use your "live Cd" to open gparted (or other partition editor) and see what Windows did. Hopefully you at least kept your /home partition if you made one. If not I highly advise doing so in the future. If your system gets whacked you can still recover files from /home. Also it is a good idea to backup everything a few times a year or more if you run a business. I personally just burn everything to dvd just in case my computer walks off or blows up or implodes or . . . .
 
Old 02-24-2008, 04:18 AM   #4
bendt.v.rasmussen
LQ Newbie
 
Registered: Feb 2008
Location: Fjerritslev, Denmark
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
All ok

Knoppix (or at least my danish derivative dappix) refused to recognize my sata drive, but I discovered the program gpart.

I ran my ubuntu livecd and downloaded gpart.
Then I ran gpart -w /dev/sda /dev/sda
Then the grub reinstall

My beloved ubuntu is back!

Thanks for the help

Bendt Rasmussen
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with grub dual booting windows xp and ubuntu 7.04 Frozen.past Linux - Newbie 36 01-31-2008 08:49 AM
fixmbr for WinXP killed GRUB-cannot boot into Ubuntu - HD1+HD2 not recognized Mousy Linux - General 9 08-16-2007 05:39 AM
help! windows killed ubuntu!!! tibbar Ubuntu 12 10-08-2006 10:42 AM
Grub killed Windows XP! How can I fix it? TimeGoneBomb Linux - General 3 12-27-2005 02:42 PM
MDK 10.2 GRUB - Windows killed MBR stunter Mandriva 7 03-21-2005 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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