当前位置:网站首页>Create and mount large files

Create and mount large files

2022-06-24 02:35:00 buiu

  1. Create large files , Create mount directory

dd if=/dev/null of=/home/ck/try_mk_big_file bs=1M count=512

mkdir /home/ck/mount_big_file_dir

  1. Format large files

mkfs.ext4 /home/ck/try_mk_big_file

blkid /home/ck/try_mk_big_file You can see UUID

  1. mount

mount -o loop /home/ck/try_mk_big_file /home/ck/mount_big_file_dir

You don't have to add -o loop Parameters , vfs It should automatically recognize

Through this method , It can achieve the effect similar to hard disk partition , When the number of disk partitions is not enough, it can be used as a backup , Very easy to use

The big file that comes out of this , In format as loop File exists

原网站

版权声明
本文为[buiu]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/10/20211028130646999v.html