How to create a size-limited file-system

简介:

How to create a size-limited file-system?(loopback device)
1) dd if=/dev/zero of=/h/data/file.img bs=1k count=100000 # ~100M
2) su root
3) losetup /dev/loop1 /h/data/file.img
4) mkfs -t ext3 /dev/loop1 100000
5) mkdir /mnt/small
6) mount -t ext3 /dev/loop1 /mnt/small
7) chown tachyon:tachyon /mnt/small

Please refer to command: losetup, mount



本文转自 zhenjing 博客园博客,原文链接:http://www.cnblogs.com/zhenjing/archive/2011/01/18/loopback.html   ,如需转载请自行联系原作者

相关文章
|
4月前
|
Docker 容器
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
MGA (Managed Global Area) Reference Note (Doc ID 2638904.1)
MGA (Managed Global Area) Reference Note (Doc ID 2638904.1)
340 0
|
SQL 关系型数据库
ORA-1652: unable to extend temp segment by 128 in tablespace xxx Troubleshootin
当收到告警信息ORA-01652: unable to extend temp segment by 128 in tablespace xxxx 时,如何Troubleshooting ORA-1652这样的问题呢? 当然一般xxx是临时表空间,也有可能是用户表空间。
2115 0
|
JavaScript 前端开发 Shell
|
JavaScript 前端开发 Shell
|
Oracle 关系型数据库 Linux