아놔…..이런 바보같은..

 하드를 통째로 날려버렸다. 바보같이..

 지난 2년동안 고이 작성해둔 나의 레포트들과 습작자료들이 다 날아갔다…

 다행이 몇개는 서버와 Sourceforge.net 에 붙어있긴 하지만..그래도 나머지 자료들이 싹 날아갔으니..

 처음부터 다시 시작하는 마음으로 해야겠다.

 …정말 아깝다. 눈물이 나올려고 하네…

The superblock could not be read or does not describe a correct ext2

 The superblock could not be read or does not describe a correct ext2

 …. 동아리 FTP 서버에서 리부팅 후  정상적인 접속이 안되서 콘솔을 확인해본결과….위의 메시지를 확인해 볼수 있었다..

 정확히는 다음의 메시지였다.

Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) — /] fsck.ext3 -a /dev/hdd1
fsck.ext3: No such file or directory while trying to open /dev/hdd1
/dev/hdd1:
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

 무엇이 문제일까…

 다음의 방법으로 해결을 했다.

 컴퓨터의 전원을 내리고 부팅을 했을경우, (shutdown -r 이 아니라, shutdown -h 명령어로 전원을 끈 다음, 다시 부팅) 정상적으로 파일 시스템의 마운팅이 이루어졌다.

 이때, /dev/hdd1 의 UUID 를 알아내어 /etc/fstab 의 파일내용을 볼륨을 적는 부분을 UUID로 바꾸어 주었다.

 그랬더니 정상적으로 다음부터는 정상적으로 부팅이 이루어졌다.

 결국 해결하긴 했지만…아무래도 기분이 찝찝하다.

 만약….루트 파일시스템이 있는 파티션이 마운트가 안된다면?? 생각만해도 끔찍하다…

리눅스에서의 시스템 시관과 바이오스 시간 맞추기…

 다음의 설정대로 하면 된다.

 /etc/adjtime 지우고 rdate 또는 ntpdate로 시간을 새로 받은 다음 바이오스 시간을 시스템 시간으로 바꾸면 된다.

# rdate -s time.kriss.re.kr 혹은 # ntpdate time.kriss.re.kr
# rm -f /etc/adjtime
# rm -f /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# hwclock -w

—- 데비안의 경우, 다음은 필요하지 않다.

# cat /etc/conf.d/clock
CLOCK=”local”
TIMEZONE=””
CLOCK_SYSTOHC=”yes”
SRM=”no”
ARC=”no”

# reboot