Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Guide to Mounting a NAS/SMB Share in Quickshot Rom

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Guide to Mounting a NAS/SMB Share in Quickshot Rom

    All credit goes to Freaktab user Daemonium for this. I just thought I'd summarize and make this easier to find.

    This is an init.d script for auto mounting your NAS at boot. No apps required here.
    Here is a great guide to understanding what init.d is and how it works

    You will need
    1. a root explorer app like Root Browser
    2. This file that Daemonium kindly made for us (This contains the script below) http://goo.gl/uNl9KE
    3. Your Rom must be rooted
    The script file contains:

    #!/system/bin/sh


    # Make sure networking is up before mounting
    busybox sleep 60
    setenforce permissive
    # Switch rootfs to read / write
    # Be carful after this. Misplaced commands may
    # brick your system
    busybox mount -o rw,remount /
    # Create Mount Points // Edit this part to suit your needs
    mkdir /mnt/internal_sd/01_Movies
    #mkdir /mnt/internal_sd/02_Series
    #mkdir /mnt/internal_sd/03_Documentation
    #mkdir /mnt/internal_sd/04_Musical
    #mkdir /mnt/05_ThisShareIsNotThePornFolder




    # Switch rootfs to read only
    busybox mount -o ro,remount /


    #SBM Auto Mount // Edit this part to suit your need
    busybox mount -t cifs -o user="your username",password="your password" //your.ip.here/yoursharename /mnt/internal_sd/01_Movies
    #mount -t cifs -o user="your username", password="your password" //your.ip.here/yoursharenamehere /mnt/internal_sd/02_Series
    #mount -t cifs -o user="your username", password="your password" //your.ip.here/yoursharenamehere /mnt/internal_sd/03_Documentation
    #mount -t cifs -o user="your username", password="your password" //your.ip.here/yoursharenamehere /mnt/internal_sd/04_Musical
    #mount -t cifs -o user="your username", password="your passowrd" //your.ip.here/yoursharenamehere /mnt/internal_sd/05_ThisShareIsNotTheP

    Steps:
    1. Edit the file to suit your needs
    2. Copy it to /system/etc/init.d and give permissions 755 (execute, read write, read write)
      The above step is where you will need the root browser type app.

    If you have problems with shares not being mounted, try to change the line :
    busybox sleep 60
    with a larger number (70,80,90)
    Last edited by Productivity; 05-18-2014, 09:53.

    #2
    Hi Productivity,
    Thanks for this guide. This init.d script is now automatically included in QuickShot V3.1, however, it doesn't seem to run at all, as I don't even see the 01_Movies directory in /mnt/internal_sd. When trying to edit the 90smb script via the rooted ES File Explorer, it keeps on telling me that I can't save the script as it is read only. I have no idea how to get around this. Hopefully you can help me. Thanks!

    Comment


      #3
      iDrone, also with me ES File Explorere for some reason doesn't allow to change the permissions of system files, even when root mode is enabled. When using another file explorer, eg. root browser, it is possible and working flawlessly.

      Comment


        #4
        Originally posted by arnocl View Post
        iDrone, also with me ES File Explorere for some reason doesn't allow to change the permissions of system files, even when root mode is enabled. When using another file explorer, eg. root browser, it is possible and working flawlessly.
        Thanks arnocl! Luckily I found out about the root browser not much longer after I posted my post, just by reading Productivity's post again and seeing that he actually mentions Root Browser in his post and all works great now! Not sure why QS3.1 uses ES File Explorer instead of Root Browser as the default Explorer.

        Comment


          #5
          I'm having trouble getting this initD file to run on boot. I can manually run it and it works if I SU and then run the script. What am I doing wrong?
          Tronsmart R28 PRO with wasser-2.0.7-beelink-r89-rk3288 ROM and MX Player

          Comment

          Working...
          X