Results 1 to 8 of 8

Thread: Hard Drive Reportds Incorrect Partition SIze

  1. #1
    Join Date
    Mar 2007
    Beans
    633

    Hard Drive Reportds Incorrect Partition SIze

    I have a relatively new hard drive I pulled from a machine. I think it was originally part of an array. I loaded it into a external USB enclosure and firing it up.
    The Drive is a 1 TB Toshiba drive but gparted and gnome-disks give really odd results.

    Starting gparted from a terminal I get this message:
    Code:
    gparted
    Unit -.mount does not exist, proceeding anyway.
    ======================
    libparted : 3.2
    ======================
    Can't have a partition outside the disk!
    Gparted reports sdb as 931.51GiB but reports partition sdb1 as 7.25 TiB.
    Gparted has the following warning:
    Code:
    Unable to detect file system! Possible reasons are:
    - The file system is damaged
    - The file system is unknown to GParted
    - There is no file system available (unformatted)
    - The device entry /dev/sdb1 is missing
    boot and raid flags are set.
    Obviously something is wrong.
    Is there a reasonable way to see if the drive has anything usable in it?
    Last edited by rsteinmetz70112; April 23rd, 2020 at 02:59 PM.

  2. #2
    Join Date
    May 2013
    Location
    Galiza
    Beans
    1,901
    Distro
    Ubuntu

    Re: Hard Drive Reportds Incorrect Partition SIze

    Do you want to recover something from it - extremely unlikely - or just reuse it?

  3. #3
    Join Date
    Mar 2007
    Beans
    633

    Re: Hard Drive Reportds Incorrect Partition SIze

    It was unused for a while so I want to find out if there is anything on it.
    I'm also curious since I've never encountered this before.

  4. #4
    Join Date
    Jun 2014
    Beans
    5,911

    Re: Hard Drive Reportds Incorrect Partition SIze

    What do you get running: fdisk, gdisk or parted, anything useful? The filesystem is damaged so the first thing to try is to repair that but if you don't know what filesystem is/was on the disk that won't work.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Hard Drive Reportds Incorrect Partition SIze

    RAID normally has meta-data on it that has to be removed before use as regular drive.
    Not sure then if you lose all data that you may be looking for?

    https://unix.stackexchange.com/quest...e-md-raid-meta

    dmraid was replaced by mdadm for handling FakeRAID in Ubuntu 14.04 and later.

    I have this old command in my notes, but have never used RAID.
    sudo dmraid -E -r /dev/sdX #where sdX is your drive
    You will need to use the dmraid command prior to running the Ubuntu Installer so that it will be able to see the partitions on the drive because otherwise with the raid metadata in place it will see the drive as part of a raid set and ignore its partitions.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Mar 2007
    Beans
    633

    Re: Hard Drive Reportds Incorrect Partition SIze

    Quote Originally Posted by yancek View Post
    What do you get running: fdisk, gdisk or parted, anything useful? The filesystem is damaged so the first thing to try is to repair that but if you don't know what filesystem is/was on the disk that won't work.
    I get pretty much the same think I get from the other utilities. The partition is bigger than the disk.

    I'm pretty sure the disk was part of a raid 1 array possibly with lvm on top of it.

    Seems like the thing to do is try to repair the partition table. I seem to remember that you can rewrite the partition table without destroying the underlying filesystem and date. But I a little fuzzy on how.

  7. #7
    Join Date
    May 2013
    Location
    Galiza
    Beans
    1,901
    Distro
    Ubuntu

    Re: Hard Drive Reportds Incorrect Partition SIze

    With lvm and part of a RAID don't bother trying to recover anything from that.

  8. #8
    Join Date
    Mar 2007
    Beans
    633

    Re: Hard Drive Reportds Incorrect Partition SIze

    Quote Originally Posted by oldfred View Post
    RAID normally has meta-data on it that has to be removed before use as regular drive.
    Not sure then if you lose all data that you may be looking for?

    https://unix.stackexchange.com/quest...e-md-raid-meta

    dmraid was replaced by mdadm for handling FakeRAID in Ubuntu 14.04 and later.

    I have this old command in my notes, but have never used RAID.
    sudo dmraid -E -r /dev/sdX #where sdX is your drive
    You will need to use the dmraid command prior to running the Ubuntu Installer so that it will be able to see the partitions on the drive because otherwise with the raid metadata in place it will see the drive as part of a raid set and ignore its partitions.
    OK I'm positive that mdadm was used to create the raid array. I checked and madam was not installed on this machine. I installed it, that may help decipher the drive.

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
  •