Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@lighthouse:~# fdisk /dev/sdc
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x483e6418.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): n
- Partition type:
- p primary (0 primary, 0 extended, 4 free)
- e extended
- Select (default p):
- Using default response p
- Partition number (1-4, default 1):
- Using default value 1
- First sector (2048-61288447, default 2048):
- Using default value 2048
- Last sector, +sectors or +size{K,M,G} (2048-61288447, default 61288447):
- Using default value 61288447
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- root@lighthouse:~# lvm pvcreate /dev/sdc1
- Physical volume "/dev/sdc1" successfully created
- root@lighthouse:~# lvm vgcreate usbz /dev/sdc1
- Volume group "usbz" successfully created
- root@lighthouse:~# lvm lvcreate -l 100%FREE -n zebra usbz
- Logical volume "zebra" created
- root@lighthouse:~# mke2fs -t ext4 -O ^has_journal -m 0 /dev/mapper/usbz-zebra
- mke2fs 1.42.8 (20-Jun-2013)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=0 blocks, Stripe width=0 blocks
- 1916928 inodes, 7660544 blocks
- 0 blocks (0.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=0
- 234 block groups
- 32768 blocks per group, 32768 fragments per group
- 8192 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000
- Allocating group tables: done
- Writing inode tables: done
- Writing superblocks and filesystem accounting information: done
- root@lighthouse:~# mount /dev/mapper/usbz-zebra /media/zebra/
- root@lighthouse:/media/zebra# dd if=/dev/zero of=Zeros bs=1M count=16
- 16+0 records in
- 16+0 records out
- 16777216 bytes (17 MB) copied, 0.104935 s, 160 MB/s
- root@lighthouse:/media/zebra# lvm lvcreate --snapshot -n snap1 usbz/zebra
- Please specify either size or extents with snapshots.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement