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

Thread: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

  1. #1
    Join Date
    Jul 2011
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Good day to everyone. I hope someone can help me with my problem.

    I have a dual boot Windows and Ubuntu system.

    I recently encountered an hd0 out of disk error and was not able to boot into Ubuntu. So I booted into Windows, after 2 to 3 times of booting and rebooting into Windows, I tried booting again into Ubuntu but still I get the hd0 out of disk error.

    So I decided to run Ubuntu from LIVEUSB to try to fix my Ubuntu partition using GParted, but when I run GParted, it shows my entire disk as UNALLOCATED SPACE!

    The strange thing is that Nautilus still shows and mounts my partitions. Also every time I boot into Windows , my partitions exists and I am able to read and write to them.

    I have no idea what is wrong. Please help! I can't stand using Windows since most of the tools I use are in Ubuntu. I don't mind reinstalling Ubuntu. In fact I already tried reinstalling using the LIVEUSB but I wasn't able to, since GParted or the Ubuntu installer itself does not recognized my partitions and shows the entire disk as unallocated space.

    When I run sudo fdisk -l, here's the output:

    Code:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xb30ab30a
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   104869887    52433920   83  Linux
    /dev/sda2       104869888   105074687      102400    7  HPFS/NTFS/exFAT
    /dev/sda3       105074688   156149759    25537536    7  HPFS/NTFS/exFAT
    /dev/sda4       156151800   625153409   234500805    f  W95 Ext'd (LBA)
    /dev/sda5       156151808   169156591     6502392   82  Linux swap / Solaris
    /dev/sda6       169158656   294991871    62916608    7  HPFS/NTFS/exFAT
    /dev/sda7       294993920   471037944    88022012+   7  HPFS/NTFS/exFAT
    /dev/sda8       471041928   625121152    77039612+   7  HPFS/NTFS/exFAT
    In Nautilus, my partitions are recognized and mounted:


    In GParted, the whole disk is unallocated space:


    In Windows, partitions are recognized and mounted as well:

  2. #2
    Join Date
    Apr 2008
    Location
    USA
    Beans
    1,122
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    In my case, it was because I had overlapping partitions. However, from what I can see from your output of fdisk, I haven't detected any overlapping. Unless I'm missing it. You can right-click on on the drive from within GParted and selecting Information to see if it gives you any warnings.
    Question Everything

  3. #3
    Join Date
    Jul 2011
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Quote Originally Posted by Shadius View Post
    In my case, it was because I had overlapping partitions. However, from what I can see from your output of fdisk, I haven't detected any overlapping. Unless I'm missing it. You can right-click on on the drive from within GParted and selecting Information to see if it gives you any warnings.
    Thank you for the quick response.
    Here's the Information I got from GParted -> Information option:


  4. #4
    Join Date
    Apr 2008
    Location
    USA
    Beans
    1,122
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Quote Originally Posted by Prescilla View Post
    Thank you for the quick response.
    Here's the Information I got from GParted -> Information option:

    I think I figured it out. So from your output of fdisk it appears that sda4 is larger than the disk itself. Thus, giving you that warning of "Can't have a partition outside the disk!" Your output indicates that your total sectors are 625142448, but your sda4 partition ends at 625153409. Am I clear so far? So, I believe you would have to shrink sda4 to bring the size down to match the disk drive size.
    Last edited by Shadius; July 1st, 2012 at 04:34 AM. Reason: Got myself confused and provided wrong information! >_< Sorry! Fixed now!
    Question Everything

  5. #5
    Join Date
    Jul 2011
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Quote Originally Posted by Shadius View Post
    I think I figured it out. So from your output of fdisk it appears that sda8 is larger than the disk itself. Thus, giving you that warning of "Can't have a partition outside the disk!" Your output indicates that your total sectors are 625142448, but your sda8 partition ends at 625121152. Am I clear so far? So, I believe you would have to shrink sda8 to bring the size down to match the disk drive size.

    Wait, that seems to be wrong. I think I confused myself.
    Isn't 625142448 greater than 625121152???

    I have no idea what to do...

  6. #6
    Join Date
    Apr 2008
    Location
    USA
    Beans
    1,122
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Quote Originally Posted by Prescilla View Post
    Good day to everyone. I hope someone can help me with my problem.

    I have a dual boot Windows and Ubuntu system.

    I recently encountered an hd0 out of disk error and was not able to boot into Ubuntu. So I booted into Windows, after 2 to 3 times of booting and rebooting into Windows, I tried booting again into Ubuntu but still I get the hd0 out of disk error.

    So I decided to run Ubuntu from LIVEUSB to try to fix my Ubuntu partition using GParted, but when I run GParted, it shows my entire disk as UNALLOCATED SPACE!

    The strange thing is that Nautilus still shows and mounts my partitions. Also every time I boot into Windows , my partitions exists and I am able to read and write to them.

    I have no idea what is wrong. Please help! I can't stand using Windows since most of the tools I use are in Ubuntu. I don't mind reinstalling Ubuntu. In fact I already tried reinstalling using the LIVEUSB but I wasn't able to, since GParted or the Ubuntu installer itself does not recognized my partitions and shows the entire disk as unallocated space.

    When I run sudo fdisk -l, here's the output:

    Code:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xb30ab30a
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   104869887    52433920   83  Linux
    /dev/sda2       104869888   105074687      102400    7  HPFS/NTFS/exFAT
    /dev/sda3       105074688   156149759    25537536    7  HPFS/NTFS/exFAT
    /dev/sda4       156151800   625153409   234500805    f  W95 Ext'd (LBA)
    /dev/sda5       156151808   169156591     6502392   82  Linux swap / Solaris
    /dev/sda6       169158656   294991871    62916608    7  HPFS/NTFS/exFAT
    /dev/sda7       294993920   471037944    88022012+   7  HPFS/NTFS/exFAT
    /dev/sda8       471041928   625121152    77039612+   7  HPFS/NTFS/exFAT
    Okay, it seems the problem is sda4 instead. Notice that it ends at 625153409, but the total sectors of the disk drive are 625142488. So if you do that math, it's over by 10921. You will have to shrink the size of the partition to bring it back into the disk drive, so to speak. Sorry for the confusion, but I'm sure that this is the problem, this time. You might wait for a second opinion on this also.
    Question Everything

  7. #7
    Join Date
    Apr 2008
    Location
    USA
    Beans
    1,122
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Quote Originally Posted by Prescilla View Post
    Isn't 625142448 greater than 625121152???

    I have no idea what to do...
    Yes, you're right. Maybe I should delete this post to avoid confusion? Yes? Let me know, it is your thread, after all. I don't want to confuse you in trying to help you. I've edited the post to include the correct information. Again, I'm so sorry about the confusion.
    Last edited by Shadius; July 1st, 2012 at 04:36 AM.
    Question Everything

  8. #8
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    Howdy,

    Gparted is not the world's best partition editor. I would rather use fdisk.

  9. #9
    Join Date
    Apr 2009
    Beans
    559

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    This is an odd one, which I'm bumping as much as anything. If you do reinstall maybe reduce the number of partitions and use exe3 or four as the linux file system despite the fact that windows can't see it. The not booting what used to boot does suggest that a close look at the bootloader may be in order, it may be worth posting it. Invisible to gparted but viewable in windows is just plain weird.
    This distro may be helpful http://partedmagic.com/doku.php
    Wish I had a quick fix but don't. Do backup that parition while you can before doing anything.
    Bumping bigtime.
    Last edited by houseworkshy; July 1st, 2012 at 04:45 AM.


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

    Re: GParted in UBUNTU shows entire disk as UNALLOCATED SPACE

    It usually is not gparted, but Windows (or third party Windows partition tools) and sometimes testdisk that cannot count and make extended too large.

    Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives
    http://ubuntuforums.org/showthread.php?t=1705325
    http://www.rodsbooks.com/fixparts/
    First backup partition table and copy to another device.
    sudo sfdisk -d /dev/sda > parts_sda.txt
    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 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
  •