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.

[Support] binhex - Preclear

Featured Replies

31 minutes ago, wgstarks said:

Would be better to do both read and write options to stress test the drive. I usually do 3 complete cycles.

Thank you, will do that.

  • Replies 267
  • Views 67.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I  have put together a Tutorial for using the binhex-preclear Docker.  It is intended for first time users and any user who might not be comfortable using the command line.  Binhex-Preclear Docker

  • the point is not actually to prepare the disk for unraid, that is just a nicety that this utility can/should do, the MAIN purpose is to exercise your drive and ensure it doesn't suffer from infant mor

  • really?! taken from the second (and only post in this thread):-   PLEASE read the FAQ for this image before posting:- https://github.com/binhex/documentation/blob/master/docker/faq/prec

Posted Images

Maybe I'm misunderstanding something but I ran the preclear docker script on my new 4 TB disk. Next day I added it to the array and now UNRAID is telling me it's clearing. Just wondering what the point of preclear is if UNRAID does it anyway?

 

 

2021-12-16_12-25-08.jpg

If I had to guess, because you didn't have the flag set to clear it as GPT (probably some warning showed up in the script)

15 minutes ago, Squid said:

If I had to guess, because you didn't have the flag set to clear it as GPT (probably some warning showed up in the script)

 

Does this look OK? I'm not a hard drive expert lol

 

 

 

 

2021-12-16_11-39-02.jpg

1 hour ago, rosydog said:

Does this look OK?

yes

No SMART attributes are FAILING_NOW and all zeros under that is what you are looking for.

  • Author
2 hours ago, rosydog said:

Just wondering what the point of preclear is if UNRAID does it anyway?

the point is not actually to prepare the disk for unraid, that is just a nicety that this utility can/should do, the MAIN purpose is to exercise your drive and ensure it doesn't suffer from infant mortality. 

I pulled drive from a brand-new desktop-backup USB HDD and added it to my server (cheap way of getting drives).

 

/usr/local/bin/preclear_binhex.sh -f -c 3 -M 3 /dev/sdh

 

After executing the command as per instructions, i see there's 2 partitions, and the boot sector is in 63, not 64.

I don't really know the significance of any of this, is it important? Is the disk OK to be precleared and used in unraid?

 

I assume it's like this because its probably factory-formatted to windows for use with windows?

 

 

 

image.png.7a154a2cb7f3c9d5a940db37fbb8f758.png

Edited by jj_uk

See here for more discussion about using sector 63 vs 64:

 

    https://forums.unraid.net/topic/9333-clearing-confusion-on-af-drives/

 

In the second post of this thread is a link to a Tutorial which has the command line switch to force a start on sector 64.

 

     https://forums.unraid.net/topic/83465-support-binhex-preclear/?tab=comments#comment-773206

 

(I seem to recall that using sector 63 will cause Unraid to assume that the drive has not been precleared...)

Thanks for the reply. The doc states:

    "-C 64 = convert an existing pre-cleared disk to use sector 64 as a starting sector"

 

So do I run my pre-clear as normal, ignoring the warning (as per prev post's image), then run the -C 64 command when it's finished?

How can I know if the other drives in my system are 63 or 64? They were pre-cleared using the plugin back in 2018.

 

I believe you use a

-A 

 

as a switch  to 'force' the starting sector to be 64 when you do the preclear . The  -C 64 is an after-the-fact type of thing.   (One issue is that I thought this issue had aged out existence after about 2011.  People just can't recall what all the factors involved were and what they meant...)

 

4 minutes ago, Frank1940 said:

I believe you use a

-A 

 

as a switch  to 'force' the starting sector to be 64 when you do the preclear . The  -C 64 is an after-the-fact type of thing.   (One issue is that I thought this issue had aged out existence after about 2011.  People just can't recall what all the factors involved were and what they meant...)

 

Thanks for your help. I'll run the preclear with -A.

 

6 minutes ago, jj_uk said:

Thanks for your help. I'll run the preclear with -A.

 

IIRC -A is no longer required. It’s now the default.

Just coming to the end of my run. This error "post_read_err: command not found" is flashing up on the screen. It is something to be concerned about?  The process seems to be continuing as normal.

 

image.png.b367ab2527da14fa1847106a4a2ce011.png

  • 2 weeks later...

binhex, thank you for this wonderful docker

  • 1 month later...

Hi,

 

just tried using the script for the first time and  I get the message that partition will start on sector 63.

In the documentation it says that it will start on sector 64 for drives larger >2,2TB.

 

So shouldn't this be 64 here?

 

preclear.jpg.a6d5c9252c948cebffbec3c5a3b2882f.jpg

My understanding is the script will automatically fox this for you.

 

I was wondering, because it does not say it will start on sector 64.

When using the -A option it works of course, but shouldn't this be necessary anymore?

I think -A is the default, so not explicitly required.

  • 2 weeks later...

Duuude... This disk is awesome!!!!

 

image.png.618a121359e99597a76583cf7e56c5f1.png

 

🤣

On a slightly more serious note...

 

I just noticed that the log for this disk (from Unassigned Devices) has a multitude of these entries:

 

Mar 3 10:51:16 NAS emhttpd: spinning down /dev/sdn
Mar 3 11:21:17 NAS emhttpd: spinning down /dev/sdn
Mar 3 11:51:18 NAS emhttpd: spinning down /dev/sdn
Mar 3 12:21:19 NAS emhttpd: spinning down /dev/sdn
Mar 3 12:51:20 NAS emhttpd: spinning down /dev/sdn
Mar 3 13:21:21 NAS emhttpd: spinning down /dev/sdn
Mar 3 13:51:22 NAS emhttpd: spinning down /dev/sdn
Mar 3 14:21:23 NAS emhttpd: spinning down /dev/sdn
Mar 3 14:51:24 NAS emhttpd: spinning down /dev/sdn

 

Why would the OS be trying to spin down a disk every 30 minutes during a preclear run? (Yes, sdn is the device that I'm preclearing.)

  • 4 months later...
On 12/25/2021 at 5:34 PM, jj_uk said:

Just coming to the end of my run. This error "post_read_err: command not found" is flashing up on the screen. It is something to be concerned about?  The process seems to be continuing as normal.

 

image.png.b367ab2527da14fa1847106a4a2ce011.png

 

I am getting this same error with the same line number... I cant see that anyone had actually responded to this... could someone advise?

Edited by ozma64

  • 3 months later...

Great docker and guide.

 

Well done

  • 1 month later...

hey all,  this is my first run of Binhex-Preclear. Is someone able to tell me if this drive is good not? I am worries & confused the new/ old value and failure_threshold section, because I don't know how to read it. I have no clue how to setup the emailing a report; is there a guide somewhere ?

 

Thank you,

Wing

Screen Shot 2022-12-27 at 12.18.10 PM.png

Screen Shot 2022-12-27 at 12.21.29 PM.png

Edited by winglam

  • Author
hey all,  this is my first run of Binhex-Preclear. Is someone able to tell me if this drive is good not? I am worries & confused the new/ old value and failure_threshold section, because I don't know how to read it. I have no clue how to setup the emailing a report; is there a guide somewhere ?
 
Thank you,
Wing
1922899923_ScreenShot2022-12-27at12_18_10PM.thumb.png.0686d39a0d7f7a7dc5573e6db77b36bc.png
1578998085_ScreenShot2022-12-27at12_21_29PM.png.571e87a47dc11357d3367cdd7d03015e.png
Nothing wrong with that drive, looks good to me

Sent from my 22021211RG using Tapatalk

Guest
This topic is now 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.