[Solved] Unable to mount/delete partitions in Unassigned Devices


Go to solution Solved by JorgeB,

Recommended Posts

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.

 

image.thumb.png.1e860d3dd1250c84aa825b11f3189657.png

 

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 by PzrrL
Solved
Link to comment
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 by PzrrL
Add one more line at the end
Link to comment
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!

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.