On Tue, Oct 21, 2014 at 06:00:41AM +0800, 積丹尼 Dan Jacobson wrote: > DESCRIPTION > The debugfs program is an interactive file system debugger. It can be > used to examine and change the state of an ext2, ext3, or ext4 file > system. > device is the special file corresponding to the device containing the > file system (e.g /dev/hdXX). > > Please mention that device can also be a regular file. > E.g., a dd(1) copy of a troubled disk to avoid any further damage.
Wow, you're the first person who has noticed this in over a decade. > This is in contrast to the fsck commands, which insist that we cannot > try them on regular files for some reason!?! Um, e2fsck works just fine on regular files % mke2fs -F -t ext4 /tmp/foo.img 4M % e2fsck /tmp/foo.img So does fsck: % e2fsck /tmp/foo.img - Ted -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org