Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Paul Tomblin <ptomblin@xcski.com>
To: axp-list@redhat.com
Subject: Re: What is /dev/sr0?
Date: Wed, 24 Jun 1998 10:57:54 -0400	[thread overview]
Message-ID: <19980624105754.B29286@xcski.com> (raw)
In-Reply-To: <Pine.LNX.3.96.980624103623.23223A-100000@mail.flarc.edu.on.ca>; from Steve Frampton on Wed, Jun 24, 1998 at 10:40:58AM -0400

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


  reply	other threads:[~1998-06-24 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-24 14:40 What is /dev/sr0? Steve Frampton
1998-06-24 14:57 ` Paul Tomblin [this message]
1998-06-24 15:08 ` Quant-X Alpha Linux Support
read-only archive

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