From owner-freebsd-hackers Thu Nov 13 23:40:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA07765 for hackers-outgoing; Thu, 13 Nov 1997 23:40:27 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from safeconcept.utimaco.co.at (mail-gw.utimaco.co.at [195.96.28.162]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA07730 for ; Thu, 13 Nov 1997 23:40:16 -0800 (PST) (envelope-from Michael.Schuster@utimaco.co.at) Received: (from uucp@localhost) by safeconcept.utimaco.co.at (8.8.5/8.8.5) id IAA23016 for ; Fri, 14 Nov 1997 08:27:14 +0100 (CET) Received: from wshpux.utimaco.co.at(10.0.0.18) by safeconcept via smap (V2.0) id xma023013; Fri, 14 Nov 97 08:26:42 +0100 Message-ID: <346BFFA4.D440E962@utimaco.co.at> Date: Fri, 14 Nov 1997 08:37:09 +0100 From: Michael Schuster Organization: Utimaco Safe Concept GmbH., Linz, Austria X-Mailer: Mozilla 4.03 [de] (X11; I; HP-UX B.10.01 9000/715) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: diskless freebsd, can't mount local msdos disk Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Steven Kehlet wrote: > # foreach i (1 2 3 4) > ? mount_msdos /dev/wd0s$i /mnt > ? end > mount_msdos: /dev/wd0s1: Invalid argument > mount_msdos: /dev/wd0s2: Invalid argument > mount_msdos: /dev/wd0s3: Invalid argument > mount_msdos: /dev/wd0s4: Invalid argument > # This is what I did just yesterday in a similar situation (I didn't know which device my DOS drive E: was located on, I just knew it was the second disk); this is bash, not (t)csh: for x in /dev/sd1*; do mount -t msdos $x /e if [ $? = 0 ]; then break; fi done so, as soon as a mount operation is successful, the loop terminates (have no worry about already-mounted disks - you get a "disk busy" message). Of course, you have to replace sd1* with your resp. device. cheers Michael -- Michael Schuster Utimaco Safe Concept GmbH. | Tel: +43 732 655755 41 Europaplatz 6 | Fax: +43 732 655755 5 A-4020 Linz Austria | email: Michael.Schuster@utimaco.co.at