[:en]How to Make Your Large Memory as A Hard Drive?[:en]怎么把你的大内存做硬盘用?

[:zh]电脑又加了一个内存条,现在一共1.5G,但是我现在用xubuntu又不到这么大的内存,偶然间看到了一些高人的设置,把我的内存作为临时文件存放地,又节省了硬盘空间,又充分利用了内存容量,真是爽啊。而且不用担心临时文件会变大影响内存性能,每次重启电脑内存空间都会重新加载的。

设置很简单:

用文本编辑器打开 fstab 文件,我用的 vim,

sudo vim /etc/fstab

加上下面这行:

tmpfs /tmp tmpfs defaults,mode=1777 0 0

保存后注销一次就大功告成!

有问题尽管留言或与我联系。

[:en]I bought a new memory for my laptop, now I have 1.5G memory, but my xubuntu can’t eat that much, so I’m thinking about how to use it. I found a very easy way that can use the memory as a hard drive. I can save my hard drive space and can make full use of my memory as well, that’s cool.

I don’t have to worry about the temperary files take so much space and make my computer slower. It will be cleaned up every time I restart my computer.

The settings are quite simple:

Choose your favourite text editor and edit the fstab file. I’m using vim.

sudo vim /etc/fstab

Add the following line into it:

tmpfs /tmp tmpfs defaults,mode=1777 0 0

And save, then restart X window, we are done.

If you have questions, please don’t hasitate to contact me, either write your comments here or fill in the conatct form under “Contact Me”.

Post a Comment

Your E-mail will never published nor shared. Notice that the required fields are marked *...

*

*

Type your comment out: