linux-apfs-rw icon indicating copy to clipboard operation
linux-apfs-rw copied to clipboard

Any method to list the APFS volumes with their labels

Open AdityaGarg8 opened this issue 1 year ago • 6 comments

I have an APFS container with many volumes. Is there any command I can use to list the volumes with their names?

AdityaGarg8 avatar Jun 11 '24 12:06 AdityaGarg8

Or is there any way I can mount a volume by its LABEL instead of volume number

AdityaGarg8 avatar Jun 11 '24 12:06 AdityaGarg8

Neither are implemented so far. The second would probably be much easier. I'll look into it as soon as I have the time.

eafer avatar Jun 11 '24 17:06 eafer

I'm looking into this now, and mounting by label is actually impossible because apple allows multiple volumes to share the same label. I guess I could write a tool to list the labels.

eafer avatar Sep 10 '24 23:09 eafer

I'm looking into this now, and mounting by label is actually impossible because apple allows multiple volumes to share the same label. I guess I could write a tool to list the labels.

LGTM. Maybe we could also make the file managers display the label being mounted as well.

AdityaGarg8 avatar Sep 11 '24 03:09 AdityaGarg8

Hey I just pushed a tool to list labels, when you can please try it out and let me know if it helps. As for the file managers, I'm not completely sure how they get the label information, but I think it requires filesystem-specific plugins for udisks.

eafer avatar Sep 27 '24 21:09 eafer

Hey I just pushed a tool to list labels, when you can please try it out and let me know if it helps. As for the file managers, I'm not completely sure how they get the label information, but I think it requires filesystem-specific plugins for udisks.

I'll check it out when I get free. Thanks!

AdityaGarg8 avatar Sep 28 '24 03:09 AdityaGarg8

I made a release for apfsprogs a few days ago that has this tool you requested. I guess I'll close this now, feel free to reopen if it doesn't work for you.

eafer avatar Nov 08 '24 16:11 eafer