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

相关文章:

  • 2022-01-03
  • 2021-11-16
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-01-04
  • 2021-06-12
  • 2021-11-17
  • 2021-06-28
相关资源
相似解决方案