본문 바로가기
3. 개발 관련/정리 :: issue 와 resovle

ramdisk make :)

by kyuho.choi 2012. 7. 25.
728x90
반응형


(0) prepare rootfilesystem eg.smallroot

(1) Make 24MB Image for ramdisk image 

   sudo dd if=/dev/zero of=./ramdisk bs=1024 count=24000

(2) Filesystem format for ramdisk image

   sudo mke2fs ./ramdisk

(3) Make mount point

  sudo mkdir aa

  sudo mount -o loop ramdisk ./aa

  sudo cp -a smallroot/* ./aa/

  sudo sync

  sudo gzip ramdisk


quite simple :)

728x90
반응형

댓글