1. pcwizard7

    OP pcwizard7 GBAtemp Maniac
    Member

    Joined:
    Aug 2, 2013
    Messages:
    1,171
    Country:
    Australia
    Why do you want this

    You can share things like ROMs, thumbnails etc between android and HOS. Plus makes it easy to transfer things with your pc over usb

    What you Need

    - you will need root access (Magisk)
    - Tasker

    Method

    - enable "Global Namespace" in Magisk Manager.
    - open Tasker
    - Create an event for "Device Boot" give it a name
    - then create a task give it a name

    In this task create steps to make it look like this with root access
    Shell: su - mm
    Shell: mkdir /mnt/storage/switch_sd
    Shell: chmod 777 /mnt/storage/switch_sd
    Shell: mount -o bind /dev/block/mmcblk0p1 /mnt/storage/switch_sd
    Shell: mount -o remount,rw /dev/block/mmcblk0p1 /mnt/storage/switch_sd

    Enjoy
     
    Last edited by pcwizard7, Mar 1, 2021 at 11:25 AM
  2. Prb

    Prb GBAtemp Regular
    Member

    Joined:
    Nov 10, 2020
    Messages:
    131
    Country:
    United Kingdom
  3. pcwizard7

    OP pcwizard7 GBAtemp Maniac
    Member

    Joined:
    Aug 2, 2013
    Messages:
    1,171
    Country:
    Australia
  4. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    20,450
    Country:
    Norway
    It should be mounted inside /mnt/storage (/mnt/storage/switch_sd for example), that way normal apps can access it. At least that's the way it works on other devices... Most apps just won't see other mount points outside /mnt/storage.
     
    WiiEJECT and pcwizard7 like this.
  5. pcwizard7

    OP pcwizard7 GBAtemp Maniac
    Member

    Joined:
    Aug 2, 2013
    Messages:
    1,171
    Country:
    Australia
  6. tacticalcraptic

    Newcomer

    Joined:
    Feb 24, 2021
    Messages:
    2
    Country:
    United States
    I feel like I have followed the guide pretty closely but once it tries to run the second shell command (mkdir), I get an error 127.
    I have tried both:
    mkdir /mnt/storage/switch_sd
    mkdir /mnt/storage/switch sd


    Same hang up. Any idea what I might be missing?

    Thanks for the guide!
     
  7. Rahkeesh

    Rahkeesh GBAtemp Advanced Maniac
    Member

    Joined:
    Apr 3, 2018
    Messages:
    1,838
    Country:
    United States
    FWIW I haven't had to do any of the tasker stuff with Android 10. Once root/magisk is installed every emulator I've tried has been able to navigate to mnt/vendor/factory and read and modify files there.


    Now the next task would be to set up symlinks that redirect to HoS folders...
     
  8. tacticalcraptic

    Newcomer

    Joined:
    Feb 24, 2021
    Messages:
    2
    Country:
    United States
    Hmmm, I must have done something wrong further down the line. Magisk says I have root access and I can access root folders but I cannot see mnt/vendor/factory I get as far as mnt/vendor/ but not factory. It doesn't matter if I am in RetroArch or file explorer apps like X-Plore, I cannot get any further.
     
  9. Prb

    Prb GBAtemp Regular
    Member

    Joined:
    Nov 10, 2020
    Messages:
    131
    Country:
    United Kingdom
    go get root explorer by speed software install and open app press the menu (3 lines top left) select home scroll down near the bottom
    mnt/vendor/factory
    done

    dont forget let it have root access when asked
     
    Last edited by Prb, Feb 24, 2021
  10. pcwizard7

    OP pcwizard7 GBAtemp Maniac
    Member

    Joined:
    Aug 2, 2013
    Messages:
    1,171
    Country:
    Australia
    does any1 know how to make sure "Global Namespace" is enabled in Magisk Manager?
     
  11. Prb

    Prb GBAtemp Regular
    Member

    Joined:
    Nov 10, 2020
    Messages:
    131
    Country:
    United Kingdom
    I read something over at xda not magisk manager but App2SdPro this app can start a Script as su on boot might be worth looking into and its free
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Partition, HOS_Data, [Guide]