D
D
Dmitry Naumenko2012-09-04 11:35:07
linux
Dmitry Naumenko, 2012-09-04 11:35:07

How to restore a file system table on a hard drive from Linux Slackware?

Hello. I have a 3TB Seagate ST3000DM001-9YN166 hard drive that has been partitioned as follows:

parted /dev/sdg
mklabel gpt
unit TB
mkpart primary 0 -0
quit

mkfs.xfs /dev/sdg1


Until they managed to fix one problem and used a crutch: after each server reboot, it was necessary to repeat the operation described above, skipping the last command. In this case, the xfs file system in the /dev/sdg1 partition was restored on the hard disk and the server continued to operate normally.

But all of a sudden, after another reboot, the crutch broke and it was very hard. Having executed the command as usual, the hard one did not
rise. The print command of the parted program says that the partition exists, but does not have a file system.

parted /dev/sdg
mklabel gpt
unit TB
mkpart primary 0 -0
print
     Model: ATA ST3000DM001-9YN1 (scsi)
     Disk /dev/sdg: 3,00TB
     Sector size (logical/physical): 512B/512B
     Partition Table: gpt
     
     Number  Start   End     Size    File system  Name     Flags
      1      0,00TB  3,00TB  3,00TB               primary


At random, we found out that this is most likely the result of a typo when entering parted. Instead of
parted /dev/sdg

was indicated
parted /dev/sdg1


Please help me restore the file system.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2012-09-04
@nazarpc

Try the testdisk utility

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question