From: Satish Chittamuru (satishc@microsoft.com)
Date: 09/28/92


From: satishc@microsoft.com (Satish Chittamuru)
Subject: Problems using mount/umount from rootdisk0.97.1
Date: 28 Sep 1992 21:20:24 GMT

I may have missed a thread on this. So if it has already come, could
someone please send me the info. Otherwise, here goes...

The mount and umount from 0.97.1 rootdisk do not seem to like command
line arguments. I just upgraded (actually repartitioned and reinstalled)
to 0.97.6 from 0.96c.

Trying to mount a minix or extfs filesystem with
        mount /dev/hda5 /usr
  and mount -t ext /dev/hda6 /usr/users
causes a segmentation fault (core dumped).

Adding
   /dev/hda5 /usr minix defaults
   /dev/hda6 /usr/users ext defaults
to fstab and doing a mount -a does the trick.

Also, trying
        umount /dev/hda6
causes a segmentation fault. Again doing a umount -a does the trick.

What is the problem here? Are there new mount & umount binaries
available that I don't know of or is there some trick to get them
working right?

Oh! Another thing. umount can't handle nested mounts properly when
used with the -a option. From the above mount example, you can see
that /dev/hda6 has to umounted before /dev/hda5 but the entries in
/etc/mtab has /dev/hda5 first and /dev/hda6 next (as it should).
Doing a umount -a says /dev/hda5 is busy and then umounts /dev/hda6.
Doing an umount -a again does it, ofcourse. I guess the solution is
simple; umount should reverse the order of entries in mtab and then
umount them i.e. umount last-to-first. Are the sources for mount &
umount on any of the ftp sites. I think I can fix these problems if
someone hasn't already done so.

-- 
Satish K. Chittamuru                            satishc@microsoft.com
=====
Disclaimer: The opinions expressed herein, either stated or implied, are
solely my own and do not reflect Microsoft's views in any manner.