Skip to contentSkip to conversation

How to list partitions, which have the LVMs part. type

linux-lvm Fabian Herschel 1 participant 1 message Dec 10, 1999

lore
Share & tools
lore
#0 lore raw

Only a very simple solution to list partitions, which can be used for lvm:

fdisk -l | awk '$5 ~ /8[Ee]/ { print $1 }'

Greetings
Fabian Herschel

Signature · 5 lines
-----------------------------------------------------------------------
Fabian Herschel                                 SuSE Rhein/Main AG     
Tel:    +49-6196-50951-23                       Mergenthalerallee 45-47
Fax:    +49-6196-409-607                        D-65760 Eschborn
mailto: [email protected]                 http://www.suse.de