|
I am making 一个文件 to 直接限定一个user home目录的大小, as advised by Kevin in one posting. It works fine, but my question is how to make this change permanent?
Steps:
1. . dd if=/dev/zero of=/tmp/texthd1 bs=1024 count=102400
这样你就有了100M的文件.
2.mkfs.ext3 /tmp/texthd1
这样你就有了一个100M的ext3的分区
3.mount -o loop /tmp/texthd1 /home/user1
这样你就有了一个大小为100M的用户空间(实际因为有日志系统和Superblock的原故
会小一点)
Great! But after reboot, the setting is gone and you need to run the mount command again....
I tried to edit /etc/fstab as:
/tmp/texthd1 /home/user1 ext3 defaults 1 2
but failed....my machine even crashed and can't boot up......
Any clue....thanks a lot..... |
|