Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Unfortunately I'm not able to access the data on my NAS anymore. I can't figure out why this is the case as I haven't changed anything. So I plugged one of the harddisks in my computer to access the data. What I did:

kpartx -a /dev/sdc

Now I should be able to access

/dev/mapper/vg001-lv001

When trying to mount it I get:

sudo mount -t xfs /dev/mapper/vg001-lv001 /home/user/mnt
mount: /dev/mapper/vg001-lv001: can't read superblock

Now I did a

parted -l

which gave me

Modell: Linux device-mapper (linear) (dm)
Festplatte  /dev/mapper/vg001-lv001:  498GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: loop

Number  Begin   End    Size  Filesystem  Flags
 1      0,00B   498GB  498GB  xfs

Does anybody have a solution how to recover the data?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I got the solution:

Making a copy of the partition

sudo ddrescue -b512 /dev/mapper/vg001-lv001 /somewhere/backup.iso ~/logfile.txt

After doing a

xfs_check /somewhere/backup.iso

it said that the journal is broken so

xfs_repair -L /somewhere/backup.iso

did the job! It is now possible to mount the filesystem again by

mount -o loop /somewhere/backup.iso /mnt/disk
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.