Messages in this thread | | | Date | Thu, 28 Mar 96 21:23 MET | From | (Torsten Neumann) | Subject | Kernel 1.3.7{8,9} can't unmount zip drive during shutdown |
| |
Hi, my iomega-zip drive is connected (as /dev/sdb) to an adaptec 1542CF Controller, and I'm using init 2.57b. since Kernel Release 1.3.78 I have the following proplem during shutdown : The umount call in the shutdown scripts didn't return.
-- /etc/init.d/reboot #! /bin/sh # /etc/init.d/reboot: executed by init(8) upon entering runlevel 6 (reboot). # $Id: reboot,v 1.4 1995/06/22 18:46:26 imurdock Exp $ # # Adapted from a script by Miquel van Smoorenburg.
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
# Kill all processes. echo -n "Sending all processes the TERM signal... " killall5 -15 echo "done." sleep 5 echo -n "Sending all processes the KILL signal... " killall5 -9 echo "done."
# Write a reboot record to /var/log/wtmp. halt -w
echo -n "Deactivating swap... " swapoff -a /sbin/mdstop /dev/md0 echo "done."
echo -n "Unmounting file systems... " umount -a echo "done."
mount -n -o remount,ro /
echo -n "Rebooting... " eval reboot -d -f -- end
The echo "done." is never executed. Replacing the umount -a call by (The zip drive is mounted on /iomega)
for i in "/tmp" "/iomega" "/var" ...; do if mount | fgrep -q $i; then echo -n "$i " fuser -mk $i umount $i fi done
gives the following output Unmounting file systems... /tmp /iomega and then the next 5 Minutes nothing happens, so I pressed the reset-key :(
With kernels earlier then 1.3.57 everything is fine. Curiosly unmounting by hand works (it takes 10 seconds for the command time umount /iomega - but the umount returns); therefor an umount /iomega && init 6 does the job, but I guess there must be a better way. Have I missed something ? Or could somebody tell me what is going wrong.
Greetings Torsten -- Torsten Neumann / Ziegelhofstr. 101 / 26121 Oldenburg / voice : 0441 / 72151 email : torsten@imke.infodrom.north.de " Nonsense is better than no sense at all " - NoMeansNo
| |