http://serverfault.com/questions/29886/how-do-i-list-a-files-data-blocks-on-linux
# debugfs -R "stat /path/to/file" /dev/<partition>
当然ext系しか上記では分からない
また、pathは相対パス指定。
例
# ls -l /mnt/path/file1 -rw-r--r-- 1 root root 512 Mar 2 02:05 /mnt/usbhdd/t41-2013-03-02-02-img/file1 # debugfs -R "stat path/file1" /dev/sdb1 Inode: 6029318 Type: regular Mode: 0644 Flags: 0x80000 Generation: 3057211472 Version: 0x00000000:00000001 User: 0 Group: 0 Size: 512 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 8 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x5130dff5:8f4cccec -- Sat Mar 2 02:05:57 2013 atime: 0x5130dff5:8d6497ec -- Sat Mar 2 02:05:57 2013 mtime: 0x5130dff5:8f4cccec -- Sat Mar 2 02:05:57 2013 crtime: 0x5130dff5:8d6497ec -- Sat Mar 2 02:05:57 2013 Size of extra inode fields: 28 EXTENTS: (0):24150019 # debugfs -R "stat path/file2" /dev/sdb1 Inode: 6029319 Type: regular Mode: 0600 Flags: 0x80000 Generation: 3057211473 Version: 0x00000000:00000001 User: 0 Group: 0 Size: 2097152000 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 4096008 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x5130e7bd:ed80652c -- Sat Mar 2 02:39:09 2013 atime: 0x5130dffa:bc2c4e0c -- Sat Mar 2 02:06:02 2013 mtime: 0x5130e261:6ddda82c -- Sat Mar 2 02:16:17 2013 crtime: 0x5130dffa:bc2c4e0c -- Sat Mar 2 02:06:02 2013 Size of extra inode fields: 28 EXTENTS: (ETB0):164865, (0-32767):34816-67583, (32768-63487):67584-98303, (63488-96255):100352-133119, (96256-126975):133120-163839, (126976-159743):165888-198655, (159744-190463):198656-229375, (190464-223231):231424-264191, (223232-253951):264192-294911, (253952-286719):296960-329727, (286720-319487):329728-362495, (319488-352255):362496-395263, (352256-385023):395264-428031, (385024-417791):428032-460799, (417792-450559):460800-493567, (450560-481279):493568-524287, (481280-499711):557056-575487, (499712-501759):577536-579583, (501760-503807):581632-583679, (503808-505855):585728-587775, (505856-507903):589824-591871, (507904-509951):595968-598015, (509952-511999):600064-602111
参考
Find File that Owns a Given Block
https://wiki.archlinux.org/index.php/Find_File_that_Owns_a_Given_Block
Linux上でHDDの不良ブロックの確認を行う
http://www.ekesete.net/log/?p=4326
http://hp.vector.co.jp/authors/VA008536/libretto/badblocks.html
めも、未検証