Subject: Re: telling the OS that wd1 is really gone?
To: Hubert Feyrer <hubert@feyrer.de>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: netbsd-users
Date: 03/10/2007 17:11:55
Hubert Feyrer wrote:
>
> I had a second disk in my router that I needed for something else, and 
> as it was not mounted i just unplugged it while running. Now 
> /etc/security (iostat -x) complains every night. How do I tell the 
> system that the disk is gone for good?
>
> I've tried "atactl /dev/atabus0 reset" but that didn't help.
>
>
>  - Hubert

Since we're already in the domain of gross hacks :)

ddb> write securelevel 316477 # "wd1"
netbsd:securelevel 0xffffffff = 0x316477
ddb> call iostat_find(securelevel)
0xc109f200
ddb> call iostat_free(c109f200)
0xc1104000
ddb> write securelevel -1
netbsd:securelevel 0x316477 = 0xffffffff