0

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable

KDE Parition Editor: "No valid partition table was found on this device."

me@computer:~$ sudo parted -l
Model: ATA LITEONIT LCT-128 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  269MB   268MB   primary  ext4         boot
 2      269MB   32.5GB  32.2GB  primary  ext4
 3      32.5GB  54.0GB  21.5GB  primary  ext4
 4      54.0GB  128GB   74.1GB  primary  ext4


Model: ATA ST1000LM049-2GH1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  8591MB  8590MB  primary  linux-swap(v1)
 2      8591MB  17.2GB  8590MB  primary  ext4
 3      17.2GB  1000GB  983GB   primary  ext4


Error: Can't have a partition outside the disk!
Ignore/Cancel? i
Model: WDC WD10 02F9YZ-09H1JL1 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 4096B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      8389kB  8002GB  8002GB  primary

...

me@computer:~$ sudo fdisk -l -u /dev/sdc
Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 244190646 sectors
Disk model: 02F9YZ-09H1JL1  
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x45b0734a

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdc1        2048 1953523711 1953521664  7.3T 83 Linux

...

This:

me@computer:~$ sudo sfdisk -d /dev/sdc > sdc-backup.txt

Gave me this as a text file in my home folder:

label: dos
label-id: 0x45b0734a
device: /dev/sdc
unit: sectors

/dev/sdc1 : start=        2048, size=  1953521664, type=83

...

So, I'm not sure as to what exactly is going on here or how to fix it... I looked up the sudo parted error and found this:

https://gparted.org/h2-fix-msdos-pt.php

Looks to be the same issue (and it seems that finding this with gparted, instead of KDE's Partition Editor is irrelevant), but before I go making changes to a partition table, I want to be as careful as possible, because I REALLY can't lose the data on the HDD.

Any suggestions or know any specific fixes anyone can point me to?

I really appreciate all the help and let me know if you want me to run any other commands to post here.

Thanks all.

FYI: I installed testdisk and am running it now, if you need the outputs of that somewhere, let me know.

Update for "oldfred" to see by suggestion of the cli command recommended:

me@computer:~$ sudo gdisk -l /dev/sdc
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************


Warning! Secondary partition table overlaps the last partition by
1709333071 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdc: 244190646 sectors, 931.5 GiB
Model: 02F9YZ-09H1JL1  
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): F6F07956-BB67-4AB5-9DE6-67729F8EFB57
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 5
First usable sector is 6, last usable sector is 244190640
Partitions will be aligned on 256-sector boundaries
Total free space is 2042 sectors (8.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      1953523711   7.3 TiB     8300  Linux filesystem
  • It is showing logical/physical as 4k/4k and most systems are 512/4K. developer.ibm.com/tutorials/l-linux-on-4kb-sector-disks You also are using an older copy of fdisk & sfdisk as newer copies output more data to support newer gpt partitioned drives. – oldfred Dec 31 '19 at 15:35
  • Do I need to change that? And if I do, will that corrupt the data? – Steven L Jan 2 at 10:34
  • Most likely that would be a total reformat. So refresh your normal backups before doing anything. I would see what this says, do not necessarily convert to gpt although if only LInux that is a choice. sudo gdisk -l /dev/sda wiki.archlinux.org/index.php/… – oldfred Jan 2 at 14:43
  • Ok, I put the output of that terminal command. – Steven L Jan 3 at 2:00
  • how do I convert back to mbr if need be? – Steven L Jan 3 at 2:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.