Skip to main content
10 events
when toggle format what by license comment
Jan 19, 2024 at 18:57 comment added got trolled too much this week @arielf: it's there on Ubuntu 18, but ext2 labels from dmsetup devices don't show by this method (nor by lsblk). They only show with e2label.
Feb 1, 2022 at 6:50 comment added arielf Answer is > 10 years old. Things have changed since? On my system (Ubuntu 20.04) there's no /dev/disk/by-label OTOH: there's /dev/disk/by-partlabel
Nov 8, 2021 at 17:52 comment added Scrooge McDuck On my system /dev/disk/by-label is unpopulated when the initramfs mounts root fs.
Jan 17, 2016 at 9:18 comment added chtenb For me, my swap partition and mounted partitions are not shown, but that may just be coincidence. Anyhow, sudo lsblk -o name,mountpoint,label,size,uuid worked for me.
Mar 4, 2015 at 14:04 history edited rubo77 CC BY-SA 3.0
show direct command to use
Jun 4, 2011 at 18:11 vote accept sdaau
Jun 1, 2011 at 17:25 history migrated from stackoverflow.com (revisions)
Mar 30, 2011 at 6:46 comment added sdaau Hi @Ilkka - thanks for your answer! Indeed, ls -la /dev/disk/by-label seems to show labels of unmounted partitions; so that solves my problem, I guess... Although, I really would have preferred an option for fdisk or parted instead :) Cheers!
Mar 30, 2011 at 6:43 comment added Ilkka At least on my machine, it is indeed only the filesystems with labels that get linked in there, as confirmed(?) by using Alan Kuras' mount -l suggestion.
Mar 30, 2011 at 6:37 history answered Ilkka CC BY-SA 2.5