mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Mounting an exFAT drive from Ubuntu onto OSX #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thematrixdev on GitHub (Dec 29, 2020).
On my computer, Ubuntu is installed on a NVMe-SSD drive. Docker-OSX Docker version is installed on the same drive.
There is another 2.5" SATA SSD dirve on my computer. I have formated it to be exFAT, so both Ubuntu and OSX can read the data from it. It is mounted in /media/me/SSD on Ubuntu; and onto OSX by adding
-hda /dev/sdeontodocker-compose.yml.To make sure the drive is really mounted, I have placed several files onto the drive before running
docker-compose up. After OSX is installed and booted, the drive "SSD" is shown up in the Finder. The several test files exist.However, after I have tried putting some more files from Ubuntu, the newly added files are now shown up in OSX. And putting some files from OSX, they don't show up in Ubuntu neither.
Thanks.
@sickcodes commented on GitHub (Dec 29, 2020):
Hey!
I haven't used the Docker compose file but I believe it could be out of date.
The compose file was added a few months ago and a few things have changed, does it work using the normal commands?
@thematrixdev commented on GitHub (Dec 30, 2020):
I have just try to update the docker-compose after reading the single command, seems no difference.
It seems the external harddisk is read at the very beging, the state is kept, and the disk is cloned and separated. Even I erase the disk in OSX, the data is still there on the host. So strange...
@sickcodes commented on GitHub (Jan 6, 2021):
Correct me if I'm wrong, but won't the OSX disk be created in created in
/var/lib/docker/volumes?@mrkvn commented on GitHub (Jan 9, 2021):
@thematrixdev I'm curious. Can you post here the
docker-compose.ymlyou're using?@sickcodes commented on GitHub (Mar 14, 2021):
Added arbitrary disk passthrough in
2295eef68fPlease see examples here: https://github.com/sickcodes/Docker-OSX#mount-a-disk-inside-osx-from-the-host