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.

unMenu myMain config file editing

Featured Replies

I want to edit the mymain config file to add notes on each drive.  I saw the post about preferably editing the mymain_local config file; however, it is not an option on the unmenu config view/edit screen.  I did locate a mymain_local config sample file on my USB drive; however, I don't even know where to begin to edit the sample to work with my specific computer.  Does anyone have any instructions or a way to simplify what I need to do? Or am I just making this seem more difficult than it really is? 

I want to edit the mymain config file to add notes on each drive.  I saw the post about preferably editing the mymain_local config file; however, it is not an option on the unmenu config view/edit screen.  I did locate a mymain_local config sample file on my USB drive; however, I don't even know where to begin to edit the sample to work with my specific computer.  Does anyone have any instructions or a way to simplify what I need to do? Or am I just making this seem more difficult than it really is? 

You are probably thinking it is more complicated than it really is.

 

Make a copy of the myMain.conf config file and name it  myMain_local.conf .  Put it in the same folder as myMain.conf.  make sure you capitilize the name as shown here.

 

If you are logged in at the console or via telnet, change directory to where you installed unmenu, then execute the "cp" (copy) command as shown in this example:

cd /boot/unmenu

cp  myMain.conf  myMain_local.conf

The  myMain_local.conf file will then show up in the unmenu config view/edit screen. It did not show up previously, because it did not exist.

 

Once you open up the file to edit it, you will need to add a line or two, or more, per disk

Those lines will be like these:

 

SetDriveValue(5QG0L000, purchdate,     "2/1/08")

SetDriveValue(5QG0L000, purchdate_raw, "20080201")

SetDriveValue(md3, usage,         "Family Movies")

 

The first column can be either the serial number of the drive, or the physical device sdb or the array device md3

If you are tracking purchase date, it would be best to use serial number.  If usage, perhaps the "md" device is best as the actual disk may change if you replace it.

 

There are other attributes you may set per drive... They are

SetDriveValue(5QG0L000, slot,          "A")

SetDriveValue(5QG0L000, id,            "000")

SetDriveValue(5QG0L000, share,         "dvd1")

SetDriveValue(5QG0L000, interface,     "JMicron")

SetDriveValue(5QG0L000, modelname,     "Barracuda 7200.10")

SetDriveValue(5QG0L000, cache,         "16")

SetDriveValue(5QG0L000, borndate,      "1/18/07")

SetDriveValue(5QG0L000, borndate_raw,  "20070118")

SetDriveValue(5QG0L000, purchdate,     "2/1/08")

SetDriveValue(5QG0L000, purchdate_raw, "20080201")

SetDriveValue(5QG0L000, usage,         "Movies")

 

The sample local .conf file has these commented out (they have a leading "#") so you can copy these lines, edit as needed, deleting the leading "#" to make them effective.

 

Joe L.

  • Author

Thanks! Will try this out when I get home tonight.

Thanks! Will try this out when I get home tonight.

If you want, it is actually easier to ONLY put the few lines for your drives in the

myMain_local.conf file.

 

as an example, I put just these lines in my myMain_local.conf file

# share column definitions

SetDriveValue(sdf, share,   "parity drive")

SetDriveValue(md1, share,   "Movies [A-D]")

SetDriveValue(md2, share,   "Movies [A-D]")

SetDriveValue(md3, share,   "Movies [A-D]<br>Movies [E-J]")

SetDriveValue(md4, share,   "Movies [E-J]")

SetDriveValue(md5, share,   "Movies [E-J]")

SetDriveValue(md6, share,   "Movies [E-J]<br>Movies [K-O]")

SetDriveValue(md7, share,   "Movies [K-O]<br>Movies [P-S]")

SetDriveValue(md8, share,   "Movies [P-S]")

#SetDriveValue(md9, share,   "not installed")

SetDriveValue(md10, share,  "Movies [P-S]<br>Movies [T-Z]")

SetDriveValue(md11, share,  "Movies [T-Z]")

 

# usage column definitions

SetDriveValue(hdi, usage,  "\"Unprotected\" temp files")

SetDriveValue(md11, usage,  "Usage note disk11")

SetDriveValue(md10, usage,  "Usage note disk10")

 

That is all that is in the "local" file.   It works perfectly and keeps your disk notes separate from the rest of the configuration for myMain.

 

Notice I had to "escape" the quote marks for drive "hdi" by preceding them with a backslash.    I also was able to force a newline break in the share description with the html "<br>" tag.

 

Lines that are comments are preceded with a "#"  Also... it seems to not care if edited with a ms-dos editor, trailing carriage returns are not an issue, so you can use any editor you like to create and manage the file.  (Great job bjp999!!)

 

Joe L.

  • Author

I see you noted the drives Share column with alphabetical movies.  I just dump all my movies into a single folder and use mediabrowser via 7MC to do my organizing, etc.  I use user shares to make everything appear as part of one large folder.  I assume I would only need the share value if I'm using drive shares? 

I see you noted the drives Share column with alphabetical movies.  I just dump all my movies into a single folder and use mediabrowser via 7MC to do my organizing, etc.  I use user shares to make everything appear as part of one large folder.  I assume I would only need the share value if I'm using drive shares? 

My collection of movies is fairly large, and I do have an unusual configuration in that I have created scripts that "link" the movies into multiple directories, so I can browse them by alpha range as well as a consolidated listing of all movies in a "Movies" share.

 

Recently I created a "spin-up" script that will spin up the drives affiliated when a "share" is accessed by one of my media players.  As a result, when one of my media players chooses a share named "Movies A-D" only the disks with those movies are spun up before being accessed to play a movie.  (My media players will time-out if it has to wait for a drive to spin-up...)

 

After I created the spin-up script, I created yet another script to physically move my movies so each alpha range only used a few drives.  This way, only a few drives spin up when an "Movies [X-Z]" range is selected.  In that way, only a few drives are typically spun up.

 

So, my "share" notes show that A-D resides on disk1,2 and 3.  E-J resides on 3,4,5 and 6.  K-O resides only on disk6.  P-S exists on disk7,8, and 10, and T-Z resides on 10 and 11.  I've allocated the movies so that each of the drives has an equal percentage of the spare space in my array based on its total capacity.  The re-allocate.shares script I created does this.  Every once in a while, I re-run it and it created "mv" (move) commands to re-balance the disks.  This way I can always add a movie to the correct drive when I add a movie to my collection.  the last time I ran it, it created the following list of "mv" commands:

mv -v "/mnt/disk1/Movies/BRINGING_DOWN_THE_HOUSE.ISO" /mnt/disk2/Movies/

mv -v "/mnt/disk2/Movies/COLD_MOUNTAIN.ISO" /mnt/disk3/Movies/

mv -v "/mnt/disk3/Movies/FANTASTIC_FOUR.ISO" /mnt/disk4/Movies/

mv -v "/mnt/disk4/Movies/HELLBOY_II_THE_GOLDEN_ARMY.ISO" /mnt/disk5/Movies/

mv -v "/mnt/disk5/Movies/JOHN_Q.ISO" /mnt/disk6/Movies/

mv -v "/mnt/disk6/Movies/MURDER_AT_1600.ISO" /mnt/disk7/Movies/

mv -v "/mnt/disk7/Movies/RISING_SUN.ISO" /mnt/disk8/Movies/

mv -v "/mnt/disk7/Movies/ROADHOUSE.ISO" /mnt/disk8/Movies/

mv -v "/mnt/disk7/Movies/ROAD_TO_PERDITION.ISO" /mnt/disk8/Movies/

mv -v "/mnt/disk8/Movies/STAR_TREK-04-THE_VOYAGE_HOME.ISO" /mnt/disk10/Movies/

mv -v "/mnt/disk8/Movies/STAR_TREK-05-THE_FINAL_FRONTIER.ISO" /mnt/disk10/Movies/

mv -v "/mnt/disk11/Movies/TAKING_OF_PELHAM_1_2_3.ISO" /mnt/disk10/Movies/

mv -v "/mnt/disk10/Movies/THE_LAST_SAMURAI.ISO" /mnt/disk11/Movies/

mv -v "/mnt/disk10/Movies/THE_LAST_SENTINEL.ISO" /mnt/disk11/Movies/

mv -v "/mnt/disk10/Movies/THE_LONG_KISS_GOODNIGHT.ISO" /mnt/disk11/Movies/

 

I did this all because my current media players are limited in how they can display a list of movies and a single folder list was just getting too big.  When I access the collection from the home-theater-PC, I use the "Movies" share which has the entire listing of nearly 1000 titles. 

 

Joe L.

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.