Re: filesystem dead, xfs_repair won't help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Tue, 11 Apr 2017 14:40:15 +0300
Avi Kivity <avi@xxxxxxxxxxxx> écrivait:

> $ sudo xfs_db -c "sb 0" /tmp/fs
> xfs_db: /tmp/fs is not a valid XFS filesystem (unexpected SB magic 
> number 0x5846534d)
> Use -F to force a read attempt.
> $ sudo xfs_db -F -c "sb 0" /tmp/fs
> xfs_db: /tmp/fs is not a valid XFS filesystem (unexpected SB magic 
> number 0x5846534d)
> xfs_db: V1 inodes unsupported. Please try an older xfsprogs.

Oops, I forgot one important part, sorry, you must restore the
meta_dump to a file first:

xfs_mdrestore /tmp/fs /tmp/fsimage

then run xfs_db on the /tmp/fsimage:

xfs_db -c 'sb 0' -c 'p' /tmp/fsimage

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@xxxxxxxxxxxxxx>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

Attachment: pgpSC4UqY_YcI.pgp
Description: Signature digitale OpenPGP


[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux