HDD를 바꿨습니다..그리고 Booting 중 질문이 생겼습니다..
그동안 IDE HDD를 사용하던 System에서,,HDD를 SATA로 교체했습니다.
그리고 나니 몇가지 문제가 있어서요 ..
grub/device.map을 수정하고
etc/fstab을 수정하고 나니,,
잘 동작을 하는 걸 확인했거든요..
그런데,,작업을 하면서,,혹시 또 다시 예전 IDE로 돌아갈 일이 생길 것도 같아서
둘다 지원할 수 있도록 해보려고 하는 중입니다.
일단 fstab에서 IDE를 쓸때는 /dev/hda로 잡히고,,SATA를 쓸때는 /dev/sda로 잡히는
문제를 해결해 보려고 LABEL을 쓰려고 시도하는 중입니다.
그러다 보니,,3군데를 수정했는데,,
첫번째가 fstab 입니다..
fstab에서 예전에 /dev/hda3 또는 /dev/sda3 으로 되어 있는 곳을 LABEL=/
과 같은 방법으로 수정하고요.
/dev/hda3이나 /dev/sda3을 format할 때 mkfs -L / 과 같이 LABEL을 정의해주었고요.
grub에서의 grub.conf에서도 예전의 root=/dev/hda3 또는 /dev/sda3을 root=LABEL=/과 같이 수정을 해주었는데요,
명시적으로 /dev/hda3 또는 /dev/sda3으로 사용할 때에는 문제가 없었는데,,
LABEL을 써서 몇 군데 수정한 후에는 다음과 같은 error가 보였습니다.
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda3
fsck.ext3: No such file or directory while trying to open /dev/hda3
/dev/hda3:
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
[FAILED]
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):
위의 Error는 SATA disk를 사용하는 System에서 발생한 건데요,,
어딘가에서 /dev/hda3으로 정보가 남아 있는 건가 하는 생각이 듭니다.
어떻게 쫓아가보기 시작하는 것이 좋을까요?
조언 부탁드립니다.~
댓글 달기