• Re: MacOS / Mounted Volume / OneDrive /Parallels

    From Alan B@21:1/5 to jeremy on Tue Apr 30 17:00:54 2024
    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:

    So here is what I have / want.

    MB Air - latest MacOS (Sonoma 14.4) on which I have installed Parallels and within that, Win11 Pro.

    I want to be able to open a terminal session and see a folder called ~/code which links through to a OneDrive folder.

    I created this symbolic link:

    lrwxr-xr-x@ 1 jeremy staff 35 30 Apr 15:21 code -> /Volumes/[OneDrive] Windows 11/code


    When I cd into ~/code I see the files & folders from my OneDrive (which is ONLY accessible within Win11 VM - I don't want to introduce OneDrive into my MacOS world.

    All would seem to be good.

    However - when I restart the MacBook, this folder remains "not found" until I manually go into Finder and click the Location called "Windows11" and then click on the "[OneDrive] Windows 11" - that seems to trigger the "mount" (I guess) of the OneDrive folders.

    I'd really like this to happen automatically without any uder intervention - anyone any ideas?

    thx with optimism,

    Maybe launching OneDrive and opening its Preferences -> Ticking Open at Login under General will mount it? You probably know this but the OneDrive app icon appears at the top of the screen in the Menu Bar.

    --
    Cheers, Alan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan B@21:1/5 to jeremy on Tue Apr 30 19:28:04 2024
    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:
    On 30 Apr 2024 at 18:00:54 BST, "Alan B" <alanrichardbarker@gmail.com.invalid>
    wrote:

    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:

    So here is what I have / want.

    MB Air - latest MacOS (Sonoma 14.4) on which I have installed Parallels and >>> within that, Win11 Pro.

    I want to be able to open a terminal session and see a folder called ~/code >>> which links through to a OneDrive folder.

    I created this symbolic link:

    lrwxr-xr-x@ 1 jeremy staff 35 30 Apr 15:21 code -> /Volumes/[OneDrive] >>> Windows 11/code


    When I cd into ~/code I see the files & folders from my OneDrive (which is >>> ONLY accessible within Win11 VM - I don't want to introduce OneDrive into my
    MacOS world.

    All would seem to be good.

    However - when I restart the MacBook, this folder remains "not found" until I
    manually go into Finder and click the Location called "Windows11" and then >>> click on the "[OneDrive] Windows 11" - that seems to trigger the "mount" (I >>> guess) of the OneDrive folders.

    I'd really like this to happen automatically without any uder intervention -
    anyone any ideas?

    thx with optimism,

    Maybe launching OneDrive and opening its Preferences -> Ticking Open at Login
    under General will mount it? You probably know this but the OneDrive app icon
    appears at the top of the screen in the Menu Bar.

    I'll take a look - however that sounds like a MacOs activity - the OneDrive stuff is all under Win11 - I don't want OneDrive running on the Mac - just access to the OneDrive folders from e.g. a shell session on MacOS.

    Well you can set up the Windows version of OneDrive to start up automatically in Win 11 System Settings -> Apps -> Startup. Presumably you can then access the folder from macOS but only once the Win 11 VM is running? Is that what you are trying to achieve?

    --
    Cheers, Alan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruce Horrocks@21:1/5 to jeremy on Tue Apr 30 20:16:06 2024
    On 30/04/2024 19:58, jeremy wrote:
    On 30 Apr 2024 at 18:00:54 BST, "Alan B" <alanrichardbarker@gmail.com.invalid>
    wrote:

    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:

    So here is what I have / want.

    MB Air - latest MacOS (Sonoma 14.4) on which I have installed Parallels and >>> within that, Win11 Pro.

    I want to be able to open a terminal session and see a folder called ~/code >>> which links through to a OneDrive folder.

    I created this symbolic link:

    lrwxr-xr-x@ 1 jeremy staff 35 30 Apr 15:21 code -> /Volumes/[OneDrive] >>> Windows 11/code


    When I cd into ~/code I see the files & folders from my OneDrive (which is >>> ONLY accessible within Win11 VM - I don't want to introduce OneDrive into my
    MacOS world.

    All would seem to be good.

    However - when I restart the MacBook, this folder remains "not found" until I
    manually go into Finder and click the Location called "Windows11" and then >>> click on the "[OneDrive] Windows 11" - that seems to trigger the "mount" (I >>> guess) of the OneDrive folders.

    I'd really like this to happen automatically without any uder intervention -
    anyone any ideas?

    thx with optimism,

    Maybe launching OneDrive and opening its Preferences -> Ticking Open at Login
    under General will mount it? You probably know this but the OneDrive app icon
    appears at the top of the screen in the Menu Bar.

    I'll take a look - however that sounds like a MacOs activity - the OneDrive stuff is all under Win11 - I don't want OneDrive running on the Mac - just access to the OneDrive folders from e.g. a shell session on MacOS.

    I'm not really a Parallels user but the last sentence on this page
    suggests that it's working the way Parallels intends it to i.e. you have
    to click to access them.

    <https://download.parallels.com/desktop/v18/docs/en_US/Parallels%20Desktop%20User's%20Guide/43221.htm>

    You might be able to write some AppleScript to run when you login to the
    Mac that mounts the volume for you.

    Something like:

    Tell Application "Finder"
    Mount Volume "smb://username:password@server/sub/directory"
    End Tell

    where 'server' is your Windows virtual machine, assuming SMB is how the
    volume is shared.

    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan B@21:1/5 to Alan B on Tue Apr 30 19:54:01 2024
    On 2024-04-30, Alan B <alanrichardbarker@gmail.com.invalid> wrote:
    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:
    On 30 Apr 2024 at 18:00:54 BST, "Alan B" <alanrichardbarker@gmail.com.invalid>
    wrote:

    On 2024-04-30, jeremy <jeremy0505@gmail.com> wrote:

    So here is what I have / want.

    MB Air - latest MacOS (Sonoma 14.4) on which I have installed Parallels and
    within that, Win11 Pro.

    I want to be able to open a terminal session and see a folder called ~/code
    which links through to a OneDrive folder.

    I created this symbolic link:

    lrwxr-xr-x@ 1 jeremy staff 35 30 Apr 15:21 code -> /Volumes/[OneDrive] >>>> Windows 11/code


    When I cd into ~/code I see the files & folders from my OneDrive (which is >>>> ONLY accessible within Win11 VM - I don't want to introduce OneDrive into my
    MacOS world.

    All would seem to be good.

    However - when I restart the MacBook, this folder remains "not found" until I
    manually go into Finder and click the Location called "Windows11" and then >>>> click on the "[OneDrive] Windows 11" - that seems to trigger the "mount" (I
    guess) of the OneDrive folders.

    I'd really like this to happen automatically without any uder intervention -
    anyone any ideas?

    thx with optimism,

    Maybe launching OneDrive and opening its Preferences -> Ticking Open at Login
    under General will mount it? You probably know this but the OneDrive app icon
    appears at the top of the screen in the Menu Bar.

    I'll take a look - however that sounds like a MacOs activity - the OneDrive >> stuff is all under Win11 - I don't want OneDrive running on the Mac - just >> access to the OneDrive folders from e.g. a shell session on MacOS.

    Well you can set up the Windows version of OneDrive to start up automatically
    in Win 11 System Settings -> Apps -> Startup. Presumably you can then access the folder from macOS but only once the Win 11 VM is running? Is that what you
    are trying to achieve?

    I think OneDrive needs to be running in both macOS and in Win 11 or else any changes made in Win 11 won't be seen in macOS or vice versa for that matter.

    --
    Cheers, Alan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jaimie Vandenbergh@21:1/5 to jeremy on Tue Apr 30 23:03:26 2024
    On 30 Apr 2024 at 23:06:33 BST, "jeremy" <jeremy0505@gmail.com> wrote:

    On 30 Apr 2024 at 21:19:01 BST, "Chris" <ithinkiam@gmail.com> wrote:

    jeremy <jeremy0505@gmail.com> wrote:

    So here is what I have / want.

    MB Air - latest MacOS (Sonoma 14.4) on which I have installed Parallels and >>> within that, Win11 Pro.

    I want to be able to open a terminal session and see a folder called ~/code >>> which links through to a OneDrive folder.

    I created this symbolic link:

    lrwxr-xr-x@ 1 jeremy staff 35 30 Apr 15:21 code -> /Volumes/[OneDrive] >>> Windows 11/code


    When I cd into ~/code I see the files & folders from my OneDrive (which is >>> ONLY accessible within Win11 VM - I don't want to introduce OneDrive into my
    MacOS world.

    All would seem to be good.

    However - when I restart the MacBook, this folder remains "not found" until I
    manually go into Finder and click the Location called "Windows11" and then >>> click on the "[OneDrive] Windows 11" - that seems to trigger the "mount" (I >>> guess) of the OneDrive folders.

    I'd really like this to happen automatically without any uder intervention -
    anyone any ideas?

    thx with optimism,
    j

    I don't quite get it. Why do you want your files to be on OneDrive in the
    VM at all if you don't want to share them via OneDrive?

    If you want to work on the same files in the same local folder regardless
    of whether it's the host or the client OS, I would mount the mac folder
    within the parallels VM.

    It feels like mounting the VM's folder in the host macOS is opposite want
    you need. What am I missing?

    Edit files in EITHER windows or MacOS - but the sync to cloud (OneDrive) is performed only within Windows. This is because I didn't have great experiences
    with the MacOS version of OneDrive on previous machine so figured it ight be best to just let Windows take care of all the sync.

    You might enjoy knowing that a few months ago Windows OneDrive moved to
    a 'cloud first' model and you can no longer reliably expect any files
    within a Windows OneDrive folder to be actually present on the local
    disk at any given moment.

    Which will make accessing them from the Mac host problematic.

    I've seen Windows OneDrive revert file edits and changes before, too. Occasionally all the way back in time to "this file didn't exist" which
    is also pretty problematic. Please don't rely on it.

    Cheers - Jaimie

    --
    There's no limit to the amount of work someone can do,
    provided it's not the work they're supposed to be doing.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)