20.9.内存盘
device md20.9.1. 附加和分离现有镜像
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt# umount /mnt
# mdconfig -d -u 020.9.2. 创建文件或内存支持的内存磁盘
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
/dev/md1: 5.0MB (10240 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 1.27MB, 81 blks, 192 inodes.
with soft updates
super-block backups (for fsck -b #) at:
160, 2752, 5344, 7936
# mount /dev/md1 /mnt
# df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/md1 4718 4 4338 0% /mnt最后更新于