Sicily1918
15th October 2004, 09:07 AM
I ran into this a number of times when mounting Windows 2000/XP shares:
# smbmount //server/f$ /mountpoint/ -o username=name,workgroup=name
Everything seemed to work OK until you 'ls' the directory -- it'd then promptly freeze, and I couldn't even kill the process. In fact, it would not unmount properly even when shutting down, forcing a hard-reset and an fsck at next boot-up (the unmount would generate I/O errors and would not stop). The worst part is that that particular share/mount would then always do that from that point on.
Here's how you fix it:
After said mount has locked your current console, open another terminal console and do a lazy unmount:
# umount -l /mountpoint
Restart SMB service the 'timid' way ;)
# service smb stop
# service smb start
Then remount
# smbmount //server/f$ /mountpoint/ -o username=name,workgroup=name
And voila! It'll work. The next shutdown/reboot will complain about the mount, but you won't get I/O errors (nor will they loop forever) and since that mount doesn't exist anymore, who cares?
P.S. I don't have to mention that this is all done as root, right? :cool:
# smbmount //server/f$ /mountpoint/ -o username=name,workgroup=name
Everything seemed to work OK until you 'ls' the directory -- it'd then promptly freeze, and I couldn't even kill the process. In fact, it would not unmount properly even when shutting down, forcing a hard-reset and an fsck at next boot-up (the unmount would generate I/O errors and would not stop). The worst part is that that particular share/mount would then always do that from that point on.
Here's how you fix it:
After said mount has locked your current console, open another terminal console and do a lazy unmount:
# umount -l /mountpoint
Restart SMB service the 'timid' way ;)
# service smb stop
# service smb start
Then remount
# smbmount //server/f$ /mountpoint/ -o username=name,workgroup=name
And voila! It'll work. The next shutdown/reboot will complain about the mount, but you won't get I/O errors (nor will they loop forever) and since that mount doesn't exist anymore, who cares?
P.S. I don't have to mention that this is all done as root, right? :cool: