ramfs
ram filesystem can be created under Mac OS X as follows:
# hdid -nomount ram://1024 /dev/disk3he above command creates a ram disk with 1024 sectors (sector size being 512), and prints the name of the resultant device on the standard output. Thereafter, a filesystem can be created on this device (the corresponding raw device, technically) as follows:
# newfs_msdos /dev/rdisk3 /dev/rdisk3: 985 sectors in 985 FAT12 clusters \ (512 bytes/cluster) \ bps=512 spc=1 res=1 nft=2 rde=512 sec=1024 mid=0xf0 \ spf=3 spt=32 hds=16 hid=0he disk can be mounted as usual:
# mount -t msdos /dev/disk3 /tmp/msdos # mount /dev/disk3 on /private/tmp/msdos (local) # df /tmp/msdos Filesystem 512-blocks Used Avail Capacity Mounted on /dev/disk3 987 2 985 0% /private/tmp/msdosinally, you can get rid of the ram disk as follows:
# hdiutil detach /dev/disk3 "disk3" unmounted. "disk3" ejected.
'맥 > MacOSX' 카테고리의 다른 글
[REVIEW] AppCleaner , 응용프로그램등의 삭제 (0) | 2007.11.28 |
---|---|
[TIP] 특정응용프로그램에 메뉴바 와 DOCK 자동 숨김모드 적용하기 (0) | 2007.11.27 |
[TIP] 스팟라이트 - spotlight 검색 (0) | 2007.11.22 |
윈도에서 한영전환키 변경 (SHIFT + SPACE로 바꾸기) (0) | 2007.08.30 |
Leopard 9A466 #2 , Front row (0) | 2007.07.09 |