목록Linux (1)
컴맹의 CS study
ramfs, rootfs, initramfs
[1] 의 내용을 번역한 것. reference의 경우에는 ramfs, tmpfs, initramfs의 순서대로 설명되어 있지만 개인적으로는 거꾸로 읽는게 더 이해에 도움이 되었다. initramfs2.6 이상의 kernel은 rootfs로 extract되는 cpio format의 archive를 가짐그 archive 가 extract되서 rootfs가 나오면, 그 rootfs에 init 이라는 file이 있는지 찾는데, 찾으면 걔를 PID 1로 실행시킴찾으면: 그 init이 하는게, locating and mounting the real root device. 못찾으면, kernel은 old code를 보면서 root partition을 locate and mount하고, /sbin/init의 some..
reading
2017. 5. 20. 18:28