안녕하세요. 거의 포기 상태였습니다.
그냥 포맷다시하고 깔까 생각했지만 너무 자료가 아까워서요...
물론 말씀하신것도 해봤었거든요.
e2fsck -d 8139 /dev/hda7 이런식이요.
그래서 나두 해봤는데 하면 끌까 하다가 적어주신 메뉴얼을 봤습니다.
한데 16384, 32768 도 된다는것을 확인하고 안되봐야 본전이다고 생각하고는
e2fsck -d 16384 /dev/hda7 를 해봤습니다. 흐흐 역시 안되군요.
이제 완전 포기 하고 포맷할려고 했는데...
그래도 한번 32768까지 하고 싶은 마음이 ^^:
e2fsck -d 32768 /dev/hda7 하니 되더군요.
덕분에 복구가 되었습니다.
약 0.5%정도가 깨져서 복구가 안됐고, 이름도 다 봐뀌었지만
아 바뀐이름은 다행이 첫디렉토리였습니다.
덕분에 디렉토리 안은 파일들이 모두 정상적으로 살아 있더군요.
자료는 99%이상 복구 시켰습니다.
근데 문제가 파일이 깨져버린것중에 xxx.htm이라는 파일이
크기가 1기가가 되어 있고 umask와 소유자가 다 엉망이되어 있더군요
강제 지우기 rm -f xxx.htm 이라고 했는데도 안지워 지더군요.
물론 ROOT로 지워서요. 이런건 어떻게 지워야 할까요.
혹시 아시는분?
어쨋든 저에게 도움을 주신것에 대해 매우 감사드립니다 .ㅠㅠ
만나는 사이였다면 식사라도 한끼 대접해 드릴텐데 ^^;
그럼 수고하세요.
: NAME
: e2fsck - check a Linux second extended file system
:
: SYNOPSIS
: e2fsck [ -pacnyrdfvstFSV ] [ -b superblock ] [ -B blocksize ] [ -l|-L bad_blocks_file ] [ -C fd ] [ -j exte
rnal-journal ] device :
: DESCRIPTION
: e2fsck is used to check a Linux second extended file system (e2fs). E2fsck also supports ext2 filesystems
countaining a journal, which are also : sometimes known as ext3 filesystems.
:
: device is the device file where the filesystem is stored (e.g. /dev/hdc1).
:
: OPTIONS
: -a This option does the same thing as the -p option. It is provided for backwards compatibility onl
y; it is suggested that people use -p : option whenever possible.
:
: -b superblock
: Instead of using the normal superblock, use an alternative superblock specified by superb
lock. This option is normally used when the : primary superblock has been corrupted. The locati
on of the backup superblock is dependent on the filesystem's blocksize. For filesys- : tems
with 1k blocksizes, a backup superblock can be found at block 8193; for filesystems with 2k blocksizes, at block 16384
; and for 4k : blocksizes, at block 32768. :
: Additional backup superblocks can be determined by using the mke2fs program using the -n option t
o print out where the superblocks were : created. The -b option to mke2fs, which specifi
es blocksize of the filesystem must be specified in order for the superblock locations : that are p
rinted out to be accurate. :
: If an alternative superblock is specified and the filesystem is not opened read-only, e2fsck will
make sure that the primary superblock : is updated appropriately upon completion of the filesy
stem check. :
: 이건 man e2fsck 를 하면 나오는 내용입니다.
: mkfs 를 하실때 보면 슈퍼블럭 위치가 몇개 써지는데요
: 제생각에 (위에도 있듯이) alternative superblock 이라는게 있습니다.
: 슈퍼블럭을 백업한거죠.
:
: 1K 블럭사이즈 하드는 8193에 또다른 슈퍼블럭이 존재한다고 하네요.
: 보통 1K 블럭 사이즈를 사용하니깐 아마 8193에 다른게 하나 있을 듯 하네요
: 이걸 한번 참고해 보세요.
:
: 결과는 저도 해본적 없어서 모르겠네요.
: 가능하다면 결과좀 알려주세요 ^^ (결과가 궁금해서)
: 그럼 성공하시길 ^^