linux-apfs / linux-apfs-rw

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

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

Open AdityaGarg8 opened 3 months ago

AdityaGarg8 commented 3 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 3 months ago

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

eafer commented 3 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 5 days 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 4 days 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.