마운트한 상태에서 fsck.ext3 를 실행한 파일시스템에러
글쓴이: 웃는 남자 / 작성시간: 수, 2003/09/17 - 3:47오전
정전으로 인해 서버가 꺼져서 다시 켜고 나서 fsck.ext3를 실행했습니다.
파일시스템은 ext3입니다.
[root@lumi root]# fsck.ext3 /dev/hda3 e2fsck 1.27 (8-Mar-2002) /dev/hda3 is mounted. WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?yes
를 해버리고 말았습니다 . 실행직후 콘솔에서 뭔가 계속 스크롤되면서
키보드입력도 안먹히고 리붓버튼을 눌렀구요. :cry:
그다음부팅에서 kernel panic : VFS ... 라는 에러가 나면서 더이상
부팅이 되질 않더군요.
전원을 내린후 하드를 떼서 다른 리눅스박스에 연결한뒤
[root@Nemesis root]#fsck.ext3 /dev/hdd3
fix? clear? 등에 한참동안 y키를 눌러주고 난뒤 다시 마운트를 해보니
[root@Nemesis root]# mount -t ext3 /dev/hdd3 /mnt/other mount: wrong fs type, bad option, bad superblock on /dev/hdd3, or too many mounted file systems [root@Nemesis root]# mount /dev/hdd3 /mnt/other/ [root@Nemesis root]# cd /mnt/other/ [root@Nemesis other]# cd lost+found/ [root@Nemesis lost+found]# ls
ext3로는 마운트가 안되고 ext2 로는 마운트가 되었습니다.
lost+found 디렉토리 안에 9만여개의 inode 숫자들로 채워져 있구요.
superblock 이 문제인것 같아서
[root@Nemesis lost+found]# cd [root@Nemesis root]# umount /mnt/other/ [root@Nemesis root]# fsck.ext3 -b 8139 /dev/hdd3 e2fsck 1.27 (8-Mar-2002) fsck.ext3: Bad magic number in super-block while trying to open /dev/hdd3 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> [root@Nemesis root]# fsck.ext3 -b 32768 /dev/hdd3 e2fsck 1.27 (8-Mar-2002) / was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /: ***** FILE SYSTEM WAS MODIFIED ***** /: 106710/794976 files (0.9% non-contiguous), 1204013/1588426 blocks
하고 난뒤 다시 마운트해보아도 ext3로는 마운트가 안됩니다.
마운트된상태에서 fsck.ext3 를 실행하는 바람에 파일시스템을 날려버린것
버린것 같습니다.
어떻게 복구할수 있는 방법이 있는 지 알려주시면 감사드리겠습니다.
Forums:
댓글 달기