Yes, I would suspect it is either a kernel issue or in the mount/umount tools.
In the mean time, since I believe your spin-down method works as well as unmount-mount-unmount and also leaves the drive spun down, I have modified your script a bit to automatically determine from /etc/mtab which physical device has been assigned to the drive. This is because I sometimes have other things like card readers plugged in and cannot be sure that the passport will always be at the same /dev/sdxxx location every time. This modified script requires, however, that the mount point always be the same, and since "/media/disk" is the default, I chose "/media/wdp". You can set this in the settings for the drive by right-clicking on the drive icon. ------------------------------ #!/bin/sh # # Script to unmount western digital passport drive safely regardless # of which physical device it has been assigned to. Drive mount # point must be /media/wdp, which can be specified in the settings for # the drive. # # Original by Clem-Vangelis, modified by D. Rosky, 2007/6/14 # # See if drive is mounted CCOUNT=$(grep '/media/wdp' /etc/mtab | wc -c) if [ $CCOUNT -eq 0 ] then zenity --error --title="Info" --text="No mountpoint /dev/wdb, drive not mounted?" exit fi #Get the physical device from mtab DRIVELINE=$(grep '\/media\/wdp' /etc/mtab) LENG=$(expr match "$DRIVELINE" '[A-Za-z0-9\/]*') DRIVE_DEVICE=$(expr substr "$DRIVELINE" 1 $LENG) #Try Unmounting the drive pumount /media/wdp sleep 3 CCOUNT=$(grep '/media/wdp' /etc/mtab | wc -c) if [ $CCOUNT -ne 0 ] then zenity --error --title="Info" --text="Could not unmount /media/wdp, drive may be in use." exit fi #sync and stop the drive sdparm --command=sync $DRIVE_DEVICE sleep 1 sdparm --command=stop $DRIVE_DEVICE zenity --info --title="Info" --text="Drive can be safely unplugged" -- not proper dismounting for WD passport harddrive (making noise when unplug) https://bugs.launchpad.net/bugs/117713 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs