[[Ramdisk on Linux (Open) ]]

/dev/shm is flexible-sized ram disk

Fedora has the size changeable ramdisk /dev/shm. By mounting, we can use this device at the fast speed.

$ su
# mount -t tmpfs -o size=128m tmpfs /dev/shm
# ln -s /dev/shm ramdisk

/dev/ramdisk is fixed size ramdisk.

$ su

# mke2fs /dev/ramdisk

# mkdir /mnt/ramdisk

# mount -t ext2 /dev/ramdisk /mnt/ramdisk

# df -h

mke2fs /dev/ramdisk noblock (= number of block) can specify the size.


Front page   Edit Freeze Diff Backup Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2009-05-11 (Mon) 22:31:46