Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mount/share script for non-array drives

Featured Replies

  • Author

I believe I got the BSOD worked around thanks to Joe's suggestion with the smb-extra.conf global entry.  I read up on it and found a way to choose security = user but still have all the shares work like security = share, meaning public access with no login required to connect.  

And I got the whole process into a handful of shell scripts that will mount drives at boot time from a list by running them from the go script.  Ugh, learning curve hurts.

 

Currently, the scripts mount the drive by it's serial id which is a little obtuse.  I'd like to extend the scripts to add a friendly name for the share and also would like to either have the scripts auto-determine the filesystem if possible.  In any case, it's on it's way for now.

 

I'll attach my work here in case anyone wants it.

 

 

Edit: 3/22/2010 - updated the zip file with some changes, added a readme.txt with install instructions.

 

this zip will not make my comp BSOD?

 

 

No, but I can make one that will if your disappointed.  ;)  The secuity=user workaround prevents the BSOD on Win7.  The rest of the scripts I wrote to automatically share some non-array disks that I have data on.  I combined all the scripts into a single script that I'll be posting probably tomorrow.  I just need it to be smart enough to set the filesystem correctly.  The drives I want to load all have ntfs but I might as well make it more universal in case I end up with a reiserfs disk I want to look load.

  • Replies 61
  • Views 17.8k
  • Created
  • Last Reply

Say Joe, how do I query to find out what filesystem is on the hard drive partition?

Easiest way I know is to type:

vol_id /dev/sda1

(using the correct partition and device for your disk)

  • Author

Here is an updated version.  I have named it snap (Share Non-Array Partitions).

 

See the included readme.txt for installation.  This version has a single script and some supporting data files. 

The filesystem of the partition to be shared is now auto-detected.  User can now specify sharename.  This version only supports 1st partition on drive.

snap.zip

  • Author

i ran the new zip and it didn't give me bsod.  but i didn't see what it did to my server.

 

Not sure what you mean by ran the zip?  Zip files aren't executable.

  • Author

Alright then, my next step would hopefully be to have usb connected hard drives automatically mount.  Does anybody know if there is an event or some action that gets triggered when a usb drive is connected to unRAID server?

  • Author

How is hot plugging implemented on unRAID?  Does anyone know about it or where some docs can be found?

 

I googled for hot plugging on linux and there seems to be a number of ways it's implemented.  I can't find any evidence of it on unRAID but I know it's in there somewhere.

 

At this site there is some discussion about making user scripts that linux will run when a usb device is hotplugged in or removed.  But like before I can't find any of the directories or programs on unRAID but they must be there somewhere.

http://www.slackbasics.org/10.2/html-singlepage/slackware-basics.html#sysadmin-init-hotplug

  • Author

I believe I found a way to detect when a usb drive is plugged in or unplugged.  I'm going to try to make it automatically mount/share and unshare when those events occur in my script.

If you discover how Slackware 12.2 / 13.0 handles hot-plugging then you discovered how the unRAID 'mini-distro' handles it.

If you discover how Slackware 12.2 / 13.0 handles hot-plugging then you discovered how the unRAID 'mini-distro' handles it.

 

When I plug a hdd to my Sil3114, I can see in syslog the Sil driver signaling the hot-plug, so unRAID handle hot-plug the same way other Linux distros handles it, by driver support plus kernel signaling. The only problem is that unRAID doesn't include autofs/automount.

 

 

You need to just write a udev rule to take action when certain things are plugged in. I am thinking of doing it so if I plug in a usb drive unraid will mount the drive, then automatically copy its contents over to unraid in a dated backup directory and then unmount the drive again. Will be easy with a udev rule, just need to learn how to write the correct one.

  • Author

I got it to work dynamically when plugging in or unplugging a usb drive.  I'll test it for a day or so and then post my files.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.