Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: ext4 partition became unallocated after installing win 7

  1. #1
    Join Date
    May 2009
    Beans
    6

    ext4 partition became unallocated after installing win 7

    Hello everyone, I am a newbie who is migrating to Linux from windows and now having troubles with ext4. And a new member of forum also!
    I have been using dual-boot (with Grub) Jaunty with Windows 7 both in separate partitions ext4(20GB) and ntfs(100GB). Two days ago I installed new Windows 7 RC, during installation I divided ntfs partition into two partitions and installed Win 7 RC to one of them. Without touching other ext4 & swap Linux partitions. Usually Windows 7 deletes grub and installs Vista loader. When you switch it on it boots directly to windows. To install grub and access to Linux again I used to reinstall Ubuntu with live CD, marking the same partition as "/" without formatting, it keeps all the files and settings when you import them. But this time it did not work out.... Jaunty installation cd showed ext4 partition as unallocated and I had to install it to the third partition I created when installing windows, formatting it as ext4, without touching old ext4 part again. Now both Windows 7 and Jaunty showing the old ext4 Linux partition as UNALLOCATED. It was always ok with ext3 and I am being lil bit conservative these days
    All of my files were there
    Please help me to get my data out from there.

    Thanks beforehand.
    Attached Images Attached Images

  2. #2
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: ext4 partition became unallocated after installing win 7

    Quote Originally Posted by abboss View Post
    To install grub and access to Linux again I used to reinstall Ubuntu with live CD, marking the same partition as "/" without formatting, it keeps all the files and settings when you import them. But this time it did not work out....
    I don't think this is the best method to restore Grub. I think you accidentally deleted the partition containing Ubuntu. Next time follow these.

    http://ubuntuforums.org/showthread.php?t=224351
    https://help.ubuntu.com/community/Re...tallingWindows


    Quote Originally Posted by abboss View Post
    All of my files were there
    Please help me to get my data out from there.
    Do not format it until you get your data back. I'm not sure if a deleted partition would allow to recover files, but if you format then your chances will drop.

    There are some recovery programs like Photorec, but I never used it.

    Try these

  3. #3
    Join Date
    May 2009
    Beans
    6

    Re: ext4 partition became unallocated after installing win 7

    Yes, I didn't know this:
    it seems better. Thanks.

    I can't stop thinking ab my data...
    Maybe I have to wait for developers upgrade some software to work with ext4 issues

  4. #4
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: ext4 partition became unallocated after installing win 7

    How about posting the following commands so we can get a better idea how Ubuntu sees your partitions:
    Code:
    sudo fdisk -lu
    sudo sfdisk -d
    John

  5. #5
    Join Date
    May 2009
    Beans
    6

    Re: ext4 partition became unallocated after installing win 7

    Thank you for attention John ;
    here is it

    Code:
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xc2eba2e7
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sda2          206848    72706047    36249600    7  HPFS/NTFS
    /dev/sda3        72706048   177692671    52493312   83  Linux
    /dev/sda4       230468490   234436544     1984027+   5  Extended
    /dev/sda5       230484555   234436544     1975995   82  Linux swap / Solaris
    abboss@abboss-laptop:~$

  6. #6
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: ext4 partition became unallocated after installing win 7

    According to fdisk, you do have a ~25 GiB chunk of unused disk space after sda3. Based on what you've said so far, I think there's a good chance you could use "testdisk" to recover your lost ext4 partition; to use testdisk, how about downloading the testdisk-6.11.1.linux26.tar.bz2 package to your desktop, and then do:
    Code:
    cd ~/Desktop
    tar xvf testdisk-6.11.1.linux26.tar.bz2
    sudo testdisk-6.11/linux/testdisk_static
    After starting testdisk with the above command, choose "No Log", select the correct HDD and then "Proceed", "Intel", "Analyze", "Quick search", Y/N depending on if you have any Vista partitions, hit enter to continue, select "Deeper Search" so it does a deeper search, which could take a while. Please post the output of the screen that has the deep search results. Also, use your up/down arrow keys to select each partition listed in the deep search results, and press "p" to get a directory listing; please let me know exactly which partitions give you a directory listing, and also which of those partitions seem to be your existing partitions and the lost ext4 partition. We can work from there if you want.

    John

  7. #7
    Join Date
    May 2009
    Beans
    6

    Re: ext4 partition became unallocated after installing win 7

    According to fdisk, you do have a ~25 GiB chunk of unused disk space after sda3. Based on what you've said so far, I think there's a good chance you could use "testdisk" to recover your lost ext4 partition; to use testdisk, how about downloading the testdisk-6.11.1.linux26.tar.bz2 package to your desktop, and then do:
    Code:
    cd ~/Desktop
    tar xvf testdisk-6.11.1.linux26.tar.bz2
    sudo testdisk-6.11/linux/testdisk_static
    After starting testdisk with the above command, choose "No Log", select the correct HDD and then "Proceed", "Intel", "Analyze", "Quick search", Y/N depending on if you have any Vista partitions, hit enter to continue, select "Deeper Search" so it does a deeper search, which could take a while.
    Thank you John, changing
    sudo testdisk-6.11/linux/testdisk_static
    to
    Code:
    sudo testdisk-6.11.1/linux/testdisk_static
    it worked, now it is searching...
    I'll post the results when it finishes.

  8. #8
    Join Date
    May 2009
    Beans
    6

    Re: ext4 partition became unallocated after installing win 7

    So, here is the search results:
    Code:
    TestDisk 6.11.1, Data Recovery Utility, April 2009
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org
    
    Disk /dev/sda - 120 GB / 111 GiB - CHS 14594 255 63
         Partition               Start        End    Size in sectors
    D HPFS - NTFS              0   1  1 11060 254 63  177694902
    D HPFS - NTFS              0  32 33    12 223 19     204800 [System Reserved]
    D HPFS - NTFS             12 223 20  4525 189 16   72499200
    D HPFS - NTFS           2632   1  2 14592 254 63  192153401
    D Linux                 4525 189 17 11060 218 38  104986624
    D Linux                 7678 128  3 14213 157 24  104986624
    D Linux                 7679   3  5 14214  32 26  104986624
    D Linux                 7683  23 21 14218  52 42  104986624
    D Linux                 7685 228 32 14221   2 53  104986624
    D Linux                 7686   6  1 14221  35 22  104986624
    D Linux                 7686 103 34 14221 132 55  104986624
    D Linux                 7686 233 36 14222   7 57  104986624
    D Linux                 7688   0  1 14223  29 22  104986624
    D Linux                 7690  91 18 14225 120 39  104986624
    D Linux                11061   2  1 14345 254 56   52773392
    D Linux Swap           14347   0  1 14592 254 41    3951968
    
    
    
    
    
    
    Structure: Ok.  Use Up/Down Arrow keys to select partition.
    Use Left/Right Arrow keys to CHANGE partition characteristics:
    *=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
    Keys A: add partition, L: load backup, T: change type, P: list files,
         Enter: to continue
    EXT4 Large file Sparse superblock, 27 GB / 25 GiB

  9. #9
    Join Date
    May 2009
    Beans
    6

    Re: ext4 partition became unallocated after installing win 7

    Thank you very much John, program worked well, after analyzing I browsed using keys "p" and "q" I found all my data safe and then easily copied them.
    I my data rescued now
    I will be careful next time. Thank you brother.

  10. #10
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: ext4 partition became unallocated after installing win 7

    Quote Originally Posted by abboss View Post
    Thank you very much John, program worked well, after analyzing I browsed using keys "p" and "q" I found all my data safe and then easily copied them.
    I my data rescued now
    I will be careful next time. Thank you brother.
    That's really nice!

    I'm bookmarking this thread for future reference.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •