Find the answer to your Linux question:
Results 1 to 8 of 8
Hi all. Background: I used to have a dual boot vista + ubuntu jaunty configuration. I installed ubuntu bootloader in the ubuntu partion not the MBR using advanced option during ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3

    Angry How to Recover my ubuntu partition after resizing my vista partition?

    Hi all.

    Background:
    I used to have a dual boot vista + ubuntu jaunty configuration.
    I installed ubuntu bootloader in the ubuntu partion not the MBR using advanced option during installation.
    Then i used Easy BCD to edit my Vista Boot Configuration and add an entry for Ubuntu.

    Problem:
    Everthing worked like a charm, until one day i decided to shrink my vista partition to get some free space using Microsoft Windows Disk Management Utility "diskmgmt.msc".

    Now when i boot into linux i get grub prompt only.

    when i do this (to find out my linux partition):
    find /boot/grub/stage1
    or
    find /grub/stage1
    i get
    file not found,


    Then i booted with ubuntu live cd

    DID sudo grub
    grub>find /boot/grub/stage1

    same thing : file not found


    And i dont see my Ubuntu partition in My computer under Live DVD session.


    Then i opened Gparted it doesn't show any ext2/ext3 partitions instead it shows my ubuntu partition as Upartitioned.

    Now is it that my ubuntu partition is dead, i can never recover it back,
    or there is some hope!!

    Please Guide me!!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You did something wrong during partition resize. Try to restore partition table using Testdisk. Its available in PartedMagic LiveCD. You can download and run Testdisk script using Ubuntu LiveCD too.

    Testdisk will recover partition table to its original state. In case it doesn't work, post the output of sudo fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3
    I'll certainly try to do that, but i just shruk the volume everything went good.

    And it has also happened to me earlier when i was using fedora.

    I guess, diskmgmt.msc has affinity to corrupt liunx partition or the table since it can't recongnise it.

    Although a very nasty suggestion but why don't u try doing this(i mean resizing n all) yourself and see if everything goes well?

    And yes i did "fstab -l" it also didnt showed ne Ext2/Ext3 Partition.
    I'll post the results soon.

    TY.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    19

    Cool

    Yes, the drive has been shrunked from above mentioned statements reveals . Testdisk can only provide you hope , its little bit confusing in first attempt , but can be master in no time .

    NB: Try to keep a copy sysrescue cd on your own , it can solve your 90% problems

  5. #5
    Just Joined!
    Join Date
    Nov 2009
    Location
    Minglanilla, near Cebu city, Philippines
    Posts
    1
    I think Gparted (any program that shows you the partitions in a way you understand, incl not-used partitions and file-system) is the way to go.
    Compare the present partitions to the partitions BEFORE you did shrink the VISTA partition.
    As you only did SHRINK ONE PARTITION (Vista partition) only, your Ubuntu partition is still there (simple logic).
    If you remember the original setup, you will see the Ubuntu partition.
    If Gparted does not see the ext2/ext3 partition, it is likely you damaged that partition somehow.
    (I dont understand what is 'Upartitioned')
    herman in philippines.

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    19

    Wink

    Quote Originally Posted by hermanaa View Post
    As you only did SHRINK ONE PARTITION (Vista partition) only, your Ubuntu partition is still there (simple logic).
    If you remember the original setup, you will see the Ubuntu partition.
    If Gparted does not see the ext2/ext3 partition, it is likely you damaged that partition somehow.
    (I dont understand what is 'Upartitioned')
    herman in philippines.
    Ubuntu drive is there , but not in formatted stage , so there is no question about OS in that drive . As per the original poster this had occured accidently by him , so thats why it showed as 'Unpartitioned '

  7. #7
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3
    Quote Originally Posted by Linux_Boy View Post
    Ubuntu drive is there , but not in formatted stage , so there is no question about OS in that drive . As per the original poster this had occured accidently by him , so thats why it showed as 'Unpartitioned '
    SO you r saying that my ubuntu partition is still there but partiiton table has been wrongly updated by diskmgmt.msc...

    And by the way how can i change the partition table "accidently"??

    What should i do now? ne1???

    Screenshot: Analyse step of Testdisk (attached)
    Attached Images Attached Images

  8. #8
    Just Joined!
    Join Date
    May 2009
    Posts
    19
    There you are , from your info it seemed drive is there but Ubuntu is missing , but that case cant be occured unless you havent install it , but from your testdisk output the same is deleted , Ubuntu and its corresponding drive has been gone , but anyway you can access the deleted drive using "testdisk", little bit tricky but you can dude !! Try it

Posting Permissions

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