How do I reinitialise a device ?
This is a discussion about How do I reinitialise a device ? in the Linux Hardware category; I have a tape drive that I use for backups and occasionally it fails for various reasons. I kill the process but the device (/dev/st0) is still showing up as busy (mt status). The only way I have been able to get it back up and running is by rebooting the server.
I have a tape drive that I use for backups and occasionally it fails for various reasons. I kill the process but the device (/dev/st0) is still showing up as busy (mt status). The only way I have been able to get it back up and running is by rebooting the server. Is there a way to reinitialise the device so that a reboot is not required?
Thanks in advance.
Thanks in advance.
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Oct 23
Feb 5
0
1 minute
Responses to this topic
What is your current working directory ( $PWD) when trying to umount the drive? Because if your directory is under the mount point when you try to umount it won't work..
a bit of sh work should fix your dilemma:
as root, do
Code:
That should tell you the Process that still has the device open. If it iz zombie'd or won't die... a reboot is about the only thing you can do... Except editing memory space and hash tables manually....
But, I am guessing you are *NOT* a Expert UNIX GEEK like me with 15+ years of *NIX (DEC OSF/1, Tru64, HP-UX, Solaris, AIX, BSDi, *BSD, IRIX, SunOS, Linux... etc...) I'd be nervous doing that...
as root, do
Code:
lsof | grep -e "/dev/st0" | less
That should tell you the Process that still has the device open. If it iz zombie'd or won't die... a reboot is about the only thing you can do... Except editing memory space and hash tables manually....
But, I am guessing you are *NOT* a Expert UNIX GEEK like me with 15+ years of *NIX (DEC OSF/1, Tru64, HP-UX, Solaris, AIX, BSDi, *BSD, IRIX, SunOS, Linux... etc...) I'd be nervous doing that...
OP
Thanks for your comments
I am not competent enough to edit memory space or hash tables (at least at this point in time).
Looks like a reboot is the only solution for me for the time being.
I am not competent enough to edit memory space or hash tables (at least at this point in time).
Looks like a reboot is the only solution for me for the time being.