Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. 4096 0.file
  2. 4096 1.file
  3. 4096 2.file
  4. 4096 3.file
  5. 4096 4.file
  6. 20480 big.file
  7.  
  8. dd if=/dev/zero of=0.file bs=1024k count=4
  9. losetup /dev/loop0 0.file
  10. pvcreate /dev/loop0
  11. # … repeat for all parts …
  12. vgcreate -s 1m foo /dev/loop0 /dev/loop1 …
  13. lvcreate -l 19 -n big foo
  14. mkfs.btrfs /dev/mapper/foo-big
  15.  
  16. # Create MosaicFS disk image
  17. # (the individual tile files will be stored in the directory 'disk.img')
  18. mosaicfs create --number 76800 --size 4M disk.img
  19.  
  20. # Mount disk image
  21. # (the virtual image is mounted as 'myimage' with a size of 300 GB)
  22. mosaicfs mount disk.img myimage
  23.  
  24. # Create file system
  25. mkfs.ext4 myimage
  26.  
  27. # Mount it
  28. mkdir -p /media/mydrive
  29. mount -o loop myimage /media/mydrive
  30.  
  31. # Unmount everything
  32. umount /media/mydrive
  33. fusermount -u myimage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement