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.

preclear.sh needs update due to movement of mdcmd

Featured Replies

unRaid 6.1 moved /root/mdcmd to /usr/local/sbin/mdcmd.

 

The preclear script still uses /root/mdcmd. I think this might mean that preclear will not detect whether user is trying to wipe a disk already in the array.

 

The old preclear thread seems to be closed: http://lime-technology.com/forum/index.php?topic=2817.0, I cannot reply on that thread, and the download link is still there, so that could be a problem people accidentally downloading that link.

 

A change like seems to work:

# unRaid 6.0.1 -> 6.1.2 moved mdcmd from /root/mdcmd to /usr/local/sbin/mdcmd
mdcmd_cmd=/usr/local/sbin/mdcmd
[[ ! -n $(type -P "$mdcmd_cmd") ]] && mdcmd_cmd=/root/mdcmd
devices=`$mdcmd_cmd status | strings | grep rdevName | sed 's/\([^=]*\)=\([^=]\)/\/dev\/\2/'` 

 

instead of this

 

devices=`/root/mdcmd status | strings | grep rdevName | sed 's/\([^=]*\)=\([^=]\)/\/dev\/\2/'` 

 

Best Alex

as a temporary fix you could try this in the command prompt before you run preclear

 

ln /root/mdcmd /usr/local/sbin/mdcmd

  • Author

Yeah, I've added that to my config/go-file as I expect there might be other scripts with similar problems. I have also searched my flash drive for 'mdcmd' and fixed all the /root/mdcmd references I found, but still some might be hidden inside archived files I expect.

 

Personally I've just fixed my copy of the preclear script, but that won't help others, hence this thread.

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.