- Joined
- Nov 29, 2016
- Messages
- 82
- Motherboard
- Gigabyte GA-Z170X Gaming 7
- CPU
- Skylake i7 6700K 4.00 GHZ Unlocked
- Graphics
- Gigabyte GeForce GTX 970 Overclocked GDDR5 4 GB
- Mac
- Mobile Phone
For those that are interested i created a simple script that allows you to quickly identify and map your primary drive EFI volume. I am using this in conjunction with Chronosync to schedule regular backups of my EFI volume to another drive in case of primary drive failure.
Chronosync lets you execute a pre-script and a post-script. Those are the scripts i have attached.
But you should be a be able to adapt these to your own use.
efimount.sh - This uses various command line tools to identify the correct boot volume and mount that volumes EFI partition.
If anyone has ever used the EFI Mounter application, where it will ask you to select from a list of partition names. Like disk0s1, disk1s1, disk2s1 etc. What the script is doing is automatically identifying the right partition. I also added an application that people could use to replace EFI Mounter with, to take the guess work out of which one to select.
efimount.sh then uses diskutil to mount the EFI partition.
From that point you can use Chronosync, rsync or any tool to backup your EFI portion to another drive.
The last script efiunmount.sh simply unmounts the EFI partition.
both efimount.sh and efiunmount.sh will need to have the write permissions to be able to run. To do this you need to issue the following command -
chmod 755 efimount.sh
chmod 755 efiunmount.sh
Once done you can execute with command -
./efimount.sh
UPDATE - created an Easy EFI Mounter Application for folks. Rather than having to find out what your mounted disk is to select the right one in EFI Mounter, this application automatically determines the volume you are booted to and mounts that volume's EFI partition.
Chronosync lets you execute a pre-script and a post-script. Those are the scripts i have attached.
But you should be a be able to adapt these to your own use.
efimount.sh - This uses various command line tools to identify the correct boot volume and mount that volumes EFI partition.
If anyone has ever used the EFI Mounter application, where it will ask you to select from a list of partition names. Like disk0s1, disk1s1, disk2s1 etc. What the script is doing is automatically identifying the right partition. I also added an application that people could use to replace EFI Mounter with, to take the guess work out of which one to select.
efimount.sh then uses diskutil to mount the EFI partition.
From that point you can use Chronosync, rsync or any tool to backup your EFI portion to another drive.
The last script efiunmount.sh simply unmounts the EFI partition.
both efimount.sh and efiunmount.sh will need to have the write permissions to be able to run. To do this you need to issue the following command -
chmod 755 efimount.sh
chmod 755 efiunmount.sh
Once done you can execute with command -
./efimount.sh
UPDATE - created an Easy EFI Mounter Application for folks. Rather than having to find out what your mounted disk is to select the right one in EFI Mounter, this application automatically determines the volume you are booted to and mounts that volume's EFI partition.
Attachments
Last edited: