Mounting GPT Problems (missing filesystem flag)
TL;DR: How do I repair a partition table without losing data for a GPT formatted external hard drive?
Background story: My neighbor brought over a 3TB external hard drive saying she gave it to someone for them to put some videos taken of a recent high school play. My neighbor has a Mac, her friend has Windows. When she got it back from her friend, her computer could no longer read from the drive and asked her about "initializing". She isn't computer savvy, so I'm sure there was more to the error message than I'm being told.
I suspected it had something mangled with partition tables, and I think I'm right. Using fdisk
I get the following output for the drive:
Disk /dev/sdd: 2.7 TiB, 3000558944256 bytes, 732558336 sectors
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: gpt
Disk identifier: BAAE909E-8289-421C-A8D7-9DC750F0E342
Device Start End Sectors Size Type
/dev/sdd1 6 32773 32768 128M Microsoft reserved
/dev/sdd2 33024 732558079 732525056 2.7T Microsoft basic data
Usign blkid
, I get this:
/dev/sdd: PTUUID="baae909e-8289-421c-a8d7-9dc750f0e342" PTTYPE="gpt"
And using parted
, I get this:
Model: WD My Book 1230 (scsi)
Disk /dev/sdd: 3001GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 24.6kB 134MB 134MB Microsoft reserved partition msftres
2 135MB 3001GB 3000GB Basic data partition msftdata
I noticed immediately that it didn't have anything for the 'File system' column. How can I get this to mount, even if it's just for me, so I can copy off the files she has on there? I'd like to let her take it home knowing that if she has to reformat that she hasn't lost all of her files.