mdir: "/dev/rfd0c": Device busy

mdir: "/dev/rfd0c": Device busy

Post by Stannon Y » Fri, 16 Feb 1996 04:00:00



Hello,

   I have problem installing mtools. I have mtools-2.0.7 downloaded and
try to compile it under Solaris. After I compiled it, I can't use it. It
always give me: init: open "/dev/rfd0c": Device busy

   Any clue?

Regards,
CT Yen.
--
Ham Sandwich is better than nothing.
Nothing is better than Always Lucky.
Therefore, Ham Sandwich is better than Always Lucky.

 
 
 

mdir: "/dev/rfd0c": Device busy

Post by Stannon Y » Fri, 16 Feb 1996 04:00:00



>   I have problem installing mtools. I have mtools-2.0.7 downloaded and
>try to compile it under Solaris. After I compiled it, I can't use it. It
>always give me: init: open "/dev/rfd0c": Device busy

    Some more information: I'm using an Axil workstation.

Regards,
CT Yen.
--
Ham Sandwich is better than nothing.
Nothing is better than Always Lucky.
Therefore, Ham Sandwich is better than Always Lucky.

 
 
 

mdir: "/dev/rfd0c": Device busy

Post by Lee Dunc » Sat, 17 Feb 1996 04:00:00


SY> I have problem installing mtools. I have mtools-2.0.7 downloaded
SY> and try to compile it under Solaris. After I compiled it, I can't
SY> use it. It always give me: init: open "/dev/rfd0c": Device busy

SY>     Some more information: I'm using an Axil workstation.

It sounds like mtools needs to be updated! (;-)

I'm fairly sure you have vold running [even though you didn't say what
rev of Solaris you're running! (;0(], and vold open the floppy(s) (and
CD-ROM(s)) exclusively.

To access the floppy via vold, you must:

        1. run "volcheck" from the command line somewhere, then

        2. access /vol/dev/aliases/floppy0 (for raw floppy access)

Or, alternatively, you could tell vold to stop managing floppies.  To
do this, you would:

        1. become root

        2. edit /etc/vold.conf, commenting out the line that starts
           with "use floppy ..."

        3. either stop and restart vold (see /etc/init.d/volmgt), or
          reboot (sometimes easier)

BTW, why do you need mtools to access your floppy?  Solaris already
has PCFS (to some degree, anyway).
--

He who wonders discovers that this in itself is wonder.  -- M. C. Escher

 
 
 

mdir: "/dev/rfd0c": Device busy

Post by R. Stewart Ell » Sun, 18 Feb 1996 04:00:00


ldun...@churchlady.Central.Sun.COM (Lee Duncan) writes:

 >>>>>> "SY" == Stannon Yen <chuit...@castor.usc.edu> writes:

 >SY> I have problem installing mtools. I have mtools-2.0.7 downloaded
 >SY> and try to compile it under Solaris. After I compiled it, I can't
 >SY> use it. It always give me: init: open "/dev/rfd0c": Device busy

 >and then later wrote:

 >SY>     Some more information: I'm using an Axil workstation.

 >It sounds like mtools needs to be updated! (;-)

There is a patch that has been out several years.  I believe I got the patch
from prep.ai.mit.edu://pub/gnu/, but am not sure.  I could not find a
pointer to the patch, so I include it at the end of this post (it is not
THAT long).

 >I'm fairly sure you have vold running [even though you didn't say what
 >rev of Solaris you're running! (;0(], and vold open the floppy(s) (and
 >CD-ROM(s)) exclusively.

 >To access the floppy via vold, you must:

 >   1. run "volcheck" from the command line somewhere, then

 >   2. access /vol/dev/aliases/floppy0 (for raw floppy access)

 >Or, alternatively, you could tell vold to stop managing floppies.  To
 >do this, you would:

 >   1. become root

 >   2. edit /etc/vold.conf, commenting out the line that starts
 >      with "use floppy ..."

 >   3. either stop and restart vold (see /etc/init.d/volmgt), or
 >     reboot (sometimes easier)

 >BTW, why do you need mtools to access your floppy?  Solaris already
 >has PCFS (to some degree, anyway).

As a commandline-oriented user, I find it more orthogonal to manage dos
floppies with doslike commands than with unixlike commands.  (Of course, I
try not to manage DOS floppies any more than I have to!)

 >--
 >Lee Duncan                                   Lee.Dun...@Central.Sun.COM

 >He who wonders discovers that this in itself is wonder.  -- M. C. Escher

---------------------------src/mtools-2.0.7.solaris.patch--------------------
*** Configure.orig      Sat Apr  2 19:25:01 1994
--- Configure   Sat Apr  2 19:28:06 1994
***************
*** 47,52 ****
--- 47,54 ----

                UNIXPC  default devices for AT&T Unix PC 7300/3B1

+               SOLARIS default devices for Solaris 2.3 on a SPARCstation
+
                SPARC   default devices for SunOS 4.1 on a SPARCstation

                RT_ACIS default devices for 4.3BSD on an IBM RT
***************
*** 151,157 ****
                {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}

!       for Sun SparcStation with:
                1.44m 3.5" as a: (supports 1.44m and 720k)

                {'A', "/dev/rfd0c", 0L, 12, 0, (int (*)()) 0, 80, 2, 18},
--- 153,170 ----
                {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}

!       for Sun SparcStation with Solaris 2.3 and Volume manager running
!               1.44m 3.5" as a: (supports 1.44m and 720k)
!
!               {'A', "/vol/dev/aliases/floppy0", 0L, 12, 0, (int (*)()) 0, 80, 2, 18},
!               {'A', "/vol/dev/aliases/floppy0", 0L, 12, 0, (int (*)()) 0, 80, 2, 9},
!               {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}
!
!               Note that the two devices are actually the same physical
!               device, and that only the number of sectors are
!               different.
!
!       for Sun SparcStation with SunSet OS 4.1:
                1.44m 3.5" as a: (supports 1.44m and 720k)

                {'A', "/dev/rfd0c", 0L, 12, 0, (int (*)()) 0, 80, 2, 18},
*** Makefile.orig       Sat Apr  2 19:06:34 1994
--- Makefile    Sat Apr  2 19:28:29 1994
***************
*** 8,13 ****
--- 8,15 ----

  # for Dell
  #CFLAGS       = -O -DDELL -DLOCKF
+ # for Solaris 2.x
+ #CFLAGS       = -O -DSOLARIS -DLOCKF
  # for Sparc
  #CFLAGS       = -O -DSPARC -DBSD -DFLOCK
  # for Xenix
***************
*** 14,20 ****
  #CFLAGS = -O -M2e -DINT16 -DXENIX -DLOCKF
  #LDFLAGS = -s -M2e -i -f 5000

! CFLAGS        = -O -DSPARC -DBSD
  LDFLAGS       = -s
  LD    = $(CC)
  LINT  = lint
--- 16,22 ----
  #CFLAGS = -O -M2e -DINT16 -DXENIX -DLOCKF
  #LDFLAGS = -s -M2e -i -f 5000

! CFLAGS        = -O -DSOLARIS -DLOCKF
  LDFLAGS       = -s
  LD    = $(CC)
  LINT  = lint
***************
*** 107,128 ****

  install: all
        -mkdir $(BINDIR)
!       for prog in $(PROGS); do install $$prog $(BINDIR)/$$prog; gln -sf ../mtools/$$prog ${DESTDIR}/usr/local/bin; done
!       install -c -m 644 Mattrib.1 $(MANDIR)/mattrib.$(MANEXT)
!       install -c -m 644 Mcd.1 $(MANDIR)/mcd.$(MANEXT)
!       install -c -m 644 Mcopy.1 $(MANDIR)/mcopy.$(MANEXT)
!       install -c -m 644 Mdel.1 $(MANDIR)/mdel.$(MANEXT)
!       install -c -m 644 Mdir.1 $(MANDIR)/mdir.$(MANEXT)
!       install -c -m 644 Mformat.1 $(MANDIR)/mformat.$(MANEXT)
!       install -c -m 644 Mlabel.1 $(MANDIR)/mlabel.$(MANEXT)
!       install -c -m 644 Mmd.1 $(MANDIR)/mmd.$(MANEXT)
!       install -c -m 644 Mrd.1 $(MANDIR)/mrd.$(MANEXT)
!       install -c -m 644 Mread.1 $(MANDIR)/mread.$(MANEXT)
!       install -c -m 644 Mren.1 $(MANDIR)/mren.$(MANEXT)
!       install -c -m 644 Mtools.1 $(MANDIR)/mtools.$(MANEXT)
!       install -c -m 644 Mtype.1 $(MANDIR)/mtype.$(MANEXT)
!       install -c -m 644 Mwrite.1 $(MANDIR)/mwrite.$(MANEXT)
!       install -c -m 644 Mkmanifest.1 $(MANDIR)/mkmanifest.$(MANEXT)

  clean:
        rm $(PROGS) *.o core a.out tags TAGS
--- 109,130 ----

  install: all
        -mkdir $(BINDIR)
!       for prog in $(PROGS); do /usr/ucb/install $$prog $(BINDIR)/$$prog; gln -sf ../mtools/$$prog ${DESTDIR}/usr/local/bin; done
!       /usr/ucb/install -c -m 644 Mattrib.1 $(MANDIR)/mattrib.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mcd.1 $(MANDIR)/mcd.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mcopy.1 $(MANDIR)/mcopy.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mdel.1 $(MANDIR)/mdel.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mdir.1 $(MANDIR)/mdir.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mformat.1 $(MANDIR)/mformat.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mlabel.1 $(MANDIR)/mlabel.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mmd.1 $(MANDIR)/mmd.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mrd.1 $(MANDIR)/mrd.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mread.1 $(MANDIR)/mread.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mren.1 $(MANDIR)/mren.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mtools.1 $(MANDIR)/mtools.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mtype.1 $(MANDIR)/mtype.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mwrite.1 $(MANDIR)/mwrite.$(MANEXT)
!       /usr/ucb/install -c -m 644 Mkmanifest.1 $(MANDIR)/mkmanifest.$(MANEXT)

  clean:
        rm $(PROGS) *.o core a.out tags TAGS
*** devices.c.orig      Sat Apr  2 19:11:38 1994
--- devices.c   Sat Apr  2 19:24:24 1994
***************
*** 31,36 ****
--- 31,44 ----
  };
  #endif /* ISC */

+ #ifdef SOLARIS
+ struct device devices[] = {
+       {'A', "/vol/dev/aliases/floppy0", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18},
+       {'A', "/vol/dev/aliases/floppy0", 0L, 12, 0, (int (*) ()) 0, 80, 2, 9},
+       {'\0', (char *) NULL, 0L, 0, 0, (int (*) ()) 0, 0, 0, 0}
+ };
+ #endif /* SPARC */
+
  #ifdef SPARC
  struct device devices[] = {
        {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18},
------------------------------end patch------------------------------

--
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______
  Flint, MI 48504      el...@nova.gmi.edu               /        / /  /  / /
  Web admin:  chimera,nn,tin,jove,kermit - free's best!/________/ /  /  / /

 
 
 

1. how to kill "mt" or make "/dev/rmt/..." device NOT BUSY?

Hi everybody,

I'm using an Exabyte 8mm tape drive through "/dev/rmt/0lbn" unser Solaris 2.4.

If something goes wrong with the tape during execution of "mt ..." command,
this command hangs in a state in which it can't be interrupted or killed.
The device remains busy even if I can manually eject the tape. The only
way to get the access to the tape is to reboot the system.

Is it possible to kill "mt" somehow or make the tape device NOT BUSY some
other way? Are there any timeouts defined for the "mt"/device (if so,
can they be made shorter) ?

any help will be appreciated,

regards, Michal.

****************************************************************************


  Al. Ujazdowskie 4                   Voice:    48-22-294011 ext 23
  00-478 Warszawa, POLAND             FAX:      48-22-294967
****************************************************************************

2. READ FROM SERIAL PORT

3. /dev/ttyS2 (/dev/cua2) reports "device or resource busy" on kernel 2.1.95

4. network shutdown by itself??

5. mouse -> /dev/mouse "device or resource busy"

6. Number for second channel with isdnctrl

7. "/dev/tty: Device busy" message from rz/sz

8. Unable to write data to disk ad2! (5.0)

9. help wanted with "/dev/cua1: Device or resource busy"

10. "/dev/audio: Device or resource busy" why?

11. (gtk) "/dev/dsp: Device or resource busy"

12. Why do I get "/dev/tty: Device busy"

13. GETSERVBYNAME()????????????????????"""""""""""""