May 25, 201115 yr How do I set my non-array drive to mount at startup? I am using 4.7 and unMenu. I currently have Sab + Sickbeard located on my non-array drive. I currently have to open unMenu and mouth the drive in Disk Management. Thank you!
May 25, 201115 yr If you have formatted that non-array drive as reiserfs, you could add the following to your go script (In this example we assume your non-array partition is sdb1) mkdir /mnt/something mount -t reiserfs /dev/sdb1 /mnt/something
July 15, 201114 yr Author still working on this.... currently /config/go #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c # determine if non-array drive online, retry upto 7 times for i in 0 1 2 3 4 5 6 7 do if [ ! -d /mnt/disk/sdc1 ] then sleep 15 fi done # If non-array drive is online, start SABnzbd, Sickbeard, and CouchPotato if [ -d /mnt/disk/sdc1 ]; then cd /mnt/disk/sdc1/.custom installpkg /boot/packages/SABnzbdDependencies-2.1-i486-unRAID.tgz python /mnt/disk/sdc1/.custom/sabnzbd/SABnzbd.py -d python /mnt/disk/sdc1/.custom/sickbeard/SickBeard.py --daemon python /mnt/disk/sdc1/.custom/couchpotato/CouchPotato.py -d fi but when i restart the server i have to quickly open unMenu and use the disk manager to mount, mount as writable, share the non array drive Thanks for your help!
July 16, 201114 yr I don't believe you open your unraid box avery day to change (or add) a non-array drive. So it is allways connected to the same port. Then it will allways have the same name (like sda or hdb) Therefore, the partition will allways be the same either (sda1 or hdc1 or ...). You can check this with umenu to be sure. That being said, you can add those lines to your go script (like Choque said) and it will mount your drive everytime. mkdir /mnt/something mount -r -w -o noatime,nodiraname -t reiserfs /dev/sdb1 /mnt/something 2>&1 You can also add some lines to the smb-extra.cong file like [share name] path = /mnt/something read only = no If your drive is not inside your box but is an USB, then you might try snap http://lime-technology.com/forum/index.php?topic=5904.0 Edit : I didn't see that you use this drive for SAB & ... You might wanna mount the drive before staring SAB. Add le mounting lines BEFORE you do anything else. Like this #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & mkdir /mnt/disk mkdir /mnt/disk/sdc1 mount -r -w -o noatime,nodiraname -t reiserfs /dev/sdc1 /mnt/disk/sdc1 2>&1 /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c
July 16, 201114 yr I don't believe you open your unraid box avery day to change (or add) a non-array drive. So it is allways connected to the same port. Then it will allways have the same name (like sda or hdb) Therefore, the partition will allways be the same either (sda1 or hdc1 or ...). Not always true. The device names are assigned as the drives initialize and are recognized by the OS. There have been many reports of a device name changing from one boot to another because devices with (nearly) identical initialization times are recognized in a slightly different order. Every drive will have an entry in /dev/disk/by-id that can be used for the mount command, and it will not change as it is based on the model/serial number of the disk. The command would then be: mount -rw -o noatime,nodiratime -t reiserfs /dev/disk/by-id/drive_id_as_appropriate-part1 /mnt/something the entry under /dev/disk/by-id with the "-part1" suffix is the name of the first partition on the disk.
July 16, 201114 yr Author I hate to sound so stupid... but Linux and command line is very new to me. Where do I go to edit / add that code? Thanks! I really appreciate all the help and info this community provides! I've already learned a lot!
July 16, 201114 yr As an alternative, you could use the UUID. First blkid /dev/sda1 (where 1 is the first partition) this will return a line similar to: /dev/sdq1: UUID="e206bf62-3b11-4fc5-9148-236ac2d275a1" TYPE="reiserfs" Then mount using: mount -rw -o noatime,nodiratime -t reiserfs -U e206bf62-3b11-4fc5-9148-236ac2d275a1 /mnt/something *edit* place that mount line into /boot/config/go to make it automatically do so during system boot
July 24, 201114 yr Author so... something like this? mount -rw -o noatime,nodiratime -t reiserfs -U fd15006b-ccd6-449c-9592-4b9c081007cf /mnt/disk/sdd1
July 25, 201114 yr Author #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c mount -rw -o noatime,nodiratime -t reiserfs -U fd15006b-ccd6-449c-9592-4b9c081007cf /mnt/disk/sdd1 # determine if non-array drive online, retry upto 7 times for i in 0 1 2 3 4 5 6 7 do if [ ! -d /mnt/disk/sdd1 ] then sleep 15 fi done # If non-array drive is online, start SABnzbd, Sickbeard, and CouchPotato if [ -d /mnt/disk/sdd1 ]; then cd /mnt/disk/sdd1/.custom installpkg /boot/packages/SABnzbdDependencies-2.1-i486-unRAID.tgz python /mnt/disk/sdd1/.custom/sabnzbd/SABnzbd.py -d python /mnt/disk/sdd1/.custom/sickbeard/SickBeard.py --daemon python /mnt/disk/sdd1/.custom/couchpotato/CouchPotato.py -d fi didn't change, still had to "Disk Management" page, then manually mount, mount as writtable, share the drive. any thoughts? Thanks!!!
July 26, 201114 yr It's possible the mount command in the script is failing because the mountpoint doesn't exist (mount doesn't create the mountpoint, so your check will not work for that reason either). I think the following should work (my additions in bold, using quote because code eats the bold tags ). You might want to consider changing the mountpoint to use a name other than sdd1, because that devicename isn't fixed and using this could lead to confusion if you ever add another partition that actually is on sdd1. I would probably replace /mnt/disk/sdd1 with /mnt/local (or something at that level that makes sense to you). #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c mkdir -p /mnt/disk/sdd1 mount -rw -o noatime,nodiratime -t reiserfs -U fd15006b-ccd6-449c-9592-4b9c081007cf /mnt/disk/sdd1 # determine if non-array drive online, retry upto 7 times for i in 0 1 2 3 4 5 6 7 do if [ ! -d /mnt/disk/sdd1/.custom ] then sleep 15 fi done # If non-array drive is online, start SABnzbd, Sickbeard, and CouchPotato if [ -d /mnt/disk/sdd1/.custom ]; then cd /mnt/disk/sdd1/.custom installpkg /boot/packages/SABnzbdDependencies-2.1-i486-unRAID.tgz python /mnt/disk/sdd1/.custom/sabnzbd/SABnzbd.py -d python /mnt/disk/sdd1/.custom/sickbeard/SickBeard.py --daemon python /mnt/disk/sdd1/.custom/couchpotato/CouchPotato.py -d fi
Archived
This topic is now archived and is closed to further replies.