From b320a94ce4b07c057739320199b3680585f5c441 Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Thu, 7 Dec 2017 21:45:22 -0800 Subject: [PATCH] Add a README.md --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0da3b47 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Share/LUN UI Fix Script + +This script finds shares that were accidentally broken in the UI and fixes it. + + +### Prerequisites + +* You need to be on ReadyNAS OS 6.8 or newer. This script containts configuration file data for 6.8 that may or may not work with older versions. +* Either the ReadyNAS needs internet access or you need to copy/paste the data into a file on the NAS via SSH. +** For internet access, ensure you can reach the internet and DNS is working properly. +* This does not work in `Tech Support mode`. You must be in `Normal mode` and `readynasd` needs to be running. + +### Installing + +#### Network-enabled ReadyNAS +To quickly resolve the shares and LUNs not showing in the UI, you can copy/paste the following command into a terminal and the script will automatically run. + + +``` +root@readynasos:#/ curl https://gitlab.codycook.us/readynas-scripts/share_lun_ui_fix.sh/raw/master/share_lun_ui_fix.sh | bash +``` + +Refresh the UI and the shares should be restored. + +#### Intenret-disabled ReadyNAS +* Download the contents of [https://gitlab.codycook.us/readynas-scripts/share_lun_ui_fix.sh/raw/master/share_lun_ui_fix.sh](https://gitlab.codycook.us/readynas-scripts/share_lun_ui_fix.sh/raw/master/share_lun_ui_fix.sh) +* Copy the data into your clipboard. +* In the ReadyNAS terminal, type: `vi /root/share_lun_ui_fix.sh` +* Push `i` to enter insert mode, then right click into the console. This will paste your clipboard (in most cases). Only click once. +* Push `esc` and then type `:wq` then hit enter. +* Type `chmod +x /root/share_lun_ui_fix.sh` then type `/root/share_lun_ui_fix.sh` +* The script will run.