Advertisement
Guest User

Untitled

a guest
Jun 6th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. root@lighthouse:~# fdisk /dev/sdc
  2. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  3. Building a new DOS disklabel with disk identifier 0x483e6418.
  4. Changes will remain in memory only, until you decide to write them.
  5. After that, of course, the previous content won't be recoverable.
  6.  
  7. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  8.  
  9. Command (m for help): n
  10. Partition type:
  11. p primary (0 primary, 0 extended, 4 free)
  12. e extended
  13. Select (default p):
  14. Using default response p
  15. Partition number (1-4, default 1):
  16. Using default value 1
  17. First sector (2048-61288447, default 2048):
  18. Using default value 2048
  19. Last sector, +sectors or +size{K,M,G} (2048-61288447, default 61288447):
  20. Using default value 61288447
  21.  
  22. Command (m for help): w
  23. The partition table has been altered!
  24.  
  25. Calling ioctl() to re-read partition table.
  26. Syncing disks.
  27. root@lighthouse:~# lvm pvcreate /dev/sdc1
  28. Physical volume "/dev/sdc1" successfully created
  29. root@lighthouse:~# lvm vgcreate usbz /dev/sdc1
  30. Volume group "usbz" successfully created
  31. root@lighthouse:~# lvm lvcreate -l 100%FREE -n zebra usbz
  32. Logical volume "zebra" created
  33. root@lighthouse:~# mke2fs -t ext4 -O ^has_journal -m 0 /dev/mapper/usbz-zebra
  34. mke2fs 1.42.8 (20-Jun-2013)
  35. Filesystem label=
  36. OS type: Linux
  37. Block size=4096 (log=2)
  38. Fragment size=4096 (log=2)
  39. Stride=0 blocks, Stripe width=0 blocks
  40. 1916928 inodes, 7660544 blocks
  41. 0 blocks (0.00%) reserved for the super user
  42. First data block=0
  43. Maximum filesystem blocks=0
  44. 234 block groups
  45. 32768 blocks per group, 32768 fragments per group
  46. 8192 inodes per group
  47. Superblock backups stored on blocks:
  48. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
  49. 4096000
  50.  
  51. Allocating group tables: done
  52. Writing inode tables: done
  53. Writing superblocks and filesystem accounting information: done
  54.  
  55. root@lighthouse:~# mount /dev/mapper/usbz-zebra /media/zebra/
  56. root@lighthouse:/media/zebra# dd if=/dev/zero of=Zeros bs=1M count=16
  57. 16+0 records in
  58. 16+0 records out
  59. 16777216 bytes (17 MB) copied, 0.104935 s, 160 MB/s
  60. root@lighthouse:/media/zebra# lvm lvcreate --snapshot -n snap1 usbz/zebra
  61. Please specify either size or extents with snapshots.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement