An Improved unRAID web-interface, extensible, and easy to install


Recommended Posts

I will mess with it a little when i get home tonight and see what I can do.  I really would like to get unMenu working so that i can control everything from it.

 

It might be easier to clone the existing unRAID Main plug-in, modify it a bit as shown below, and give it a try.  Name the plug-in file 999-unmenu-bubba_main.awk

BEGIN {
#define ADD_ON_URL    bubba_main
#define ADD_ON_MENU   Bubba Main
#define ADD_ON_STATUS NO
#define ADD_ON_TYPE   awk
#define ADD_ON_VERSION   .1 

  if ( ScriptDirectory == "" ) {
      ScriptDirectory = ".";
  }
  if ( ConfigFile == "" ) {
      ConfigFile = "unmenu.conf";
  }

  # Local config file variables will never be overwritten by a distributd file.
  # It is here where local changes should be made without worry about them being
  # lost when a new unmenu.conf file is distributed.
  if ( LocalConfigFile == "" ) {
      LocalConfigFile = "unmenu_local.conf";
  }
  GetConfigValues(ScriptDirectory "/" ConfigFile);
  GetConfigValues(ScriptDirectory "/" LocalConfigFile);

  MyHost = CONFIG["unRAIDHost"] ? CONFIG["unRAIDHost"] : getHost()

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/\">"
  theHTML = theHTML "Sorry: your browser does not seem to support inline frames"
  theHTML = theHTML "</iframe>"

  print theHTML
}

function GetConfigValues(cfile) {
    RS="\n"
    while (( getline line < cfile ) > 0 ) {
          delete c;
          match( line , /^([^# \t=]+)([\t ]*)(=)([\t ]*)(.+)/, c)
          #print c[1,"length"] " " c[2,"length"] " " c[3,"length"] " "  c[4, "length"] " " c[5, "length"] " " line
          if ( c[1,"length"] > 0 && c[2,"length"] > 0 &&
               c[3,"length"] > 0 && c[4, "length"] > 0 && c[5, "length"] > 0 ) {
               CONFIG[substr(line,c[1,"start"],c[1,"length"])] = substr(line,c[5,"start"],c[5,"length"])
          }
    }
    close(cfile);
}

function getHost( theHostName) {
    "uname -n" | getline  theHostName
    close("uname -n")
    return theHostName
}

 

Once you create the new plug-in, you will need to kill and re-start unmenu for it to see it as a new plug-in and to add it to its top menu.  Remember to create it using an editor that uses linefeeds at the ends of lines and not carriage-return/linefeed pairs.... or run it through "fromdos" to get rid of the carriage returns.

 

I've not tried the code shown above, as I am not running bubbaRaid, but if the URL to get to it is

//tower/

then it should work.  BubbaRaid's main page should be visible under unmenu.

 

As far as opening up the menus to the outside world through your router... I think you might just be a little crazy/insane, and way too trusting 

If 99.9999% of the people in the world can be trusted, that still leaves .00001% that cannot.... 

 

Let's see 6 billion people divided by .00001 = 60,000 potential bad-guys/girls.  If only 1% of them are trying to break into machines, that still leaves 600 very determined hackers.  Looking at my router/firewall's logs, they are very persistent.

 

Yup, even on an unusual "port" you will be hacked, it is just a matter of time.  unraid/unmenu has no controls to prevent abuse.  Your data may not be as safe as you might like.

 

Please consider a VPN to get remote access. It will be way more secure.

 

Joe L.

Link to comment
  • Replies 552
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Yesterday I upgraded to unraid 4.4.2 and decided to give unmenu a try as well. There are a few things I can't get working however. The Smart tests don't seem to be doing anything: when I select a drive on the Array Disk Management page for a "short smart test" it just says "Smart Short Test of /dev/sdd will take from several minutes to an hour or more." and nothing else happens. the smart statistics say nothing except "Statistics for /dev/sdd SAMSUNG_HD501LJ_S0MUJ13P799098".

I then tried it manually by entering  smartctl  -a  -d  ata  /dev/sdd in telnet and it gave me the following error: "error while loading shared libraries: libstcd++.so.6: cannot open shared object file: No such file or directoy. (In case you haven't noticed by now: I don't know a single thing about linux.)

 

The smart page under "MyMain" is also empty (see attached image). When I click on "sm" on the right it opens a new unmenu window in the browser which simply says "smartctl -a -d ata /dev/sdb (disk1)".

 

I then tried installing the bwm-ng package but that's obviously not gonna work either because the server itself isn't online (LAN only). I guess that explains the error. (empy page e</BODY></HTML>0).

 

I'm probably missing a couple of things here but that's why I've stayed away from any user customized addons so far, they're not foolproof enough (for me anyway). I really like the new web-interface and the added features though, it would be a shame to miss out on all the smart features.

 

I'll be grateful for any help.

 

Link to comment

Yesterday I upgraded to unraid 4.4.2 and decided to give unmenu a try as well. There are a few things I can't get working however. The Smart tests don't seem to be doing anything: when I select a drive on the Array Disk Management page for a "short smart test" it just says "Smart Short Test of /dev/sdd will take from several minutes to an hour or more." and nothing else happens. the smart statistics say nothing except "Statistics for /dev/sdd SAMSUNG_HD501LJ_S0MUJ13P799098".

I then tried it manually by entering  smartctl  -a  -d  ata  /dev/sdd in telnet and it gave me the following error: "error while loading shared libraries: libstcd++.so.6: cannot open shared object file: No such file or directoy. (In case you haven't noticed by now: I don't know a single thing about linux.)

 

The smart page under "MyMain" is also empty (see attached image). When I click on "sm" on the right it opens a new unmenu window in the browser which simply says "smartctl -a -d ata /dev/sdb (disk1)".

 

I then tried installing the bwm-ng package but that's obviously not gonna work either because the server itself isn't online (LAN only). I guess that explains the error. (empy page e</BODY></HTML>0).

 

I'm probably missing a couple of things here but that's why I've stayed away from any user customized addons so far, they're not foolproof enough (for me anyway). I really like the new web-interface and the added features though, it would be a shame to miss out on all the smart features.

 

I'll be grateful for any help.

 

You are absolutely correct... the "smartctl" program in 4.4.2 is missing a needed library.    To get it to work, you will need to download and install the missing library.

To download it, you can use this link :  http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/a/cxxlibs-6.0.8-i486-4.tgz

 

Then, move it to a folder named /boot/packages  (from windows it will just be the "packages" folder at the root of the flash drive.)

 

Once it is there, you should be able to install it via the package-manager built into unmenu.  Once installed, it will get smartctl running.

 

The "long" and "short" test buttons queue up a request on the drive.  You can see the result (after waiting an appropriate time) using the "Smart Status" button.

 

Joe L.

Link to comment

I then tried installing the bwm-ng package but that's obviously not gonna work either because the server itself isn't online (LAN only). I guess that explains the error. (empy page e</BODY></HTML>0).

The error is because it cannot connect to the remote server to get the file.  If you define a "nameserver" and a gateway to the outside world it will work.

 

In the interim, if you open up the download package.conf file (using the Config View/Edit link)  you will see the URL from where to download the package.tgz file. 

Download the file and then put the file in the "packages" folder on the flash, and then the rest of the package manager functions for that package should work.

 

Joe L.

Link to comment

Thanks a lot, that was easier than I expected!

 

My drives appear to be fine except for one "calibration_retry_count=1" issue which shouldn't be that serious...

Sounds great.

 

Now, just use the package-manager button to "Enable Re-Install on Re-Boot" on the c++ library package, and the library will automatically be installed every time you reboot the server, and smartctl will continue to work.

 

See, not too bad, even for Linux newbees.  I strongly suggest you request a "long" test on each of your disks usinf the "Disk-Management" web-page in unmenu.  In a few hours you can check and again look at the smart status to see if it still looks good.

 

Enjoy your server.

 

Joe L.

Link to comment

I will mess with it a little when i get home tonight and see what I can do.  I really would like to get unMenu working so that i can control everything from it.

 

It might be easier to clone the existing unRAID Main plug-in, modify it a bit as shown below, and give it a try.   Name the plug-in file 999-unmenu-bubba_main.awk

BEGIN {
#define ADD_ON_URL    bubba_main
#define ADD_ON_MENU   Bubba Main
#define ADD_ON_STATUS NO
#define ADD_ON_TYPE   awk
#define ADD_ON_VERSION   .1 

  if ( ScriptDirectory == "" ) {
      ScriptDirectory = ".";
  }
  if ( ConfigFile == "" ) {
      ConfigFile = "unmenu.conf";
  }

  # Local config file variables will never be overwritten by a distributd file.
  # It is here where local changes should be made without worry about them being
  # lost when a new unmenu.conf file is distributed.
  if ( LocalConfigFile == "" ) {
      LocalConfigFile = "unmenu_local.conf";
  }
  GetConfigValues(ScriptDirectory "/" ConfigFile);
  GetConfigValues(ScriptDirectory "/" LocalConfigFile);

  MyHost = CONFIG["unRAIDHost"] ? CONFIG["unRAIDHost"] : getHost()

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/\">"
  theHTML = theHTML "Sorry: your browser does not seem to support inline frames"
  theHTML = theHTML "</iframe>"

  print theHTML
}

function GetConfigValues(cfile) {
    RS="\n"
    while (( getline line < cfile ) > 0 ) {
          delete c;
          match( line , /^([^# \t=]+)([\t ]*)(=)([\t ]*)(.+)/, c)
          #print c[1,"length"] " " c[2,"length"] " " c[3,"length"] " "  c[4, "length"] " " c[5, "length"] " " line
          if ( c[1,"length"] > 0 && c[2,"length"] > 0 &&
               c[3,"length"] > 0 && c[4, "length"] > 0 && c[5, "length"] > 0 ) {
               CONFIG[substr(line,c[1,"start"],c[1,"length"])] = substr(line,c[5,"start"],c[5,"length"])
          }
    }
    close(cfile);
}

function getHost( theHostName) {
    "uname -n" | getline  theHostName
    close("uname -n")
    return theHostName
}

 

Once you create the new plug-in, you will need to kill and re-start unmenu for it to see it as a new plug-in and to add it to its top menu.  Remember to create it using an editor that uses linefeeds at the ends of lines and not carriage-return/linefeed pairs.... or run it through "fromdos" to get rid of the carriage returns.

 

I've not tried the code shown above, as I am not running bubbaRaid, but if the URL to get to it is

//tower/

then it should work.  BubbaRaid's main page should be visible under unmenu.

 

As far as opening up the menus to the outside world through your router... I think you might just be a little crazy/insane, and way too trusting 

If 99.9999% of the people in the world can be trusted, that still leaves .00001% that cannot.... 

 

Let's see 6 billion people divided by .00001 = 60,000 potential bad-guys/girls.  If only 1% of them are trying to break into machines, that still leaves 600 very determined hackers.   Looking at my router/firewall's logs, they are very persistent.

 

Yup, even on an unusual "port" you will be hacked, it is just a matter of time.  unraid/unmenu has no controls to prevent abuse.  Your data may not be as safe as you might like.

 

Please consider a VPN to get remote access. It will be way more secure.

 

Joe L.

 

OK, thanks for the pointers.  For now, just for now, i have disabled unMenu.  It is not that i did not get the BubbaRaid page up and running from within unMenu, it was that i did not have the Main unRaid page after installing unMenu.  Not quite sure why but it happened.  I think it has something to do with the fact that BubbaRaid moves the default unRaid page to port 88.  I got a plug-in made by copying the 999-unmenu-unraid_main.awk and modifying it with the help of Biggy2872 , this one actually worked to get to the BubbaRaid page.

 

I have to specify MyHost in the config file as on my Mac i cannot type in \\tower to get to the web interface.  Not sure why this is but it is kinda annoying.  I always have to use the IP address of my server.  With BubbaRaid installed i type http://192.168.x.xxx and to get to the Unraid page i type http://192.168.x.xxx:88/.  I think the port change for the unRaid default page is causing the problem.

 

I realize that opening up stuff to the outside world is not that smart, and I want to keep it secure as possible.  Are there any pointers/steps that you can give me to setting up the VPN.  I am familiar with the term and know of it but am not familiar with how to set it up.

 

I have some ports open on the outside and leading to the inside so that i can get to the BubbaRaid wtorrent page.  That way i can start and stop torrents from anywhere.  I don't really need to go to any page besides that from the outside world.

 

 

EDIT:  I have been messing around with it a little more and eliminated some of the variables (i.e. the dynamic dns name).  I am now only going through my local network to test all of this out.  I have set MyHost to 192.168.2.104 in the config file since using the word "tower" does not work in a Mac browser.

Here is what i have:

I can make a plug-in that will lead to the BubbaRaid page just fine by changing this line

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/main.htm\">"

to this

 theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://192.168.2.104:80/\">"

.

I have also found that using this

   theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":80/\">"

does not work.  Why this is I am not sure.  Unless i am missing something i think the last two lines should be the same. So using the second line i have a link to the BubbaRaid page just fine.  The problem stems from the next step and I am not sure if it is a problem with of Unmenu, BubbaRaid, or the default web interface.  Anyway, when i change this line

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/main.htm\">"

to this

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":88/main.htm\">"

I can't get into the Unraid default page.  If i go and change the code to this

   theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://192.168.2.104:88/\">"

  I think it crashes emhttp.  If i do a ps -ef i don't see it listed.  Why emhttp crashes when i try to do this i don't know.  The BubbaRaid page seems to handle that form of change just fine.

 

Any pointers you can give me would be great. And if you can explain to me why some of those lines don't work that would also be great.

Link to comment

EDIT:  I have been messing around with it a little more and eliminated some of the variables (i.e. the dynamic dns name).  I am now only going through my local network to test all of this out.  I have set MyHost to 192.168.2.104 in the config file since using the word "tower" does not work in a Mac browser.

Here is what i have:

I can make a plug-in that will lead to the BubbaRaid page just fine by changing this line

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/main.htm\">"

to this

 theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://192.168.2.104:80/\">"

.

I have also found that using this

   theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":80/\">"

does not work.  Why this is I am not sure.  Unless i am missing something i think the last two lines should be the same. So using the second line i have a link to the BubbaRaid page just fine.  The problem stems from the next step and I am not sure if it is a problem with of Unmenu, BubbaRaid, or the default web interface.  Anyway, when i change this line

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/main.htm\">"

to this

  theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":88/main.htm\">"

I can't get into the Unraid default page.  If i go and change the code to this

   theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://192.168.2.104:88/\">"

  I think it crashes emhttp.  If i do a ps -ef i don't see it listed.  Why emhttp crashes when i try to do this i don't know.  The BubbaRaid page seems to handle that form of change just fine.

 

Any pointers you can give me would be great. And if you can explain to me why some of those lines don't work that would also be great.

 

Did some investigating... if you used the file 999-unmenu-unraid_main.awk as your basis, it seems that it looks for your host name with the variable "unRAIDHost". As seen in line 24:

 MyHost = CONFIG["unRAIDHost"] ? CONFIG["unRAIDHost"] : getHost()

What this line is "saying" is if you found a value for "unRAIDHost" in the config files then set the value of the variable MyHost to that value, otherwise store the value determined by the function getHost()...  As you probably haven't defined unRAIDHost in your unmenu_local.conf file then MyHost will be populated with the value returned from getHost(). 

 

getHost will always return the name of the server (ie Tower).  This is what is being passed to your browser as the place to find the page. You already said your browser can't use names, so that is why I suspect the code is failing.  Using one of the solutions below should solve your problem.

 

You will need to add:

unRAIDHost = 192.168.2.104

To your unmenu_local.conf.

 

OR..........

 

change line 24 in the program to:

 MyHost = CONFIG["MyHost"] ? CONFIG["MyHost"] : getHost()

 

Cheers,

Matt 

Link to comment

Did some investigating... if you used the file 999-unmenu-unraid_main.awk as your basis, it seems that it looks for your host name with the variable "unRAIDHost". As seen in line 24:

 MyHost = CONFIG["unRAIDHost"] ? CONFIG["unRAIDHost"] : getHost()

What this line is "saying" is if you found a value for "unRAIDHost" in the config files then set the value of the variable MyHost to that value, otherwise store the value determined by the function getHost()...  As you probably haven't defined unRAIDHost in your unmenu_local.conf file then MyHost will be populated with the value returned from getHost(). 

 

getHost will always return the name of the server (ie Tower).  This is what is being passed to your browser as the place to find the page. You already said your browser can't use names, so that is why I suspect the code is failing.  Using one of the solutions below should solve your problem.

 

You will need to add:

unRAIDHost = 192.168.2.104

To your unmenu_local.conf.

 

OR..........

 

change line 24 in the program to:

 MyHost = CONFIG["MyHost"] ? CONFIG["MyHost"] : getHost()

 

Cheers,

Matt 

 

OK, well i have done a few more things since making that post.  I have added the

echo namserver

etc code to my go file along with a few other things.  I did manage to get my browser to recognize http://tower to get to the places i need.

 

Now, on my system, since I have BubbaRaid installed i get to the BubbaRaid page via http://tower (now) or previously http://192.168.2.104.  And i get to the Main unRaid page via http://tower:88 (now) or previously http://192.168.2.104:88.

 

I have a copy of the unRaid menu plugin, called 998-unraid-bubbaraid_main.awk, that i changed the line in.  It looks like this

theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/\">"

and i have the original unRaid plugin with this line of code

theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":88/main.htm\">"

From my understanding this should in theory make it work, but it is not.  When the setting are like this it actually crashes (i think) emhttp.  By that i mean i cannot get to the Main unRaid page after i change the lines to this and restart unMenu.  I have to do a whole array restart to get it to work again.

 

I am still messing with this so if you have any more pointers that would be great.

Link to comment

OK, well i have done a few more things since making that post.  I have added the

echo namserver

etc code to my go file along with a few other things.  I did manage to get my browser to recognize http://tower to get to the places i need.

 

Now, on my system, since I have BubbaRaid installed i get to the BubbaRaid page via http://tower (now) or previously http://192.168.2.104.  And i get to the Main unRaid page via http://tower:88 (now) or previously http://192.168.2.104:88.

 

I have a copy of the unRaid menu plugin, called 998-unraid-bubbaraid_main.awk, that i changed the line in.  It looks like this

theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost "/\">"

and i have the original unRaid plugin with this line of code

theHTML = "<br><iframe width=100% height=\"1200\" src=\"http://" MyHost ":88/main.htm\">"

From my understanding this should in theory make it work, but it is not.  When the setting are like this it actually crashes (i think) emhttp.  By that i mean i cannot get to the Main unRaid page after i change the lines to this and restart unMenu.  I have to do a whole array restart to get it to work again.

 

I am still messing with this so if you have any more pointers that would be great.

 

It would be interesting to see the source code in your browser when you run the "MyHost" version of the plug-in... It might help us figure out what is going wrong.  Look in particular for the <iframe> tag and what the value is for src.  Immediately after you click on the plug-in to start it, right click and select "view source" (for IE, i'm not sure what it is in other browsers off the top of my head).  you can copy and paste the code in a pst if you are unsure what you are looking for...

 

Cheers,

Matt

 

Hopefully that might shed soem light on things.

Link to comment

We have created the UnRAID Add Ons wiki page, to collect all of the information about the various types of add ons.  It is quite new and unfinished, but helpful even in its current state.  As to a central repository, I personally think it is not that important, once you have central pages with links to the downloads.  To the user, a download is just a URL, a click.  Who cares where it goes (so long as it is a trusted location).  I'm certainly not against anyone collecting them in one place, but I don't find it necessary, and it can sometimes be less convenient for individual add on authors to maintain.

 

You are certainly welcome to improve the current state of affairs!

Link to comment

Is there a central place where we can find instructions to install unMENU ***AND*** a central "repository" of the addons?

 

This deserves something like that, right?

 

You can download almost everything from this link at code.google.com I created:

 

http://code.google.com/p/unraid-unmenu/

 

It does not have some of the newer plug-ins for "go" packages, or SQL, but it has most everything else.

 

Joe L.

Link to comment

Thanks a lot, that was easier than I expected!

 

My drives appear to be fine except for one "calibration_retry_count=1" issue which shouldn't be that serious...

Sounds great.

 

Now, just use the package-manager button to "Enable Re-Install on Re-Boot" on the c++ library package, and the library will automatically be installed every time you reboot the server, and smartctl will continue to work.

 

I tried that but it won't install the package on its own after a reboot. I still have to use the package manager for that, although it says "Currently Installed.

Will be automatically Re-Installed upon Re-Boot." Any ideas?

 

Thanks!

Link to comment

Thanks a lot, that was easier than I expected!

 

My drives appear to be fine except for one "calibration_retry_count=1" issue which shouldn't be that serious...

Sounds great.

 

Now, just use the package-manager button to "Enable Re-Install on Re-Boot" on the c++ library package, and the library will automatically be installed every time you reboot the server, and smartctl will continue to work.

 

I tried that but it won't install the package on its own after a reboot. I still have to use the package manager for that, although it says "Currently Installed.

Will be automatically Re-Installed upon Re-Boot." Any ideas?

 

Thanks!

Your situation is similar to the one described here: http://lime-technology.com/forum/index.php?topic=2595.msg25245#msg25245

 

Do you have a /boot/config/etc/rc.d folder?  (it is OK if you do not, but how you proceed differs slightly if you do)

 

The basic issue is that a line is needed at the end of the config/go script to run either the rc.local_startup file or to run the /boot/packages/*.auto_install scripts

 

The basic details are in the series of posts that follow, but the solution was to add a line to the end of the "go" script

as described here: http://lime-technology.com/forum/index.php?topic=2595.msg25302#msg25302

 

Joe L.

Link to comment

Hey Joe...  I was easily able to mount a USB drive with a single NTFS partition and share it as sdh1 using unMenu's Disk Mgmt page.  The sdh1 share shows up on my network, but I'm not able to write to it.  I'm not exactly sure what I need to do to give myself permission to this share over my network.  Might you have an idea that you can share with me.  I figured the -r switch that unMenu includes in the mount command was creating a read-only share.  I tried to type the same command (minus the -r switch) in a telnet window but that didn't work.

Link to comment

Hey Joe...  I was easily able to mount a USB drive with a single NTFS partition and share it as sdh1 using unMenu's Disk Mgmt page.  The sdh1 share shows up on my network, but I'm not able to write to it.  I'm not exactly sure what I need to do to give myself permission to this share over my network.  Might you have an idea that you can share with me.  I figured the -r switch that unMenu includes in the mount command was creating a read-only share.  I tried to type the same command (minus the -r switch) in a telnet window but that didn't work.

It is read only by design...because the normal "ntfs" driver in unRAID cannot be used to write to files. (it is a very limited capability driver. It cannot create files, or change the size of existing files)

 

However, if you install the ntfs-3g driver using the package manager, it can handle reading and writing both.

 

By default I still mount it ntfs-3g drives as read-only, but you can easily change it.

 

Copy the unmenu.conf file to unmenu_local.conf

 

Then, using the Config View/Edit plug-in, edit one line in it for ntfs-3g.

 

Change it from

MOUNT_OPTIONS ntfs-3g  = -r -o umask=111,dmask=000 -t ntfs-3g

to

MOUNT_OPTIONS ntfs-3g  = -o umask=111,dmask=000 -t ntfs-3g

 

Basically, remove the "-r" for ntfs-3g.  (I don't have an NTFS volume to try this with right now, but that should do it.  If not, replace the -r with a -w).

 

Joe L.

 

 

Link to comment

First off...  I love how I can now edit my config files from within unMenu.  I also appreciate very much the unmenu_local.conf setup so that I don't have to worry about how my changes might conflict with future releases of unMenu (which I will immediately install!)

 

But, I think some more trouble-shooting is required here.  I tried the changes you suggested (both without the -r and also with the -w in place of the -r) in my unmenu_local.conf.  The interesting thing is that when I attempted to mount the usb drive is that unMenu still ran the command from the unmenu.conf and completely ignored my modifications in the unmenu_local.conf. 

 

Just for testing sake, I attempted the same two modifications directly in unmenu.conf and I got the same error that I got when I tried running the command in a telnet session:

 

dev/sdh1 mounted on /mnt/disk/sdh1
Using command: mount -o umask=111,dmask=000 -t ntfs-3g /dev/sdh1 /mnt/disk/sdh1 2>&1

$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdh1': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
          clicking on the 'Safely Remove Hardware' icon in the Windows
          taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
          your own responsibility. For example type on the command line:

            mount -t ntfs-3g -o force /dev/sdh1 /mnt/disk/sdh1

    Or add the option to the relevant row in the /etc/fstab file:

            /dev/sdh1 /mnt/disk/sdh1 ntfs-3g force 0 0

 

I have made other changes to the unmenu_local.conf that are not being ignored, so I don't understand this behavior.  Also, through the Package Manger of unMenu I do have the ntfs-3g package installed.  I believe I have all the needed pieces in place and this shoule work.

 

Reading the error message, the part about "LogFile indicates unclean shutdown" I don't fully understand.  Just the same, I'm going to attempt re-starting my server and see if this makes a diferrence.

 

Link to comment

I rebooted and basically got the exact same result as described in my prior post.  If it helps, all the drives in my array are SATA and the NTFS drive I'm trying to mount as R/W is via USB.

Let me try and find an NTFS disk I can put in a USB enclosure to check this out.  I know how I wanted it to work, but it would not be the first time I overlooked something.  Most all of what I've been doing was read-only, so I never did any tests tying to change the -r to -w for ntfs-3g.

 

Hope you'll forgive me...

 

Glad you like the new "Config view/edit" plug-in I created.  I'm really happy with the way it turned out.

 

Joe L.

Link to comment
  • Squid locked this topic
Guest
This topic is now closed to further replies.