LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-25-2006, 07:59 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,640

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279

Just in case you had not figured it out yet a tape drive can not be mounted. It is used just like a sequential file.

Have you found a suitable backup application yet?

The correct syntax is
modprobe st buffer_kbs=128 (not buffers_kbs) (Cardy had a typo in the second post)

Last edited by michaelk; 01-25-2006 at 08:21 PM.
 
Old 01-25-2006, 08:42 PM   #17
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
That's what I needed to know. Thanks.

After adding the modprobe st line to the rc.modules file and rebooting, how would I refer to the tape drive in a tar command? For instance, how would I write the entire /home directory to the tape?
 
Old 01-25-2006, 08:51 PM   #18
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Going from memory, it would be:

tar cvf /dev/st0 /home

To restore, you would do:

tar xvf /dev/st0

Pretty straight forward, really.

Other than that, there are other commands to erase the tape, rewind it, and eject it. Probably want to put everything into a script.
 
Old 01-25-2006, 09:18 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,640

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Futhermore using,
/dev/st0 will rewind the drive upon completion of an action.
/dev/nst0 will not rewind the tape.

http://www.linuxlinks.com/Software/Backup/index.shtml
 
Old 01-25-2006, 09:27 PM   #20
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MS3FGX
Going from memory, it would be:

tar cvf /dev/st0 /home

To restore, you would do:

tar xvf /dev/st0

Pretty straight forward, really.

Other than that, there are other commands to erase the tape, rewind it, and eject it. Probably want to put everything into a script.
Great!

Where would I find a listing of these commands to use for a tape?
 
Old 01-25-2006, 09:49 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,640

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
The mt utility command controls the tape drive.
http://www.die.net/doc/linux/man/man1/mt.1.html
 
Old 01-26-2006, 02:03 PM   #22
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
It's correctly setting the buffer now, but I'm getting two errors on boot after showing that the modprobe st command worked

Code:
st: Can't allocate new tape buffer (nbr 0).
st: Unable to allocate new static buffer.
Any ideas?
 
Old 02-24-2006, 06:05 AM   #23
tuantq
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Hi, i am a newbie,i want to know what command show when tape is full, and the capacity of the tape, the capacity free of the tape, so can u help?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I use a Tape drive monkeymartin Slackware 4 05-26-2006 06:46 AM
Floppy drive interfaced tape drive in Slackware isolationist Linux - Hardware 6 02-13-2006 05:54 AM
tape drive tincat2 Linux - Hardware 1 02-13-2006 05:50 AM
Tape Drive sph90457 Linux - Hardware 2 02-13-2006 05:47 AM
Help with tape drive smgr12 Red Hat 2 08-29-2005 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:03 AM.

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
Open Source Consulting | Domain Registration