Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.06 KB | None | 0 0
  1. $ dd if=/dev/zero of=/tmp/20Gfile bs=1G count=20
  2. 20+0 records in
  3. 20+0 records out
  4. 21474836480 bytes (21 GB) copied, 167.761 s, 128 MB/s
  5. $ mkfs.ext2 /tmp/20Gfile
  6. mke2fs 1.42.9 (4-Feb-2014)
  7. /tmp/20Gfile is not a block special device.
  8. Proceed anyway? (y,n) y
  9. Discarding device blocks: done
  10. Filesystem label=
  11. OS type: Linux
  12. Block size=4096 (log=2)
  13. Fragment size=4096 (log=2)
  14. Stride=0 blocks, Stripe width=0 blocks
  15. 1310720 inodes, 5242880 blocks
  16. 262144 blocks (5.00%) reserved for the super user
  17. First data block=0
  18. Maximum filesystem blocks=4294967296
  19. 160 block groups
  20. 32768 blocks per group, 32768 fragments per group
  21. 8192 inodes per group
  22. Superblock backups stored on blocks:
  23.         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
  24.         4096000
  25.  
  26. Allocating group tables: done
  27. Writing inode tables: done
  28. Writing superblocks and filesystem accounting information: done
  29.  
  30. $ sudo mount -o loop /tmp/20Gfile /mnt/loop1
  31. $ df -h /mnt/loop1
  32. Filesystem      Size  Used Avail Use% Mounted on
  33. /dev/loop0       20G   44M   19G   1% /mnt/loop1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement