LinuxQuestions.org
Help answer threads with 0 replies.
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 10-22-2002, 11:01 AM   #1
bsengland
LQ Newbie
 
Registered: May 2001
Posts: 7

Rep: Reputation: 0
Tar from SCSII drive


What is the command to tar from a SCSII drive?
The SCSII id is #3.

I have tried tar xvf /dev/sr0 and tar xvf /dev/sr3.

Neither one works.

Brian England
 
Old 10-22-2002, 07:53 PM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
hehe... I hope I didn't get your hopes up when you got notification of a reply.... I'm asking YOU a question.... sorry.

what is a SCSII drive? not just plain old SCSI guess?

If this helps at all (I just pulled this stuff up from <kernel source>/Documentation/devices.txt)....

/dev/sda First SCSI disk whole disk
/dev/st0 First SCSI tape, mode 0
/dev/st0l First SCSI tape, mode 1
/dev/st0m First SCSI tape, mode 2
/dev/st0a First SCSI tape, mode 3

/dev/sg0 First generic SCSI device
/dev/sg1 Second generic SCSI device

/dev/osst0 First OnStream SCSI tape, mode 0

/dev/sr0 First SCSI CD-ROM
/dev/sr1 Second SCSI CD-ROM

It looks like you're trying to get into a SCSI cd-rom? do you have that enabled in the kernel?
 
Old 10-30-2002, 04:16 PM   #3
bsengland
LQ Newbie
 
Registered: May 2001
Posts: 7

Original Poster
Rep: Reputation: 0
I misspelled it. Should be SCSI.

I am attempting to restore a tape.

Where do I find <kernel
source>/Documentation/devices.txt?

Thanks
 
Old 10-30-2002, 05:09 PM   #4
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
<path to kernel> is usally /usr/src/linux.

I don't think that you can tar from the whole drive... you gotta mount it first ex:

mount /dev/sr0 /mnt

and then check out what you've got in there. If it's just one big tar, then you gotta specify what it's called. something like this:

tar -xvf /mnt/<name>.tar


On the other hand, if you want to copy everything over from the drive, you could do something like

dd if=/dev/sr0 of=/usr/src/sources/<whatever>
 
  


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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
tar command and dlt drive LuvdemHeels Red Hat 0 11-24-2004 04:29 PM
tar backup to network drive leads to memory problem SerfurJ Linux - General 2 02-15-2004 03:14 PM
CD Burning - SCSII Emulation ??? wickdgin Slackware 9 08-28-2002 11:00 PM


All times are GMT -5. The time now is 11:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration