Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to mount a USB memory stick (SanDisk 1.0 GB), mounting works fine, but when trying to unmount I get this :: umount: /mnt/stick: device is busy
I tryed to force unmounting it, but that didn't work either. So I had to reboot each time I wanted to unmount the stick.
I thought of a workaround (which worked) by using a loop device ::
mount -o loop /dev/uba1 /mnt/stick
And unmounting works like charm.
Now I want add that to the fstab, how?! I dont wanna do manual mounting/unmounting .. I'd rather let KDE handle it.
you should be able to use an entry like
/dev/uba1 /mnt/stick <fstype (vfat?)> loop,noauto 0 0
basically you should be able to translate your command-line mount into an fstab entry pretty easily. The loop should go in the 4th field, which is the option field, so basically anything you'd pass with -o you can put in that field. The noauto tells the kernel not to mount at boot time.
NB you may need to tweak this some as I am doing this from memory. The mount(8) man page should pretty much give you all sorts of information about this, but I recommend trial and error as you are unlikely to break anything by mounting a memory stick incorrectly.
I'm not sure about mounting loop devices through fstab. But I think your problem is a kde bug. Go into kde control center>System>Performance and cahnge the preloaded instances from 1 to 0. That will fix your unmounting problems. From what I've seen, when you have an instace of konqueror preloaded, kde keeps polling the removable device to update konqueror resulting in a device busy message when you try to unmount. I had the same problem with my usb hard drive and the above workaround fixed the problem.
@ sjalex :: Thanks, that worked! although I tested it before and it didn't! weird!
@ kilgoretrout :: Yea, I've noticed that I have to close konqueror if I was browsing through the device I want to unmount for it to unmount !
Oh, and I couldn't find the option you mentioned!
Under system Admin there's no Performance tab, only LILO and the rest of the gang
One problem though, when passing vfat to the fastab, it uses umsdos instead !
fstab :: /dev/uba1 /mnt/stick vfat loop,noauto 0 0
mount :: /dev/uba1 on /mnt/stick type msdos (rw)
Which shrinks the file names to 6 chars! if I mount it manually, it uses the vfat fs and everything works fine :/
Any ideas ?!
Edit ::
Never mind, I found under konqueror's settings. Worked like charm!
The loop device caused some troubles though, its status didn't update properly, so when I delete files I had to remount the stick!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.