반응형
/etc/passwd를 잘못 수정하여 booting 안 되는 경우
■ 9.x에서 10.x로 update하여 사용하는 사용자가 가장 많이 범하는 실수는 root의 shell의 종류를 변경할 때
/sbin/sh 을 /bin/ksh로 변경하는 경우
■ 10.x 에서의 shell
/sbin/sh : static하게 link된 shell (/usr이 mount될 필요 없음)
/usr/bin/sh : POSIX shell
/usr/bin/ksh : Korn shell
/usr/bin/csh : C shell
/usr/old/bin/sh : Bourne shell
■ ISL mode로 booting하여 root volume group을 activation시킴
ISL> hpux -1m boot
. . .
# vgchange -a y /dev/vg00
# mount -a
# vi /etc/passwd
. . .
# umount -a
# sync; sync
# reboot -r
반응형