1828368 Members
2673 Online
109976 Solutions
New Discussion

TAR Error

 
SOLVED
Go to solution
Harstad
Advisor

TAR Error

Hi

Doing a tar cvf /dev/st0 / ....give the following error:

tar: Can´t open device: No such device.

Could you please help me?

Than
4 REPLIES 4
Mark Grant
Honored Contributor
Solution

Re: TAR Error

It means that your tape drive isn't connected, there's no tape in it or it doesn't work. Look at the output of "dmesg" and see if /dev/st0 is actually being recognized.
Never preceed any demonstration with anything more predictive than "watch this"
Steven E. Protter
Exalted Contributor

Re: TAR Error

It also might mean there is no tape in the drive or its write protected.

tar defaults to the primary tape drive on mos systems.

Just in case you have the device wrong, try this:

tar cf /filelist

That might default and write to tape.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: TAR Error

Ooops on myu command

tar cv /filelist

10 lashes on my fingers with a wet noodle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: TAR Error

Actually, GNU tar will write to the STDOUT if you don't specify a 'file' (-f) for output.

You'll want to check with 'mt -f /dev/st0 status' to see if the tape is responding correctly.

If that comes back with an error, you might want to look in '/proc/scsi/scsi' to make sure a 'Sequential-Access' device is listed.

If that fails, then as Mark suggested, check the 'dmesg' command (and if you have one, /var/log/dmesg).
One long-haired git at your service...