Date: Fri, 14 Nov 1997 08:37:09 +0100 From: Michael Schuster <Michael.Schuster@utimaco.co.at> To: freebsd-hackers@freebsd.org Subject: Re: diskless freebsd, can't mount local msdos disk Message-ID: <346BFFA4.D440E962@utimaco.co.at>
next in thread | raw e-mail | index | archive | help
Steven Kehlet <kehlet@dt.wdc.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?346BFFA4.D440E962>
