PzrrL Posted August 6, 2020 Share Posted August 6, 2020 (edited) Hi there! I have been using UnRaid for awhile already, and I have 2 idle disks would like to preclear them first. iirc, I did once to them but I am not sure so I would like to preclear them again. But then I am having issue while dealing with sdj and sdm. When I use binhex-preclear docker to preclear sdj and sdm with command below: preclear_binhex.sh -f -M 4 /dev/sdj I got an error below: blockdev: ioctl error on BLKRRPART: Device or resourece busy So I tried to delete the partitions in UD for sdj and sdm, (destructive mode enabled), and got the errors as below: Aug 6 11:04:09 UnRaid unassigned.devices: Removing partition '1' from disk '/dev/sdj'. Aug 6 11:04:09 UnRaid unassigned.devices: Remove parition failed result 'Error: Partition doesn't exist. ' Aug 6 11:04:23 UnRaid unassigned.devices: Removing partition '1' from disk '/dev/sdm'. Aug 6 11:04:23 UnRaid unassigned.devices: Remove parition failed result 'Error: Partition doesn't exist. ' P.S. I did all this while the array has started, but this should not be a problem. My goal overall is just to preclear both of them, then take out from the UnRaid, may I know how? Thanks! Edited August 6, 2020 by PzrrL Solved Quote Link to comment
JorgeB Posted August 6, 2020 Share Posted August 6, 2020 Try: wipefs -a /dev/sdX1 if successful then wipefs -a /dev/sdX Quote Link to comment
PzrrL Posted August 6, 2020 Author Share Posted August 6, 2020 (edited) 1 hour ago, johnnie.black said: Try: wipefs -a /dev/sdX1 if successful then wipefs -a /dev/sdX Thanks. I tried and the following is the output (seems not working with the 2nd command😞 root@UnRaid:~# wipefs -a /dev/ sdj1 wipefs: error: /dev/: probing initialization failed: Is a directory root@UnRaid:~# wipefs -a /dev/sdm1 /dev/sdm1: 4 bytes were erased at offset 0x00000000 (xfs): 58 46 53 42 root@UnRaid:~# wipefs -a /dev/sdj /dev/sdj: 2 bytes were erased at offset 0x000001fe (dos): 55 aa /dev/sdj: calling ioctl to re-read partition table: Device or resource busy root@UnRaid:~# wipefs -a /dev/sdm /dev/sdm: 2 bytes were erased at offset 0x000001fe (dos): 55 aa /dev/sdm: calling ioctl to re-read partition table: Device or resource busy root@UnRaid:~# Now, both of them are not mountable (with greyed mount button) in Unassigned Devices. Edited August 6, 2020 by PzrrL Add one more line at the end Quote Link to comment
Solution JorgeB Posted August 6, 2020 Solution Share Posted August 6, 2020 sdj1 wasn't successful, so you shouldn't have run sdj, though it won't matter much, reboot and try running preclear again. Quote Link to comment
PzrrL Posted August 6, 2020 Author Share Posted August 6, 2020 53 minutes ago, johnnie.black said: sdj1 wasn't successful, so you shouldn't have run sdj, though it won't matter much, reboot and try running preclear again. Thanks! After another rebooting, they shown as mountable, and I am able to preclear them now. Thank you so much! 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.