Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about ability to vary the mount point name? #19

Open
gtackett opened this issue Oct 26, 2022 · 7 comments
Open

How about ability to vary the mount point name? #19

gtackett opened this issue Oct 26, 2022 · 7 comments

Comments

@gtackett
Copy link

It would really be handy to be able to specify a mount point name and/or to generate a default mount point name based on the device, for example, EFI on disk0s1 would be mounted as /Volumes/EFIdisk0s1 or similar.

This would make it much easier to distinguish between multiple EFI's mounted from different devices.

Is this a reasonable thing to do, or does it not make sense? (I don't know much about how EFI partitions work.)

@corpnewt
Copy link
Owner

You know - I might be able to do that. I could have an option for it to prompt for the name when mounting. I still think I'll have it default to the "standard" /Volumes mount location - but let the user specify a name. I'll see if I can whip up some code for that quick.

-CorpNewt

@gtackett
Copy link
Author

gtackett commented Oct 26, 2022 via email

@gtackett
Copy link
Author

gtackett commented Oct 26, 2022 via email

@corpnewt
Copy link
Owner

Hmmm - in just testing using sudo diskutil mount -mountPoint /Volumes/whatever diskXsY in terminal - it seems the volume name doesn't change - just the actual mount point. I suppose that makes sense though, as mounting multiple EFI partitions still shows them all as EFI in the Finder, even though all after the first are mounted at /Volumes/EFI N where N is an incremented number starting with 1.

So - while I could implement some code asking you for a specific mount point - you wouldn't see that reflected in the volume name at all. Pretty sure that defeats the purpose, unfortunately.

-CorpNewt

@gtackett
Copy link
Author

gtackett commented Oct 26, 2022 via email

@gtackett
Copy link
Author

gtackett commented Oct 26, 2022

I found this on stackexchange but haven't tried it myself, and I don't know if there are any other side effects of bless that might not be desirable for merely changing the name of a volume.

The goal of the person who asked this question was to be able to mount an EFI and make its volume label to be windows.
Assuming the EFI volume is labeled EFI, then the command below would change the label to Windows.


bless --folder /Volumes/EFI/efi/boot --label "Windows"

This command creates the two hidden files given below.

.disk_label
.disk_label_2x

Afterwards, the command given below can unmount the EFI partition.

diskutil unmount disk2s1

Maybe just creating the two hidden files would do the trick, perhaps avoiding anything undesired that bless might do.

@porg
Copy link

porg commented May 12, 2024

How to differentiate simultaneously mounted EFI partitions of different attached storage media

  1. On the root of each EFI partition I put an informative folder you are on <Storage-Identifier-Here>:
    • "y" is very late in the alphabet
    • plus in ASCII the lowercase letters come after uppercase letters
    • so it is quite always on the bottom, and hence
      • not interfering when glancing at it
      • and very likely also not interfering in the boot procedures
  2. In Finder when using icons the EFI partitions of the different storage media show different icons depending on their type
    • Internal Storage
    • External Storage
    • SD Card
Mounting EFI volumes simultaneously from Internal-SSD SD-Card External-HDD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants