Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

info: Dual boot Windows 7/Ubuntu, Grub

  1. Computer/Ubuntu frozen while watching YouTube video -> restarted it using the button
  2. GRUB didn't load successfully, it went to command line, tried ls & other commands but no linux boot partition found
  3. I put HDD in the external case and connected to another computer
    • Windows partitions found successfully with all data on them, but NO LINUX PART
  4. Tried to find partitions using TESTDISK

Initial partition table extracted by TESTDISK looked like:

Disk /dev/sdb - 320 GB / 298 GiB - CHS 38914 255 63
     Partition               Start        End    Size in sectors
 * HPFS - NTFS              0  32 33  2610 245  3   41943040 [RECOVERY]
 P HPFS - NTFS           2610 245  4  2623 180 53     204800 [SYSTEM]
 P HPFS - NTFS           2623 180 54 14241 234  9  186646528
 P HPFS - NTFS          14242  11 42 38913  37 36  396341248

After deeper search :

Disk /dev/sdb - 320 GB / 298 GiB - CHS 38914 255 63
     Partition               Start        End    Size in sectors
 P HPFS - NTFS              0  32 33  2610 245  3   41943040 [RECOVERY]
 P HPFS - NTFS           2610 245  4  2623 180 53     204800 [SYSTEM]
 P HPFS - NTFS           2623 180 54 14241 234  9  186646528
 D HPFS - NTFS          14242  11 42 38913  37 36  396341248  - I set it to Delete
 P Linux                15461 235  7 17341 132  7   30195712  - I set it to primary, tried logical too, notice the overlap between Linux and previous partition
 D Linux                15464 152 49 17344  49 49   30195712
 D Linux                15464 185 18 17344  82 18   30195712
 D Linux                15467 135 29 17347  32 29   30195712
 D Linux                15470 118  9 17350  15  9   30195712
 D Linux                15474 138 25 17354  35 25   30195712

I tried to extract Linux partition separately and made the image linux.dd to use some extraction tools on it. I used photorec with not much success.

My questions for the experts are:

  1. Is it possible to recover original partition table and have normal access to linux partition as before?
  2. Is there any other tool better than photorec/testdata that can make my life easier?

Thank you.

share|improve this question

closed as too localized by Jorge Castro, Mik, Ringtail, Chris Wilson, hhlp Jan 15 '13 at 10:50

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Are you sure you had a Linux partition, or was this a WUBI install? –  psusi Jan 14 '13 at 15:43
    
Haha, actually you solved my problem! Thank you a lot!! The first time I login to windows after the crash, I couldn't remember if I installed Ubuntu using WUBI or independently, because it was long time ago and I installed many "ubuntus" on different computers using different techniques. After the crash I first checked WUBI folder that was there (but I couldn't remember if it was there because I only tried smth with WUBI and no actual installation) and it was empty without any large file. I just ***easily overlooked *** WUBI case and tried more difficult way. –  tesla_fan Jan 14 '13 at 18:33
    
THE SOLUTION WAS EASY: just copied root & swap files from found.0000 directories to ubuntu/disks and everything is working great! Thank you again, psusi! –  tesla_fan Jan 14 '13 at 18:53
1  
@tesla_fan please add in an answer tourself and accept it. When you do not the question will keep popping up. –  Rinzwind Jan 14 '13 at 19:11
add comment