- 论坛徽章:
- 0
|
Sometimes the RAM file system offered during recovery is very small (e.g. 8MB). To have a
more comfortable environment it is often useful to enlarge that RAM file system. With more
space we are able to hold more commands in memory instead of freqently removing and
(re)loading files with rm and loadfile. This procedure extends the space to 32 MB.
# bdf
Filesystem kbytes used avail %cap iused ifree iused Mounted on
/ 8532 6555 1977 77% 273 2607 9% ?
# loadfile mkfs tar chroot
# mknod /dev/ram b 9 0x180000
^^^^ 0x8000 KB == 32 MB
# mknod /dev/rram c 9 0x180000
# mkfs /dev/rram
mkfs (hfs): /dev/rram - 32768 sectors in 64 cylinders of 16 tracks, 32 sectors
33.6Mb in 4 cyl groups (16 c/g, 8.39Mb/g, 1280 i/g)
Super block backups (for fsck -b) at:
16, 8240, 16464, 24688
# mkdir /space; mount /dev/ram /space
# cd /; tar cvf /space/tmp.tar .
# cd /space; tar xvf tmp.tar
# unset ENV; chroot /space /sbin/sh
# rm tmp.tar space/tmp.tar
# bdf
Filesystem kbytes used avail %cap iused ifree iused Mounted on
/ 32040 13433 15403 47% 282 4838 6% ?
问问大家RAM file system 是一个什么文件系统啊 |
|