LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2004, 06:57 AM   #1
tradewind
LQ Newbie
 
Registered: Jun 2004
Location: Hanoi, Vietnam
Distribution: RedHat
Posts: 20

Rep: Reputation: 0
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!
 
Old 06-12-2004, 10:29 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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'
 
Old 06-12-2004, 11:06 AM   #3
Villain
LQ Newbie
 
Registered: Jan 2004
Location: Munich,Germany
Distribution: Slackware 10 - 2.6.7
Posts: 25

Rep: Reputation: 15
you cant mount a tape drive, there is no file system on it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration