Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed Debian to Windows Lenovo Thinkpad. Now I want to get the Windows back. How can I do it?

My friend mentioned something about partitions, below my comp X220 details.

$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00081865

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       38052   305647616   83  Linux
/dev/sda2           38052       38914     6921217    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5           38052       38914     6921216   82  Linux swap / Solaris

Perhaps related

share|improve this question
2  
Looks like you overwrote your recovery partition... Did you make a backup of the discs first (or did your laptop come with recovery discs separate)? I know my lenovo prompted me to make DVD copies of the recovery upon first boot. Otherwise, you will have to call Lenovo to get the OEM discs. –  nerdwaller Nov 26 '12 at 20:02
add comment

2 Answers

up vote 5 down vote accepted

Sorry buddy, It seems you have deleted the Windows Partition. You can only bring it back with hard disk recover programs. But you can not boot it again.

share|improve this answer
    
...good idea: recover program, I may find it that way -- any idea of the filename to look for? –  hhh Nov 26 '12 at 20:16
    
You don't have to know the filename, When you start the recover program it recovers all the files on the disk. Then you select and recover the files you want. But if the OS's write data on windows's files you can not recover them. –  Hasan Hüseyin Çakır Nov 26 '12 at 20:18
1  
@hhh - You won't be able to recover the data, at least not ALL the data, which means the recovery image is gone. The solution is to purchase and install Windows yourself and/or contact Lenovo for a replacement recovery image. –  Ramhound Nov 26 '12 at 20:20
    
Roger, moved the data-recovery -queston here. –  hhh Nov 26 '12 at 20:22
add comment

I totally forgot! I did backups with SATA/IDE -device here. I also did some sort of backups to my server but cannot remember whether it finished, it took quite long time to backup 320GB disk.

This writing is still in progress but trying to outline my restoration of Windows. I don't know yet whether it succeed or not, the current problem looks to be that OSx is unable to read backup images created with Ubuntu -laptop or Obsd -computer. I have something on the disks, not sure yet whether readable backup -images.

enter image description here

enter image description here

For the irony of Life, I even have well-documented material how I did the backups -- more here. I backuped the disks with Kevin's commands:

sudo dd if=/dev/sdb2 | bzip2 >~/old-disk.img.bz2

sudo pv /dev/sdb2 | bzip2 >~/old-disk.img.bz2

Now the task is of course to locate the files, they may be in my harddrives or in my server. You can read our chat here and my follow-up here.

derobert instructed

$ bzcat ~/old-disk.img.bz2 | pv > /dev/sdb2

"that'd put it back on /dev/sdb2 (which needs to already be set up to be the same size or larger). Note that is a partition image, not a disk image."

share|improve this answer
    
Moved the next puzzle here about restoring the backup. The 6th March 2012 contains the chat discussion in Unix Stackexchange related to the backuping things. –  hhh Nov 26 '12 at 21:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.