Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Partitions have vanished

  1. #1
    Join Date
    Sep 2011
    Beans
    46

    Partitions have vanished

    Hi!

    Briefly: GParted shows me a drive without any assigned partitions, though I can start Ubuntu and see my data partition. Any idea about why this happens?

    Here is my situation: I had 4 partitions on my hd: one for Ubuntu, one for Win7, one for Windows Recovery (set by default) and one for data, the biggest one. They were set up using GParted

    I wanted to move the Ubuntu partition so I could make a little bigger the data partition, but I couldn't do it being on Ubuntu, so I started Windows, downloaded Partition Magic and tried to edit them. But Partition Magic said there was a problem with the partition table, did I wanted to fix it? I (perhaps stupidly) accepted and PM fixed whatever it was. Nevertheless, once PM had already fixed the error, still wasn't able to work properly, as it claimed to be unable to find the letter of a drive.

    So I gave up with PM and tried GParted instead, making a USB Live. I restarted, configured the computer to boot from USB as first option, restarted... and there wasn't any GParted boot, just the usual GRUB selector. So I thought I would start Windows again and remake the USB installation. But Win7 was unable to start, and I tried using the recovery environment to repair it. As the recovery didn't worked either, I decided to just go to Ubuntu and get rid of the whole Windows stuff (that is, to delete OS partition and the recovery partition).

    Now, when I open GParted, it shows a empty drive, without assigned partitions. Weirdly, I still bieng able to start Ubuntu normally and to access to the data partition, while the Win7 partition seems to have vanished.

    Now, what could I do now? I just want to have the Ubuntu and Data partitions, but GParted is unable to do anything.

    Help please!

  2. #2
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,263
    Distro
    Ubuntu

    Re: Partitions have vanished

    This is a weird one. I cannot tell you what is going on.

    In your case, I would repartition the drive from scratch, reinstall Ubuntu, and restore my data. Of course, this presumes you already have a backup, as repartitioning would destroy any data.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  3. #3
    Join Date
    Apr 2012
    Beans
    3

    Re: Partitions have vanished

    Try to format the system and reinstall all the operating systems again.

  4. #4
    Join Date
    Apr 2012
    Beans
    3

    Re: Partitions have vanished

    Quote Originally Posted by Paddy Landau View Post
    This is a weird one. I cannot tell you what is going on.

    In your case, I would repartition the drive from scratch, reinstall Ubuntu, and restore my data. Of course, this presumes you already have a backup, as repartitioning would destroy any data.
    I guess you r right .

  5. #5
    Join Date
    Nov 2010
    Location
    Madras, India
    Beans
    201

    Re: Partitions have vanished

    Quote Originally Posted by Carllacan View Post
    Hi!

    Briefly: GParted shows me a drive without any assigned partitions, though I can start Ubuntu and see my data partition. Any idea about why this happens?

    Here is my situation: I had 4 partitions on my hd: one for Ubuntu, one for Win7, one for Windows Recovery (set by default) and one for data, the biggest one. They were set up using GParted
    What about the swap partition for Ubuntu? Did you allocate one?

    I wanted to move the Ubuntu partition so I could make a little bigger the data partition, but I couldn't do it being on Ubuntu, so I started Windows, downloaded Partition Magic and tried to edit them.
    What was the order of the partitions on your disk, before you started having these issues?

    Was your HDD using MBR partition format or GPT format?

    But Partition Magic said there was a problem with the partition table, did I wanted to fix it? I (perhaps stupidly) accepted and PM fixed whatever it was. Nevertheless, once PM had already fixed the error, still wasn't able to work properly, as it claimed to be unable to find the letter of a drive.

    So I gave up with PM and tried GParted instead, making a USB Live. I restarted, configured the computer to boot from USB as first option, restarted... and there wasn't any GParted boot, just the usual GRUB selector.
    Which distribution did you use to make your GParted bootable USB?

    So I thought I would start Windows again and remake the USB installation. But Win7 was unable to start, and I tried using the recovery environment to repair it. As the recovery didn't worked either,
    In each case what if any were the error messages displayed? Did you get to the Grub menu screen without problems?

    I decided to just go to Ubuntu and get rid of the whole Windows stuff (that is, to delete OS partition and the recovery partition).

    Now, when I open GParted, it shows a empty drive, without assigned partitions. Weirdly, I still bieng able to start Ubuntu normally and to access to the data partition, while the Win7 partition seems to have vanished.
    Did you try displaying your partitions using other tools like sfdisk (try sfdisk -l /dev/sda or /dev/hda to display partitions and sfdisk -V /dev/sda or /dev/hda to make it do a consistency check) or fdisk? Do they report the same kind of errors gparted is showing? What does the output of mount command display? Also try cat /proc/partitions.

    Now, what could I do now? I just want to have the Ubuntu and Data partitions, but GParted is unable to do anything.

    Help please!
    The last time did you try the GParted from within your Ubuntu system (which will not allow modifications since partitions will be mounted) or from a LiveCD/USB?

    Your problem seems to be some sort of strange mess-up caused by a combination of different tools. Your best bet might be to just backup any data and reinstall.

  6. #6
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,377
    Distro
    Ubuntu Mate Development Release

    Re: Partitions have vanished

    From first glance, it looks like Linux filesystem utilities can't make any sense of your drive -- which would be true in either of the following cases:
    1) Your Windows partitions got converted from Basic Disks to Dynamic Disks -- which would happen AUTOMATICALLY if you had added another partition when you already had four
    2) Your Windows filesystems got corrupted big-time, to the degree that the Linux utilities simply can't read them anymore.

    Since you can't get into Win7 to see the partitions, and Linux doesn't appear to see them either, my recommendation is to use either of the following MS Windows utilities (after downloading the ISO image and burning that to CD):
    1) EASEUS Partition Master
    2) Minitool Partition Wizard

    These should both be able to see and manage the Windows partitions. Partition Magic hasn't been out in years, so I don't know if it's any good anymore.
    Ubuntu 20.04, Mint 19.10; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  7. #7
    Join Date
    Sep 2011
    Beans
    46

    Angry Re: Partitions have vanished

    Ok, thank you all very much for your answers and your interest. I guess my better option is to format the HD and reinstall everything from scratch. The only problem is that I don't have any place to move my DATA, so I think I will try some other things first, like those ones Mark Phelps talks about (thanks).

    I think the whole problem came with Partition Magic trying to fix the info in the partition table. GParted never said anything on that, and everything went fine. Isn't there some way to make GParted "look" at the drive and figure out how partitions were configured? I see it has a "Try to recover data" function, could that help me?

    About santosh83 questions:
    What about the swap partition for Ubuntu? Did you allocate one?
    I don't remember doing it when I installed Ubuntu. If I configured such a partition, though, GParted never showed it.

    What was the order of the partitions on your disk, before you started having these issues?
    If I'm not wrong, it was:
    1) Win7 recovery environment
    2) Win 7
    3) Empty space
    4) Ubuntu
    5) Data partition

    That empty space came from shrinking Win 7 partition. It was then when I wanted to move Ubuntu in order to increase Data's size.

    Was your HDD using MBR partition format or GPT format?
    I'm sorry for my ignorance, but that sounds to me like if you were talking Japanese

    Which distribution did you use to make your GParted bootable USB?
    I did it in Windows Seven...
    In each case what if any were the error messages displayed? Did you get to the Grub menu screen without problems?
    The Grub starts without any problem at all. It even shows me the Windows 7 and the Recovery tool options. When I select any of them, though, I get to a screen telling me that Win 7 is unable to load. When I choose the "Try to repair" option, though, it is unable to do anything.

    Did you try displaying your partitions using other tools like sfdisk (try sfdisk -l /dev/sda or /dev/hda to display partitions and sfdisk -V /dev/sda or /dev/hda to make it do a consistency check) or fdisk? Do they report the same kind of errors gparted is showing? What does the output of mount command display? Also try cat /proc/partitions.
    sfdick -l /dev/sda shows me this
    Code:
    Disc /dev/sda: 77825 cilindres, 255 capçals, 63 sectors/pista
    Unitats = cilindres de 8225280 octets, blocs de 1024 octets, contant des de 0
    
       Disp. Arr.  Inici     Final #cil.    #blocs    Id  Sistema
    /dev/sda1          0+   3263    3264-  26217056   1c  W95 FAT32 (LBA) oculta
    /dev/sda2   *   3263+   9000    5738-  46085108+   7  HPFS/NTFS/exFAT
    /dev/sda3      36682+  77825-  41143- 330480640    7  HPFS/NTFS/exFAT
    /dev/sda4      28862+  36682-   7821-  62814208   83  Linux
    sfdick -l /dev/sda says "Warning: partitions 1 and 2 overlap" (actually I don't know if overlap is the right word, I have Ubuntu in catalan and he says "encavalquen", but I'm pretty sure is the right translation)

    With /dev/hda I get an error: such directory doesn't exists, either I try with -l or -V.

    The last time did you try the GParted from within your Ubuntu system (which will not allow modifications since partitions will be mounted) or from a LiveCD/USB?
    I first made the partitions while installing Ubuntu from a Live CD, and since then I used GParted from within Ubuntu.

    PD: Thanks again for the answers. And, by the way, Im sorry if I make any grammar mistakes, English is not my mother language.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Partitions have vanished

    Overlapping partitions is one reason gparted will not show a drive as the corruption creates issues it cannot resolve.

    Run this as what you have posted does not necessarily show overlap. This shows more detail by sectors.

    Code:
    sudo fdisk -lu
    You should also backup partition table just in case.

    Backup partition table to text file & save to external device.
    sudo sfdisk -d /dev/sda > PTsda.txt

    Fix overlaping partition error srs5694 post #34
    http://ubuntuforums.org/showthread.php?t=1667614
    http://www.rodsbooks.com/missing-parts/index.html

    But you may just have to use sfdisk. The issue is, if partitions overlap which partition does the overlap belong to and does it contain any data from one, or the other, or both and is corrupted?
    Using sfdisk to fix partition table problems - not without risk
    http://ubuntuforums.org/showthread.php?t=1192598
    Last edited by oldfred; April 7th, 2012 at 04:32 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Sep 2011
    Beans
    46

    Re: Partitions have vanished

    Ok, I've been researching a bit about everything you told me and I think olfred has it right: I have overlapping partitions. Concretely It is the windows recovery environment the overlapping one. I'll show you:
    Code:
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0xb33d55e5
    
    Dispositiu Arrenc.   Inici         Final    Blocs    Id  Sistema
    /dev/sda1            2048    52436159    26217056   1c  W95 FAT32 (LBA) oculta
    /dev/sda2   *    52430848   144601064    46085108+   7  HPFS/NTFS/exFAT
    /dev/sda3       589301760  1250263039   330480640    7  HPFS/NTFS/exFAT
    /dev/sda4       463673344   589301759    62814208   83  Linux
    As I understand it sda1 ends "over" sda2. I think it is almost definetely Partition Magic's fault, it told me there was a problem with a partition and that it was going to "fix" it.

    So, I'm thinking on using sfdisk to copy the table to a .txt, edit it, and load it to disk. Only problem is that I don't know exactly how to edit it. I mean, should I shrink sda2 (modify its starting position) or sda1 (modifying its ending position)?

    My guess is sda1, as sda2 is bootable and that could lead to problems, could'nt it?

    Thanks everyone.
    Last edited by Carllacan; May 1st, 2012 at 10:36 PM.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Partitions have vanished

    The first sector of a partition is like the first sector of a drive in that it has boot info. For NTFS partitions it must match the partition table and have a valid NTFS signature. So moving the start of a NTFS partition will definitely create problems.

    But do not know what the end of sda should be. You might try looking in testdisk as it finds old partitions, but it reports the info in the old cylinders, heads, sectors and it is not easy to relate. But if you want to see what it says:

    Testdisk uses CHS - formula for conversion to LBA
    http://en.wikipedia.org/wiki/Cylinder-head-sector
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 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
  •