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!/________/ / / / /