<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFF99" text="#000000">
<br>
Hi,<br>
<br>
The two files in the root directory of a 500GB external USB HDD
became corrupt,<br>
probably due to a power failure.<br>
<br>
dave@K-Matrix $ ls -l /media/Galaxy/<br>
ls: cannot access /media/Galaxy/ChnSchld_pre_4-14.tgz: No such file
or directory<br>
ls: cannot access /media/Galaxy/dhr820xu.ext: No such file or
directory<br>
total 24<br>
?????????? ? ? ? ? ?
ChnSchld_pre_4-14.tgz<br>
?????????? ? ? ? ? ? dhr820xu.ext<br>
drwxr-xr-x 7 dave dave 4096 2012-02-13 12:45 DHR recordings<br>
drwxr-xr-x 212 dave dave 12288 2008-11-30 00:21 Miles Davis<br>
drwxr-xr-x 5 dave dave 4096 2012-02-16 06:06 PartImage<br>
<br>
<br>
xfs_repair didn't help much; it just removed the two filenames.<br>
At minimum, I expected two entries in L+F but the L+F directory was
not created.<br>
<br>
dave@K-Matrix $ sudo xfs_repair /dev/sdc1<br>
Phase 1 - find and verify superblock...<br>
Phase 2 - using internal log<br>
- zero log...<br>
- scan filesystem freespace and inode maps...<br>
- found root inode chunk<br>
Phase 3 - for each AG...<br>
- scan and clear agi unlinked lists...<br>
- process known inodes and perform inode discovery...<br>
- agno = 0<br>
- agno = 1<br>
- agno = 2<br>
- agno = 3<br>
- process newly discovered inodes...<br>
Phase 4 - check for duplicate blocks...<br>
- setting up duplicate extent list...<br>
- check for inodes claiming duplicate blocks...<br>
- agno = 0<br>
entry "ChnSchld_pre_4-14.tgz" in shortform directory 128 references
free inode 48145461<br>
junking entry "ChnSchld_pre_4-14.tgz" in directory inode 128<br>
entry "dhr820xu.ext" in shortform directory 128 references free
inode 48145451<br>
junking entry "dhr820xu.ext" in directory inode 128<br>
- agno = 1<br>
- agno = 2<br>
- agno = 3<br>
Phase 5 - rebuild AG headers and trees...<br>
- reset superblock...<br>
Phase 6 - check inode connectivity...<br>
- resetting contents of realtime bitmap and summary inodes<br>
- traversing filesystem ...<br>
- traversal finished ...<br>
- moving disconnected inodes to lost+found ...<br>
Phase 7 - verify and correct link counts...<br>
done<br>
<br>
<br>
See longer console session and before/after metadumps in ~7MB d/l
at:<br>
<a class="moz-txt-link-freetext"
href="http://daxxi.net/xfs/Galaxy_500GB_xfs.tar.gz">http://daxxi.net/xfs/Galaxy_500GB_xfs.tar.gz</a><br>
user: xfs , p/w: xfs<br>
(please only d/l if 2x240MB metadumps will be meaningful to you)<br>
<br>
<br>
Environment:<br>
Linux K-Matrix 3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:49:42
UTC 2012 i686 athlon i386 GNU/Linux<br>
<br>
<br>
Dave<br>
<br>
</body>
</html>