LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to know? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-know-192632/)

tradewind 06-12-2004 05:57 AM

How to know?
 
Hi all,
When using tar to backup, it'll be an error if there is no tape in drive. Anyone know use of shell script to test the existence of tape in drive?
Thanks in advance!

Oliv' 06-12-2004 09:29 AM

I've never used tape drive, but I suppose that you need to mount it before doing your backup.
So have a look at /proc/mounts to test if your tape drive is mounted... If that's ok you can do your backup :)

Oliv'

Villain 06-12-2004 10:06 AM

you cant mount a tape drive, there is no file system on it.


All times are GMT -5. The time now is 07:55 PM.