HDD는 항상 붙어 있기때문에 /etc/fstab에 설정한 후 그냥 씁니다.
그러나 USB나 CD-ROM은 삽입할 경우 자동마운트가 되게 해야 할탠데 /etc폴더
아래 /hot-plug/usb를 손보면 되는걸로 알고 있었지만 폴더가 없습니다.
분명 컴파일전 모듈 추가를 했는데도요.
이거 느낌은 package가 다른 방식으로 automount를 하는것 같은데 잘 모르겠네요.
당연히 수동 마운트는 되고요.
여담이지만 2주전엔가 포도밭 그 사나이라는 드라마를 주말에 봤는데 재밌더군요.
그런데 저는 1-2회로 알고 봤던것이 중간회쯤이고 벌써 종영 됬더군요.
내용은 그저 그런데 남자 주인공이 참 구수한 맛이 있는게 참 인상적이더군요.
주인공이 사랑을 고백하는 장면이 있는데 커피를 타오더군요. 제발 아! 뜨거! 라는 대사만은 나오지 마라 하고 생각하던 찰라 주인공의 한마디
"자만 내 코피쫌 마시고! 아! 뜨! 아! 뜨!"
ㅎㅎ
이번 주말에 좀 찾아 봐야 겠습니다.
즐거운 주말들 보내세요.
2.6 커널에 대해서만 말씀드리면, mass를 삽입하면 usb, scsi, block 세가지 종류의 hotplug 메세지가 발생합니다.
그것은 /sbin/hotplug 란 실행파일을 돌리게 되어 있고, /sbin/hotplug는 /etc/hotplug.d/default/* 파일을 실행시키게 됩니다.
그런 후 /etc/hotplug.d/default/* 파일 중 하나가 /etc/hotplug/* 파일을 참조하면서 왕창 프로세싱한 후 사용자가 지정한 명령을 디바이스의 종류에 따라 실행시키게 됩니다.
제가 embedded해서 해 봤으나....장난아니게 복잡하더군요...^^
제일 마지막 단계서 Fedora core나 다른 패키지 본에서는 사용자가
지정한 명령을 다른 방식으로 동작시킵니다.
/etc/hotplug.d/default/* 를 동작시킬때 hal daemon이란 넘한테
메세지 발생하도록 만든 후 d-bus란 넘을 이용해서 gnome의 해당 데시크탑 메니저로 이벤트를 발생시켜서 자동마운트하도록 만듭니다.
gnome이나 kde 둘 다 해당 hal daemon과 d-bus에 대응해서 hotplug 이벤트 발생시 자동으로 동작시켜주는 daemon 프로그램이 있습니다.
절라 복잡하죠?.......^^
참고로 저는 /sbin/hotplug에서 주로 손을 봅니다....ㅎㅎ