怎样挂载tpmfs分区

笔记本/便携移动设备,手机平板等软硬件
回复
头像
cppking
帖子: 432
注册时间: 2009-09-23 13:35
来自: 中国大陆

怎样挂载tpmfs分区

#1

帖子 cppking » 2009-10-14 13:04

代码
~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 289G 20G 255G 7% /
tmpfs 956M 0 956M 0% /lib/init/rw
varrun 956M 232K 956M 1% /var/run
varlock 956M 0 956M 0% /var/lock
udev 956M 152K 956M 1% /dev
tmpfs 956M 84K 956M 1% /dev/shm
lrm 956M 2.2M 954M 1% /lib/modules/2.6.28-15-generic/volatile

为什么有两个tmpfs??
我的fstab

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=a2cc5c35-3bbe-4f2b-8a5f-a5b038b1bb4f / ext3 noatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=dbad46fe-108b-49c1-a959-409e4b8c8002 none swap sw 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0



请问怎样修改,才能开机自动挂载tmpfs分区,并显示在桌面上,
怎样将firefox的缓存放在tmpfs分区里面,这样就可以在浏览网页的时候不读写硬盘了。
知道的大大努力告诉一下阿,,别嫌问题太简单,懒得动手 :em09
原来,女生是要追的~~
头像
ljweb
帖子: 703
注册时间: 2008-04-09 13:27
联系:

Re: 怎样挂载tpmfs分区

#2

帖子 ljweb » 2009-10-14 15:32

应该是在fstab里改吧。
--------------------------------------------------
--------------------------------------------------
头像
cppking
帖子: 432
注册时间: 2009-09-23 13:35
来自: 中国大陆

Re: 怎样挂载tpmfs分区

#3

帖子 cppking » 2009-10-14 15:57

2楼真2
原来,女生是要追的~~
finsky
帖子: 1
注册时间: 2010-02-08 10:19

Re: 怎样挂载tpmfs分区

#4

帖子 finsky » 2010-02-08 10:28

自动挂载
/etc/fstab 里加上

代码: 全选

none    /ramdisk    tmpfs    default    0 0
=======
firfox 把缓存目录设为你挂载的目录,在地址栏里输入:about:config

右击添加string--browser.cache.disk.parent_directory
将值设为你挂载的目录(i.e. /ramdisk)
回复