From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24861 invoked from network); 24 Jun 1998 14:57:55 -0000 Received: from canoe.roc.servtech.com (HELO canoe.xcski.com) (ptomblin@204.181.4.141) by mail2.redhat.com with SMTP; 24 Jun 1998 14:57:55 -0000 Received: (from ptomblin@localhost) by canoe.xcski.com (8.8.7/8.8.7) id KAA29593; Wed, 24 Jun 1998 10:57:55 -0400 Message-ID: <19980624105754.B29286@xcski.com> Date: Wed, 24 Jun 1998 10:57:54 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: What is /dev/sr0? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: ; 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