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 recognition

Featured Replies

Might be a silly question but...

I have been continuing to use an updated/modified preclear_disk.sh (v1.15+deltas) script for the last few years (not a plugin or a docker, the original script).

I have manually updated the script myself over the years with the various patches required.

 

I am surprised that when I look at unRAID's MAIN web GUI page (unRAID v6.8.3), it seemingly KNOWS what's going on and reports the pre-clearing operation and progress.

 

Is there some magic built into unRAID to recognize the pre-clear procedure? How is this reported/known to unRAID?

 

Thanks for any answers.

  • Author

Also, what's the most up-to-date "received wisdom" on continuing to use pre-clear (or is there a more contemporary replacement)? I am primarily continuing to use it for the "infant-mortality" detection use-case.

  • Community Expert
2 hours ago, magic144 said:

Also, what's the most up-to-date "received wisdom" on continuing to use pre-clear (or is there a more contemporary replacement)? I am primarily continuing to use it for the "infant-mortality" detection use-case.

You might find this information of interest.

 

  • Author

Right. Thanks itimpi.

Yeah, I'm pretty much exclusively swapping in bigger disks for smaller ones (rebuilding their content), so having a "clear disk" signature isn't important.

 

The "stress-test" aspect is what I'm focusing on. I have seen reference to "badblocks" (with writes) being an "as-useful" (and presumably built-in) alternative in this regard. Any comments on badblocks vs preclear_disk.sh - pluses/minuses ?

  • Community Expert

I personally have no experience of software like ‘badblocks’, the only way I have tested my own disks is via preclear; extended SMART tests; or the manufacturer’s supplied test software.   So far I have not had any drives that have failed early so I have no idea how significant a problem ‘infant mortality’ actually is in the real world and how the different testing methods fare against each other in triggering it.

  • Author

Indeed - I have never personally had a disk fail preclear. It's more a preventative step. Thanks for your own feedback.

  • Author

But does anybody know HOW unRAID seems to know a pre-clear is happening (and its state/progress) on the web GUI main page?

  • Author

I guess it has to do with this line:

# Version 1.10  - create preclear_stat_sdX files (read by myMain) - bjp999

Just seems odd that if the OS itself is reading/parsing these files, why wouldn't the OS promote/make the preclear script/function available?

  • Community Expert
29 minutes ago, magic144 said:

But does anybody know HOW unRAID seems to know a pre-clear is happening (and its state/progress) on the web GUI main page?

It's not a stock GUI function, it's the UD plugin.

  • Author
57 minutes ago, JorgeB said:

It's not a stock GUI function, it's the UD plugin.

but... the only "non-stock" plugin I have installed is Nerd Tools

I guess that functionality has been subsumed into unRAID these days. I'm glad it's there though.

Edited by magic144

  • Community Expert

Then maybe the preclear plugin now includes that, it' been a while since I've used it, but it's not the stock GUI showing that for sure.

  • Author

I just assume that whatever it was that was parsing the file got brought into unRAID - I believe it originated in unmenu. I don't have unmenu, and I don't have preclear as a plugin, only a standalone script. 🤷‍♂️

myMain original 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.