Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!comp.vuw.ac.nz!usenet From: milton@Comp.VUW.AC.NZ (milton) Newsgroups: comp.unix.bsd.netbsd.misc Subject: Re: Netbsd 1.1 and Mtools Date: 03 Jul 1996 23:06:34 +1200 Organization: Dept. of Computer Science, Victoria Uni. of Wellington, NZ. Lines: 64 Sender: milton@bats.comp.vuw.ac.nz Message-ID: <ch4d92d1tqd.fsf@bats.comp.vuw.ac.nz> References: <836231493.20301.0@kevinw.noc.demon.net> NNTP-Posting-Host: bats.comp.vuw.ac.nz In-reply-to: kevinw@kevinw.noc.demon.net's message of Mon, 01 Jul 1996 14:31:33 GMT X-Face: 1z?<f6:W_X?x4,("n&O@BTQZcRfJ;|'YmfV`a<zZqH/?y<o<uQNn:A\5*DH|"FAkV9]\z"1 '2%*6{0b$JO'+GRo**}!f=85':yX7,s8s@o}A(]C2+}[4g$`&K1WUcU^F2nX~UMl?1S7A@u=To/5 X-uri: http://www.comp.vuw.ac.nz/~milton/ X-Newsreader: Gnus v5.1 kevinw@kevinw.noc.demon.net (Kevin Walton) writes: > I am trying to use netbsd 1.1 and mtools (various versions) but whatever > I try I always get the error msg : mcopy: Cannot initialize 'A:' > > I can mount an msdos disk and copy data to it the long way around, but > cant get the mtools to work. I have just grabbed mtools v3.0 and compiled it. I had to make the following changes to get it to work. I don't really know what I am doing :) I just followed the other examples in the devices.c file. I am not sure about the SSIZE macro. It seemed to define it somewhere (maybe in one of the NetBSD system headers), so I had to place an #undef to force the use of the version in the devices.c file. M. diff -wcr mtools-3.0.orig/devices.c mtools-3.0/devices.c *** mtools-3.0.orig/devices.c Thu May 9 04:44:59 1996 --- mtools-3.0/devices.c Thu Jun 27 17:13:15 1996 *************** *** 34,39 **** --- 34,48 ---- #define devices const_devices + #ifdef netbsd + #define predefined_devices + struct device devices[] = { + {"/dev/fd0a", 'A', GEN }, + {"/dev/fd1a", 'B', GEN }, + }; + #define INIT_NOOP + #endif /* netbsd */ + #ifdef hpux #define predefined_devices struct device devices[] = { *************** *** 515,520 **** --- 524,530 ---- #define USE_2M(x) 0x80 #endif + #undef SSIZE #ifndef SSIZE #define SSIZE(x) 0x82 #endif diff -wcr mtools-3.0.orig/sysincludes.h mtools-3.0/sysincludes.h *** mtools-3.0.orig/sysincludes.h Thu May 9 06:13:18 1996 --- mtools-3.0/sysincludes.h Thu Jun 27 16:19:14 1996 *************** *** 94,100 **** #include <errno.h> extern int errno; - extern char *sys_errlist[]; #include <pwd.h> /* On AIX, we have to prefer strings.h, as string.h lacks a prototype --- 94,99 ---- --