linux-apfs / linux-apfs-rw

APFS module for linux, with experimental write support
GNU General Public License v2.0
532 stars 35 forks source link

Any method to list the APFS volumes with their labels #69

Open AdityaGarg8 opened 4 months ago

AdityaGarg8 commented 4 months ago

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

AdityaGarg8 commented 4 months ago

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

eafer commented 4 months ago

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 commented 1 month ago

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.

AdityaGarg8 commented 1 month ago

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.

eafer commented 1 month ago

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.

AdityaGarg8 commented 1 month ago

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!