Page 1 of 9 123 ... LastLast
Results 1 to 10 of 85

Thread: GParted says hard drive is "unallocated"

  1. #1
    Join Date
    Sep 2012
    Beans
    45

    GParted says hard drive is "unallocated"

    I'm attempting to back up the files on my hard drive, because my laptop seems to have crashed after a failed update, and only sent me to the recovery console. I'm on Xubuntu now, but the hard drive seems to be acting up. (also, on a side note, the recovery console and the option to boot from my hard drive and the option to add a new boot option) disappeared at some point, though the last one appears when I plug in a usb.

    Anyway, this is what sudo fdisk -l says:

    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    256 heads, 63 sectors/track, 60563 cylinders, total 976773168 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: 0x2902cc6d

    Device Boot Start End Blocks Id System
    /dev/sda1 1 4294967295 2147483647+ ee GPT

    Disk /dev/sdb: 15.7 GB, 15703474176 bytes
    256 heads, 54 sectors/track, 2218 cylinders, total 30670848 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: 0xc3072e18

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 32 30670847 15335408 c W95 FAT32 (LBA)
    I was trying to follow Enigmapond's post in this thread: http://ubuntuforums.org/showthread.php?t=1841546

    But I can't mount the partition into the folder, because I must "specify the filesystem type."
    Help would be greatly appreciated. I'm not much of a tech person, and my laptop is just baffling me to no end with these issues. /:

  2. #2
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: GParted says hard drive is "unallocated"

    Can you get to a desktop okay? Launch Gparted and have a look at what that says.

    The Windows partition doesn't appear in the left pane of the file browser normally? The instructions on that thread seem okay. You should though do mount it in an existing partition designed for that, /mnt or /media.

    Code:
    sudo mkdir /media/win
    sudo mount /dev/sda1 /media/win
    ... presuming sda1 is the partition you have Win on.

    You can change the /etc/fstab file to mount it at boot which save a lot of hassle.

  3. #3
    Join Date
    Sep 2012
    Beans
    45

    Re: GParted says hard drive is "unallocated"

    No, the Windows partition doesn't pop up. Though it seems that the operating system was corrupted and is now missing, so could that be why?
    This is what it shows:

    I tried that, but it still says that I have to specify the filesystem type.

    What's the /etc/fstab file and what would changing it do? Sorry, I've never dealt with like any of this stuff before.

  4. #4
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,038
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: GParted says hard drive is "unallocated"

    That first line from fdisk says it all:
    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
    You probably have a machine that uses the newer UEFI boot system, which means that most of the advice you can find on the web will not only be wrong for your system but can easily make matters much worse.

    You can find more than you probably want to know right now about this new system, at https://help.ubuntu.com/community/UEFI but it's not going to solve the immediate problem.

    Were it my machine involved, I would follow the advice given by the Gparted popup message -- but since that just might wipe the machine totally clean and make recovery impossible, I can't recommend it to you. Hopefully one of the few UEFI experts around will find this thread and offer better ideas. I've sent messages to a couple of them asking them to stop by. Meanwhile, don't do anything that might make matters worse than they already are...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  5. #5
    Join Date
    Sep 2012
    Beans
    45

    Re: GParted says hard drive is "unallocated"

    Alright, thank you very much. I guess that makes sense. I'll just wait before doing anything else, in that case.

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GParted says hard drive is "unallocated"

    Is your system new? And have UEFI? Windows only works on gpt partitioned drives with UEFI, otherwise it should be MBR(msdos) partitioning.

    Windows often deletes the primary gpt table if found as gpt and installs to MBR. But Linux tools still see the backup gpt table and get confused if gpt or MBR and do not do anything.

    Your gparted is saying both primary & backup gpt tables are bad which is highly unusual. Or maybe it is not really gpt?

    repair gpt:
    http://www.rodsbooks.com/gdisk/repairing.html

    You can also try testdisk, but may have to go into it from both the MBR and gpt modes to see which mode will recover an old partition table.

    repairs including testdisk info & link to testdisk, testdisk is in repository and on most repairCDs
    http://members.iinet.net.au/~herman546/p21.html
    http://www.psychocats.net/ubuntucat/...rdeletedfiles/

    Instructions
    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    http://www.cgsecurity.org/wiki/Menu_Analyse
    http://www.cgsecurity.org/wiki/TestD..._file_for_NTFS

    From this screen in testdisk try both Intel for MBR(msdos( and UEFI gpt for gpt(GUID) partitioning. See if either shows any partitions.
    Attached Images Attached Images
    Last edited by oldfred; September 16th, 2012 at 06:06 PM.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  7. #7
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,038
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: GParted says hard drive is "unallocated"

    Thanks for responding so quickly, Fred!
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  8. #8
    Join Date
    Sep 2012
    Beans
    45

    Re: GParted says hard drive is "unallocated"

    It's new, yes. I got it in late May. I don't know if it has UEFI, how do I find that out?

    I'll try to repair GPT first. How do I access gdisk?
    Also, why does the size show up as 465GB when the hard drive is 500GB?
    And thank you, that was a very fast answer indeed.

  9. #9
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GParted says hard drive is "unallocated"

    gdisk is in the repository, so from Ubuntu liveCD terminal you can just run this.

    sudo apt-get install gdisk

    #similarly for testdisk

    sudo apt-get testdisk

    When you go into BIOS/UEFI it should say or show UEFI as a switch you can turn on. Some only defaulted to UEFI boot if drive was gpt and first partition the efi partition, if not found then it would boot in BIOS/MBR mode. Newer systems seem to have a setting for UEFI or BIOS/AHCI/legacy or whatever your version calls it. Also vendor manual should mention UEFI.

    Most Intel i series chips have motherboards with UEFI capability.

    Drive size seems about right. The issue is decimal vs. binary.
    Hard Drive size
    http://en.wikipedia.org/wiki/Gigabyt...umer_confusion
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  10. #10
    Join Date
    Sep 2012
    Beans
    45

    Re: GParted says hard drive is "unallocated"

    The first one works, however when I try to do the same for testdisk it says:
    E: Invalid operation testdisk

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