From: <phu...@wi...> - 2008-08-10 22:10:01
|
I am attempting to dump a filesystem which has developed a bad block, and the bad block happens to contain some of the inodes. Even though I specified a large -I number, dump is terminating upon reaching the unreadable inode block. How do I get it to just skip over unreadable blocks, including unreadable inode blocks, and dump whatever can be read? (Aologies if the answer is in the archives; when I attempted to search them I got "Unable to connect to Search Server".) # /sbin/dump -0 -f - -I 32767 /dev/hda7 | rsh ... DUMP: Date of this level 0 dump: Sun Aug 10 14:39:51 2008 DUMP: Dumping /dev/hda7 (an unlisted file system) to standard output DUMP: Added inode 8 to exclude list (journal inode) DUMP: Added inode 7 to exclude list (resize inode) DUMP: Label: /cricket1 DUMP: mapping (Pass I) [regular files] /dev/hda7: Can't read next inode while scanning inode #212576 # tune2fs -l /dev/hda7 tune2fs 1.32 (09-Nov-2002) Filesystem volume name: /cricket1 Last mounted on: <not available> Filesystem UUID: 55ba4ec9-762f-4df8-beb5-d608a59cc7bb Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal filetype sparse_super Default mount options: (none) Filesystem state: clean with errors Errors behavior: Continue Filesystem OS type: Linux Inode count: 1553440 Block count: 3102545 Reserved block count: 155127 Free blocks: 1526138 Free inodes: 1491331 First block: 0 Block size: 4096 Fragment size: 4096 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 16352 Inode blocks per group: 511 Filesystem created: Fri Dec 19 14:13:35 2003 Last mount time: Mon Jul 28 10:46:18 2008 Last write time: Mon Aug 4 10:20:01 2008 Mount count: 8 Maximum mount count: 20 Last checked: Mon May 5 10:04:49 2008 Check interval: 15552000 (6 months) Next check after: Sat Nov 1 10:04:49 2008 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal UUID: <none> Journal inode: 8 Journal device: 0x0000 First orphan inode: 0 This is on Red Hat 9 (yes, kind of old), and the filesystem is not mounted. The dump version appears to be 0.4b28: $ rpm -qf /sbin/dump dump-0.4b28-7 |