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.

Plugin: Drive Mount (simple features required)

Featured Replies

  • Author

new update.

smb share is included (only public non hidden so far, working on the rest)

also fixed some nasty bugs

 

note: if you update, you will have to reconfigure. see first post

 

(mounting to a directory outside /mnt is no longer supported)

  • Replies 94
  • Views 21.6k
  • Created
  • Last Reply

Hi Benni

 

Quick testing today, and looks excellent.

 

Had to disable last plg file, delete drive_mount directory and reboot.  uploaded new drive_mount.plg to plugins folder, and rebooted again.  (Just rebooting to ensure clean test).

 

Added 'apps' drive for hda2 and once applied, visible and accessable immediately in Win Explorer.

Still there after reboot.

 

Thanks for an excellent Plugin.  Great job. :D

new update.

smb share is included (only public non hidden so far, working on the rest)

also fixed some nasty bugs

 

note: if you update, you will have to reconfigure. see first post

 

(mounting to a directory outside /mnt is no longer supported)

 

Installed and was able to mount a drive, thanks!

It does not get shared via SMB.  I stepped through the script and I must be missing something.  The smb config is written to the /boot/config/plugins/drive_mount/ directory and then smb gets restarted.  How does the config that's in that directory get read by the smb service?  I don't see a connection and given that my share is enabled but nothing shows up, I'm wondering if there's something missing. :)

 

  • Author

in the installation of the plugin, a line should have been added to your smb-extra.conf file on the flash drive.

that line includes the drive mount config file.

 

please check your smb-extra.conf file inside /boot/config/.

it should have this line:

include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

 

you have both enabled the drive and the smb export?

in the installation of the plugin, a line should have been added to your smb-extra.conf file on the flash drive.

that line includes the drive mount config file.

 

please check your smb-extra.conf file inside /boot/config/.

it should have this line:

include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

 

you have both enabled the drive and the smb export?

Thanks, that include is there.  Yes I have enabled both and still no share.  Normal SMB shares show up fine.  Any other ideas?

 

root@Tower:/boot/config# cat smb-extra.conf
[global]
security = USER
guest account = nobody
public = yes
guest ok = yes
map to guest = bad user

include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

root@Tower:/boot/config# cat /boot/config/plugins//drive_mount/drive_smb_shares.cfg
[Tor]
path = /mnt/Tor
browseable = yes
public = yes
writeable = yes

it might sound funny

but did you reboot the windows machine already ??

lot of times share issues are solved with a reboot of the windows  :o

  • Author

Thanks, that include is there.  Yes I have enabled both and still no share.  Normal SMB shares show up fine.  Any other ideas?

 

ok, i've found the problem.

for a quick fix, change your smb-config to this:

include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

[global]
security = USER
guest account = nobody
public = yes
guest ok = yes
map to guest = bad user

i'll post an update to the plugin later...

 

Edit:

Well, i thought I narrowed it down... But now it works either way... hmm

 

Edit2:

Ok, forget, what I said above...

there is a new Plugin Version online, which should work...

it has another annoying bug: you need to manually refresh the page when you get the ok message. (all my workarounds to do this without freezing the page didn't work properly...)

Answering earlier question:  yes I did reboot and I also tried from multiple windows and one mac boxes.

 

Your suggestion of flipping the the order of the include made me open the config file in vi instead of just cat'ing it.  In the editor I saw that there was a line and a half of ^@ symbols ahead of the include file.  I removed that line, saved the config file, restarted and voila, it works.

 

I guess the installer pushes something into that file that smbd doesn't like?

  • Author

Answering earlier question:  yes I did reboot and I also tried from multiple windows and one mac boxes.

 

Your suggestion of flipping the the order of the include made me open the config file in vi instead of just cat'ing it.  In the editor I saw that there was a line and a half of ^@ symbols ahead of the include file.  I removed that line, saved the config file, restarted and voila, it works.

 

I guess the installer pushes something into that file that smbd doesn't like?

 

i've just checked that and can't confirm... the installer includes the line without any extra symbols... strange thing...

I found that if smb-extra didn't exist when starting the drive_mount.plg, then it was created with only one line

include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

 

checked smb-extra.conf with vi and that was the only line in the file.

 

I suspect what ever initially created nemloc]'s smb-extra file, added the symbols.

 

Benni-chan you plugin from 15th dec is working great still.  Really happy with it.

 

 

I installed the plugin and mounted a disk that isn't part of the array. I set Enable drive on Yes. Drive name says : dev/sdl1.

I see:

mounting

restarting SMB

..OK

 

After clicking done on the plugins page, nothing happens anymore. The whole WEBGUI is unresponsive. I can't evengo back to the Main Screen.

 

What is wrong. I really like to get this working.

 

Looks like when I press done I loose connection to the WEBGUI. When I restart the PC I can access the WEBGUI again.

 

I see this in the syslog:

Dec 22 23:58:30 Tower1 unmenu[7898]: awk: ./unmenu.awk:470: fatal: print to "/inet/tcp/8080/0/0" failed (Connection reset by peer)

Dec 22 23:58:30 Tower1 unmenu-status: Exiting unmenu web-server, exit status code = 2

Dec 22 23:58:30 Tower1 unmenu[7898]: unmenu.awk unable to open port. It may already be running

Dec 22 23:58:40 Tower1 unmenu-status: Starting unmenu web-server

 

  • Author

you should be able to simply refresh the page, to get the webgui responsive again.

After clicking done on the plugins page, nothing happens anymore. The whole WEBGUI is unresponsive. I can't evengo back to the Main Screen.

 

 

Exact same thing is happening to me, click done and the webgui stops responding and I need to power down via telnet. This is the last thing said in my syslog:

 

Dec 23 16:16:24 SERVER ntfs-3g[9779]: Version 2010.3.6 integrated FUSE 27

Dec 23 16:16:24 SERVER ntfs-3g[9779]: Mounted /dev/sdh1 (Read-Write, label "ext", NTFS 3.1)

Dec 23 16:16:24 SERVER ntfs-3g[9779]: Cmdline options: rw,umask=111,dmask=000

Dec 23 16:16:24 SERVER ntfs-3g[9779]: Mount options: rw,silent,allow_other,nonempty,relatime,fsname=/dev/sdh1,blkdev,blksize=4096,default_permissions

Dec 23 16:16:24 SERVER ntfs-3g[9779]: Global ownership and permissions enforced, configuration type 1

 

you should be able to simply refresh the page, to get the webgui responsive again.

 

 

Tried it but doesn't work. Can't even open tower or tower:8080 new. Not even tower:8085 where SAB is?

 

After a rather long waiting time after clicking done, the WEBGUI come back. Either setting Enable drive to Yes or No I see the same behaviour. Is this normal.

 

I have unraid 5.0 RC8a with samba updated to 3.6.8.

 

  • Author

nope, that's not normal...

i'll check later today, what's causing this. sry for the trouble

No harm done. Just glad you are making the effort in developing such a plugin. I really could use this one. Hope you get things sorted.

 

I have a rather clean install, only SABNZBD and apcupsd plugins.

 

I might have stumbled on another issue though: When I ser Export to yes, the disk shows up under my shares, but I cant access it from my laptop (Windows 7).

FYI, installed this and to test it, I plugged in two USB flash drives.

 

I think at least one had multiple partitions -- FAT32 or similar.

 

They didn't want to mount, so I played with the options in the plugin and then everything went haywire -- all my array drives were unmounted and /mnt/ became one of the flash drives.

 

I did a "safe" powerdown with the powerdown script, then removed both flash drives.

 

After powering up again, unRAID started a parity check. Fortunately all the data was there, but it was squeaky bum time for a while -- mainly because I could no longer browse the root of the server. I get this:

 

9o30A.png

 

I can still browse all the data via SMB, but only by going via subfolders \\MICRO\TV or \\MICRO\Movies or  whatever.

 

I have seen that error before on a Linux server, it may have been unRAID or it may have been one of my LinkStations, and I fixed it -- I think it has to do with permissions, but I now can't find how to fix it. Any ideas anyone?

  • Author

try to run the new permissions script in the webgui under utils. it should fix all permission issues on the array drives.

what is the content of your smb-extra.conf?

 

i'm a bit baffled to what could have happend on your system. don't really know, why your array disks would unmount. (well, this could happen, if you enter disk1,disk2, etc. as a drive name... i'll add some more checks here, so that this can't happen)

any chance to see the syslog? has it been copied to your flash drive on shutdown?

what is the content of your smb-extra.conf?

 

After this problem I removed the plugin and that file. With extreme prejudice!

 

Although I see a file in "extra". Is that yours?

 

[cache]
   path = /mnt/cache
   read only = no
   guest ok = yes
   browseable = yes
   browsable = yesinclude = /boot/config/plugins/drive_mount/drive_smb_shares.cfg

 

i'm a bit baffled to what could have happend on your system. don't really know, why your array disks would unmount. (well, this could happen, if you enter disk1,disk2, etc. as a drive name... i'll add some more checks here, so that this can't happen)

any chance to see the syslog? has it been copied to your flash drive on shutdown?

All I did was repeatedly try to mount and share the two flash drives. Nothing else, I don't think. I think the syslog you need is attached.

 

Cheers,

 

Neil.

for_benni_syslog-20121219-233140.zip

  • Author

is that code you posted the smb-extra.conf? the cache drive should not be configured in that file (what unraid version are you running?

unraid sets the share for the cache drive in an other config file.

 

it seems, my installer inserted the needed line on the wrong place (there is a new line missing. i'll get this fixed)

delete the "include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg" part of that file and your shares should work again (after you restart smb)

 

the syslog seems strange to me. the whole boot up is missing and there is a lot output of an ethernet watchdog.

also a lot of error messages, because the files on the array aren't found. but i can't see anything about the mounting etc...

 

 

i'll post an updated plugin version as soon as i can with some fixes and more security checks. (can't really promise when. busy time of the year ;) but i try to hurry)

is that code you posted the smb-extra.conf? the cache drive should not be configured in that file (what unraid version are you running?

unraid sets the share for the cache drive in an other config file.

I think that's a remnant from an old config where I was mounting a USB drive as cache myself with a script. I didn't realise that file was still around. I renamed it so it won't be used any more. That make sense?

 

it seems, my installer inserted the needed line on the wrong place (there is a new line missing. i'll get this fixed)

delete the "include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg" part of that file and your shares should work again (after you restart smb)

I'll do that after this perms script finishes. It's taking a while.

 

the syslog seems strange to me. the whole boot up is missing and there is a lot output of an ethernet watchdog.

also a lot of error messages, because the files on the array aren't found. but i can't see anything about the mounting etc...

Search for "cruzer" or "sony". Those are the flash drives. My gigabit switch crashed, I think on that day, so that's where those errors are probably from.

 

 

i'll post an updated plugin version as soon as i can with some fixes and more security checks. (can't really promise when. busy time of the year ;) but i try to hurry)

Well, I can manually mount drives anyhoo, so I don't have a burning need myself. Merry Christmas!

it seems, my installer inserted the needed line on the wrong place (there is a new line missing. i'll get this fixed)

delete the "include = /boot/config/plugins/drive_mount/drive_smb_shares.cfg" part of that file and your shares should work again (after you restart smb)

I'll do that after this perms script finishes. It's taking a while.

FYI, this didn't work. I still get the stub error.

  • 2 weeks later...
  • Author

i just uploaded a new version to github. this is the start of a complete rewrite (again) :)

 

the big new feature in this version is a new UI, which is a lot cleaner. since i'm using some javascript functions included in the simple features plugin (and optimized the UI for the simple features UI), the SF plugin is now a requirement.

(In my opinion, the core simple features should replace the default unraid ui. it's a lot cleaner and gives more information on a quick glance.)

Only the core simple features plugin is required, but if you also install the disk_health plugin, you get those features with non-array disks, too.

(if there is a big demand for a simple features free version, i'll add one, but this has low priority for me)

 

the UI is not complete, there will be other changes. and the framework below will change in the coming weeks, too.

 

Note: Sharing is still somewhat beta. in my tests, i had no trouble sharing a reiserfs formatted disk. but i couldn't share a fat32 formatted disk. currently i don't really know, why. (didn't test with ntfs yet.)

05_01.13_18_21-Bildschirmkopie.png.9065cbf0f010ef0b64edceac719a5f8a.png

Tried the new plugin but couldn't get it to mount a previously formatted unraid drive. It's a 80GB drive I replaced recently. Basically whatever I put in the gui isn't saved.

 

I see the plugin created a drive_mount folder. A peek in the cfg file revealed it ids the drive.

 

Any advice?

 

thanks

db

  • Author

what is your disk format?

 

please post the contents of the drive_mount.cfg file. (it contains everything i need to debug)

 

you have simple features installed?

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.