Re: Userspace cp and ls utility

Eric Sandeen
2006-07-23T03:37:18Z

Jan Dittmer wrote:
> Are there utilities for xfs which are able to ls and
> cp from an _unmounted_ xfs volume? I fear that by
> mounting the volume - even ro - I would lose even more
> data.
> Or can I achieve such an effect with other xfs related
> utilities?

Mounting ro should be fine - if you also mount with "norecovery" then truly no
IO should happen. If you're really paranoid, find a utility to mark the block
device itself as read-only, then you've taken it out of the filesystem's hands
completely.

You could also try xfs_copy, it makes a copy of the filesystem and works on the
underlying device, with the filesystem unmounted. There's a man page for it.

-Eric