Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* What is /dev/sr0?
@ 1998-06-24 14:40 Steve Frampton
  1998-06-24 14:57 ` Paul Tomblin
  1998-06-24 15:08 ` Quant-X Alpha Linux Support
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Frampton @ 1998-06-24 14:40 UTC (permalink / raw)
  To: axp-list

Hello:

I was playing around with my Exabyte 8200 under 5.0 (alpha), trying to get
it to work (I got it to work as st0 under an Intel box previously).  I
kept getting "Operation not supported by this device" when I tried using
tar.

For some reason I tried to do a 'tar zcvf /dev/sr0 *' and -- things
started getting copied -- about 5 Mb of stuff before I noticed the tape
drive wasn't spinning, so I aborted.

If I do a 'tar ztvf /dev/sr0' I see all the files that got tarred before I
aborted.  I removed the tape from the drive and tried again -- yep, there
they are again!

I was just wondering what this device is -- a ramdisk, perhaps? -- and if
I might have done something bad.  :-(

--------------< LINUX: The choice of a GNU generation. >--------------
Steve Frampton  <3srf@qlink.queensu.ca>  http://qlink.queensu.ca/~3srf


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What is /dev/sr0?
  1998-06-24 14:40 What is /dev/sr0? Steve Frampton
@ 1998-06-24 14:57 ` Paul Tomblin
  1998-06-24 15:08 ` Quant-X Alpha Linux Support
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Tomblin @ 1998-06-24 14:57 UTC (permalink / raw)
  To: axp-list

Quoting Steve Frampton (frampton@mail.flarc.edu.on.ca):
> 
> If I do a 'tar ztvf /dev/sr0' I see all the files that got tarred before I
> aborted.  I removed the tape from the drive and tried again -- yep, there
> they are again!
> 
> I was just wondering what this device is -- a ramdisk, perhaps? -- and if
> I might have done something bad.  :-(

Do an "ls -l" of /dev/sr0 and see if it's even a device driver.  You might
have just created a normal file in /dev, which isn't very useful.

crw-rw----   1 root     disk       9,   0 Jul  1  1996 /dev/st0
^
that's the flag that will tell you it's a character special device, rather
than a plain file.  You might also see a 'b' there for block special.  Either
way, device files will have those two numbers (in this case 9, 0) which tell
you the major and minor device number.

You can look up major device numbers in /usr/include/linux/major.h

-- 
Paul Tomblin, ptomblin@xcski.com.
"It's just a cardboard model.  Fake security"
"Jeez, that's a first for Microsoft"
   - User Friendly


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What is /dev/sr0?
  1998-06-24 14:40 What is /dev/sr0? Steve Frampton
  1998-06-24 14:57 ` Paul Tomblin
@ 1998-06-24 15:08 ` Quant-X Alpha Linux Support
  1 sibling, 0 replies; 3+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-06-24 15:08 UTC (permalink / raw)
  To: axp-list

Hi Steve !

> For some reason I tried to do a 'tar zcvf /dev/sr0 *' and -- things
> started getting copied -- about 5 Mb of stuff before I noticed the tape
> drive wasn't spinning, so I aborted.
> 
> If I do a 'tar ztvf /dev/sr0' I see all the files that got tarred before I
> aborted.  I removed the tape from the drive and tried again -- yep, there
> they are again!
> 
> I was just wondering what this device is -- a ramdisk, perhaps? -- and if
> I might have done something bad.  :-(

On old systems /dev/sr* are the SCSI-CDROM's. But if tar is working 
that way, your should do a ls -l /dev/sr0 and check the major number
against /usr/src/linux/Documentation/devices.{txt,tex}

For tape access, /dev/nst0 and /dev/st0 may work, the later one
performs a rewind on close; but I'm shure that you know that.

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-06-24 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-24 14:40 What is /dev/sr0? Steve Frampton
1998-06-24 14:57 ` Paul Tomblin
1998-06-24 15:08 ` Quant-X Alpha Linux Support

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox