Skip to content

Instantly share code, notes, and snippets.

Created March 12, 2017 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/46366d9eee2d8ff8e185f9959a528775 to your computer and use it in GitHub Desktop.
Save anonymous/46366d9eee2d8ff8e185f9959a528775 to your computer and use it in GitHub Desktop.
$ parted /dev/sda print
Model: APPLE SD Card Reader (scsi)
Disk /dev/sda: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 31.7GB 31.7GB
$ cryptsetup status lvm
/dev/mapper/lvm is active and is in use.
type: LUKS1
cipher: aes-xts-plain64
keysize: 256 bits
device: /dev/sda1
offset: 4096 sectors
size: 61956063 sectors
mode: read/write
$ pvdisplay
--- Physical volume ---
PV Name /dev/mapper/lvm
VG Name vg
PV Size 29.54 GiB / not usable 3.98 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 7562
Free PE 0
Allocated PE 7562
PV UUID dciazn-LBKi-52WH-WeO1-3gDU-Yy6d-damkD2
$ vgdisplay
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.54 GiB
PE Size 4.00 MiB
Total PE 7562
Alloc PE / Size 7562 / 29.54 GiB
Free PE / Size 0 / 0
VG UUID Jiur5s-g7qU-Vkfm-xCXN-5LWf-uqYD-vKyTwo
$ lvdisplay
--- Logical volume ---
LV Path /dev/vg/boot
LV Name boot
VG Name vg
LV UUID 944x7g-0mDF-piV3-2gG4-Ouzz-6yBR-giAeaA
LV Write Access read/write
LV Creation host, time nixos, 2017-03-11 23:33:09 +0000
LV Status available
# open 0
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/vg/root
LV Name root
VG Name vg
LV UUID 1briPM-HaB3-0meK-wQgZ-eEy7-cX6p-V7vmK1
LV Write Access read/write
LV Creation host, time nixos, 2017-03-11 23:33:41 +0000
LV Status available
# open 1
LV Size 28.54 GiB
Current LE 7306
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
$ mount | grep vg
/dev/mapper/vg-root on /mnt type ext4 (rw,relatime,data=ordered)
updating GRUB 2 menu...
installing the GRUB 2 boot loader on /dev/sda...
Installing for i386-pc platform.
You have a memory leak (not released memory pool):
[0x8d5350] dtree
[0x8d4d70] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d5350] dtree
[0x8d4d70] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d5350] dtree
[0x8d4d70] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d5350] dtree
[0x8d4d70] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d4e50] dtree
[0x8d74f0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d4e50] dtree
[0x8d74f0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d4e50] dtree
[0x8d74f0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d8060] dtree
[0xb82950] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d8060] dtree
[0xb82950] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
[0x8d8060] dtree
[0xb82950] dtree
Internal error: Unreleased memory pool(s) found.
/nix/store/5kymdi4b6yrskx0569zw7xj69bcy4ryq-grub-2.x-2015-11-16/sbin/grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
/nix/store/5kymdi4b6yrskx0569zw7xj69bcy4ryq-grub-2.x-2015-11-16/sbin/grub-install: error: embedding is not possible, but this is required for RAID and LVM install.
/nix/store/jsjq388zm25mrq0d3r8djv9xgssvhjcl-install-grub.pl: installation of GRUB on /dev/sda failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment