ted jen abych te neosidil jsem to zkusil u sebe .. vytvoril jsem si disk formatovanej pomoci gpt ..
# fdisk -l /dev/loop0
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/loop0: 134 MB, 134217728 bytes, 262144 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 51199 24M Linux filesyste Linux filesystem
2 51200 262110 103M Linux LVM Linux LVM
# gdisk -l /dev/loop0
GPT fdisk (gdisk) version 0.8.7
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/loop0: 262144 sectors, 128.0 MiB
Logical sector size: 512 bytes
Disk identifier (GUID): 43645AA2-A756-4FE2-B355-ED8D47073CDA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 262110
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 51199 24.0 MiB 8300 Linux filesystem
2 51200 262110 103.0 MiB 8E00 Linux LVM
a nem si udelal v prvnim oddilu ntfs a ve druhem oddilu lvm a v nem jeden oddil "test" .. oba jsem pripojil:
# mount | grep loop
/dev/mapper/loopy-test on /mnt/tmp type ext4 (rw,relatime,data=ordered)
/dev/mapper/loop0p1 on /mnt/iso2 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
nevim proc to u tebe nefunguje .. me normalne blkid vypisuje i ten samotnej raw disk (u me /dev/loop0 alias /dev/sdb u tebe, nenech se mast nulou na konci u me)
# blkid | grep loop
/dev/loop0: PTTYPE="gpt"
/dev/mapper/loop0p1: LABEL="ntfs test" UUID="6FB57F6A2E566629" TYPE="ntfs" PARTLABEL="Linux filesystem" PARTUUID="77065763-5b8e-479b-9d06-d95fcd55d159"
/dev/mapper/loop0p2: UUID="4luhwz-llX9-vcxB-Tcr6-jiJO-1qi6-M98YwR" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="c98d8b36-6e51-42fa-a42c-7a6791fde710"
/dev/mapper/loopy-test: UUID="74720107-12f7-41f2-b996-2184e6976085" TYPE="ext4"
zkus sem dat prosim vystup z:
kpartx -vl /dev/sdb