Sometimes when I hotplug a SATA device to/from say /dev/sdb on my
Mandriva 2009.1 system, it malfunctions/times out, and cannot be
detected. Then when I plug in another SATA device, it gets detected
as /dev/sdc even though /dev/sdb is no longer there. How can I
reclaim /dev/sdb in this case?
At Thu, 13 Aug 2009 19:12:39 -0700 (PDT) galapogos <goister@gmail.com> wrote:
>
> Hi
>
> Sometimes when I hotplug a SATA device to/from say /dev/sdb on my
> Mandriva 2009.1 system, it malfunctions/times out, and cannot be
> detected. Then when I plug in another SATA device, it gets detected
> as /dev/sdc even though /dev/sdb is no longer there. How can I
> reclaim /dev/sdb in this case?
You can't (short of rebooting).
You should consider volume labels or UUIDss and not depend on SCSI device names.
galapogos wrote:
> Hi
> Sometimes when I hotplug a SATA device to/from say /dev/sdb on my
> Mandriva 2009.1 system, it malfunctions/times out, and cannot be
> detected. Then when I plug in another SATA device, it gets detected
> as /dev/sdc even though /dev/sdb is no longer there. How can I
> reclaim /dev/sdb in this case?
I have never gotten anywhere near sdz (using Redhat) but I assume there is
some scheme after that. Why is it you want to recover it? If you have some
mount script look into
mount -L label
and see if that is not a better way to do what you want.
As another shot in the dark I have found it the least frustrating to turn off
all automount procedures for a DVD/CD drive.