LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-15-2017, 02:34 AM   #1
Lionelo
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Rep: Reputation: Disabled
Restoring Data using cpio -icvdumC51200 "xxxx/*" </dev/st0


Backup were done using a Quantum Ultrium3 tape drive.
Restore were done using the same device.
We replaced the Quantum Ultrium3 with a Tandberg Ultrium3
We cannot restore date that was done using the Quantum
The backup command is the same for both devices
find . -print | cpio -ocvC51200 > /dev/nst0
and the restore command is the same for both devices
cpio -icvdumC51200 "xxxx/*" </dev/st0

Any ideas
Thanks
Lionel
 
Old 11-15-2017, 03:33 AM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome to LQ. What is the exact error (msg)??? OS?

Might the new drive be st1? ls -l /dev/st*
 
Old 11-15-2017, 03:45 AM   #3
Lionelo
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I dont get a error msg the restore seems to hang
The tape I'm trying to retore was backup up using /dev/st0
The backups to the new drive is using /dev/st0
 
Old 11-15-2017, 03:57 AM   #4
Lionelo
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Restoring Data using cpio -icvdumC51200 "xxxx/*" </dev/st0

I dont get a error msg the restore seems to hang
The tape I'm trying to retore was backup up using /dev/st0
The backups to the new drive is using /dev/st0
 
Old 11-15-2017, 09:27 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
One method I have used in the past to "test" the basic functionality of a tape drive is via the dd command.
Code:
Write to tape
dd if=/some/file of=/dev/st0

Read from tape
dd if=/dev/st0 of=/some/file1
If there are no errors and file=file1 then I would assume that it is working correctly.
 
Old 11-15-2017, 11:28 PM   #6
Lionelo
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the reply Michael
The current backups and retores on the Tandberg are working fine
My problem is I need to restore a file from a tape that was backed up using a Quantum drive and using the same cpio command
 
Old 11-17-2017, 01:01 AM   #7
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Ah: 'hang'!!! Use `strace` [-f -o mylog -p PID#] [cmd]
to see what's it's doing.
 
  


Reply



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
[SOLVED] Automount fails with "key "xxxx" not found in map source(s)" thealmightyos Linux - General 3 08-24-2023 02:02 PM
[SOLVED] Checking "Remember this Application for "xxxx" Files" does not work p3aul Ubuntu 1 07-31-2012 11:42 PM
recover data after running "dd if=/dev/zero ..." for a few seconds... Heeelp! ste85 Linux - Newbie 19 03-20-2009 09:04 PM
in linux redhat 8 what does "kernel: st0:block limits 1 - 16777215" mean ? lwsam01 Linux - Newbie 1 08-07-2008 09:45 AM
error "tar (child): /dev/st0: Wrote only 0 of 10240 bytes? hocheetiong Linux - Newbie 3 02-03-2008 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:41 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
Open Source Consulting | Domain Registration