LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-19-2010, 03:42 PM   #1
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Rep: Reputation: 0
Lost my windows partition, how to get it back?


Hi everyones,
I've lost my windows partition (windows 2003) after I've download too much data on my data partition while working with linux. I don't have my file boot.ini anymore. I still have my windows disk installer but I don't know how to retrive my windows partition without reinstalling it. I would like to retrieve as much files as I could (such as my itunes library, matlab licence, ...).
I do not have my windows option in my grub menu (I have dual boot with ubuntu 10.04).
Someone knows if it is possible to repair my windows partiton ?
Is there someone having a boot.ini file (windows 2003) ? What other files sould I have to get my windows partition working?

Thanks!!
 
Old 11-19-2010, 04:00 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Were you booting windows with the windows bootloader?
Were you booting Ubuntu with Grub or the windows bootloader?
How many hard drives, specifically are both Ubuntu and windows on the same drive? Was the "data" partition a shared partition? Where was it in relation to windows, contiguous? Are you still able to boot Ubuntu? If you run update-grub from Ubuntu, you should get a windows boot option in a new menu but that doesn't mean you will be able to boot it. Doesn't your windows installation CD have a Repair Computer option?

You should be able to save your windows files from Ubuntu and copy them elsewhere if you need to reinstall.

Last edited by yancek; 11-19-2010 at 04:02 PM.
 
Old 11-19-2010, 04:19 PM   #3
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi yancek,
Thanks for the reply,
I have dual boot with grub2. I have 2 hard drive (my C: and my D.
dev/sda1 : ntfs
dev/sda2 : extended
 
Old 11-19-2010, 04:26 PM   #4
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi yancek,
Thanks for the reply,
I have dual boot with grub2. I have 2 hard drive (my C: and my D.
dev/sda1 : ntfs (windows)(24 Gi)

dev/sda2 : extended (26 Gi) {
----dev/sda5 : ntfs (data)
----dev/sda7 : ext4 (my linux)
----dev/sda8 : linuxswap
----dev/sda6 : linuxswap (I know, 2 linux swap is not useful, I will delete one of them)
}
Not allowed (23 Gi)
Here is the organization of my partitions:
sda1 - sda5 - sda7 - sda8 - sda6 - "not allowed"

the update-grub doesn't recover my windows option, I think some important files are missing.
How can I know if I have a repair option on my windows cd ?
I have 4 installer cd for windows 2003. I don't see any file named "repair" or something similar.

Do you have any idea how I sould proceed next ?
Thanks!!

Last edited by lucid_dino; 11-19-2010 at 04:28 PM.
 
Old 11-19-2010, 08:57 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
I have dual boot with grub2. I have 2 hard drive (my C: and my D
You have two physical hard drives? The partition information you list all refers to sda which means one hard drive??

The windows installation disk should/might have a Repair option. When you boot your windows 2003 CD, do you see any option to Repair My computer?? I've never used it so I'm not sure?
 
Old 11-19-2010, 09:44 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Two (NTFS) partitions would be reported as two "volumes" by Windows - hence the C: and D: designations.

By "lost" I assume the OP means there are errors on the logical NTFS partition and it can no longer be read. If this is so it will need to be chkdsk'd from Windows. To repair the Windows, you'll need to boot the install CD then select "R" when it tells you to. There used to be an option to "refresh" (my term) an install, and only restore the executables - don't know if that is still possible. Else you might be up for a full re-install.

Perhaps take the disk out and see if you can chkdsk it on another Windows system first, so you can get your data backed up.
 
Old 11-20-2010, 01:27 AM   #7
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by lucid_dino View Post
... I would like to retrieve as much files as I could (such as my itunes library, matlab licence, ...)...
Boot up Ubuntu, open a terminal, and post the output of:
Code:
sudo fdisk -l
This will list all of your hard drive partitions that Ubuntu sees. Windows partitions will be listed as NTFS partitions. If your Windows partition is still there, you should be able to mount it in Ubuntu and recover any files that you need to recover.
Also, see this for mounting your Windows partitions in Ubuntu:
http://www.psychocats.net/ubuntu/mountwindows
 
Old 11-21-2010, 05:25 PM   #8
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi, Thanks for the quick reply.
sorry, I have 1 hard drive.
I tried my installation cd for the repair option with windows and my computer doesn't boot on my cd (after asking bios to boot on the cd drive). I have a group licence (edition entreprise) and all I have is 4 cd named pack1, pack2, one with my product key and a forth one containning outlook.
I don't know what I'm gonna do, but thanks for the information
 
Old 11-21-2010, 07:32 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
You never indicated whether you were still able to boot Ubuntu?
If you can, post the output of the command suggested above by tommcd.
I'm not clear on your last post. Are you saying your CD drive no longer works? Do you get any output after inserting your windows install CD?
 
Old 11-22-2010, 04:10 PM   #10
molossus
Member
 
Registered: Nov 2010
Location: US
Distribution: Ubuntu 12.04
Posts: 49

Rep: Reputation: 0
you should be able to mount your windows partition from linux,
just copy and paste your data to a USB drive if you cant boot into windows.

in my PC i just click the Windows partition and i can read and write data to that partition.
 
Old 11-22-2010, 08:17 PM   #11
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi,
Thanks again for your help.
Here is the output of fdisk:

Disque /dev/sda: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0x79b779b7

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 3188 25607578+ 7 HPFS/NTFS
/dev/sda2 3189 6642 27744224+ f W95 Etendue (LBA)
/dev/sda5 3189 5070 15112472+ 7 HPFS/NTFS
/dev/sda6 6504 6642 1116486 82 Linux swap / Solaris
/dev/sda7 5070 6437 10978304 83 Linux
/dev/sda8 6437 6503 535552 82 Linux swap / Solaris
And Not allowed : 23 Gi

I have 1 hard drive. I was working with a program that generate 6 Gi of data. I tought I could direct them on my D:/Data (sda5) but then I lost windows. I'm not sure I understand why I lost windows because my files to start windows are on my C:/ (sda1), I didn't send any files on my C: with linux. Previously, I used my D:/Data with windows to save files. But in kubuntu, I was able to see that partition (with free memory space, 14 Gi free) and thougth I could save a large file (6 Gi). But then, I lost windows. I don't have a file Boot.ini in my windows files. I'm a little confused about my situation.
I bought a toshiba computer in 2007 (with an enterprise license of windows) and just knew that they did not include the repair dvd along with the computer.
All I have is 4 cd that do not boot. After trying to boot on the windows cd, I have a black sceen for 10 seconds (I hear my cd drive working) and then I have my grub menu. I'm able to boot my kubuntu livecd, so I know that my cd drive still work. I still have my linux and I'm able to boot on linux.
A few minutes ago, someone told me he can sell me a copy a the repair dvd (10$).
I will do a backup of my files and try the repair dvd.
Thanks for your support!!
 
Old 11-22-2010, 11:01 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I don't understand how filling the D: drive would do that either.
Did the boot entry (for Windows) disappear from the boot menu at the same time, or some time earlier ?. That sounds like update-grub has run, and you would only expect that when you had done a software update from Ubuntu.
 
Old 11-23-2010, 09:30 AM   #13
lucid_dino
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi,
My windows option disapeared from the grub menu right after I filled my D:/Data while on linux. I updated my grub menu 2 days agon and still don't have my windows option on grub. I'm still a little confused about it, and I will try my repair dvd and hope for the best.
Thanks,
 
Old 11-23-2010, 04:35 PM   #14
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Your Windows partitions are /dev/sda1 and /dev/sda5
You should be able to mount them in Ubuntu like this:
Code:
sudo mkdir /mnt/windows
sudo mount /dev/sda1 /mnt/windows
This will allow you to recover any need files from /dev/sda1. Just change sda1 to sda5 in the mount command if you want to mount /dev/sda5.
Since you have lost Windows from your grub2 menu, you can create a custom boot entry for booting Windows in your /etc/grub.d/ directory like this:
Create a file in /etc/grub.d/ directory named: 31_Windows.
Inside the file put these lines:
Code:
menuentry "Windows on /dev/sda1" {
        set root=(hd0,1)
        chainloader +1
}
Then make the file executable with "sudo chmod +x 31_Windows"
Then run "sudo update-grub" to update your /boot/grub/grub.cfg file. This should enable you to boot Windows.
However, since Windows disappeared from your grub menu after you updated grub, this may not work. Your Windows boot directory on /dev/sda1 may have become corrupted somehow. This may explain why updating grub lost the ability to boot Windows. However, it will not hurt anything to try booting Windows by creating a custom boot entry in your /etc/grub.d/ directory.

Last edited by tommcd; 11-23-2010 at 04:38 PM.
 
  


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
chroot lost my partition, how to get it back? RileyTheWiley Linux - Newbie 1 05-03-2010 02:07 AM
lost windows partition.. jellboi Linux - Newbie 1 04-30-2010 12:04 AM
Lost my windows after getting back to distribution nVidia drivers. MheAd Linux - Desktop 1 06-12-2007 01:29 AM
Partition Back to windows Flying_cupid Linux - Software 2 08-18-2005 12:48 PM
Lost Windows Partition? Unifex Linux - Newbie 7 03-20-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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