LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 10-21-2004, 09:29 AM   #1
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
[solved] fstab and loop devices


Hello

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.

Could someone help?

Thanks in advance

Slackware 10.0 @ kernel 3.6.9

MBH

Last edited by MBH; 10-21-2004 at 10:00 AM.
 
Old 10-21-2004, 09:42 AM   #2
sjalex
Member
 
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41

Rep: Reputation: 15
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.
 
Old 10-21-2004, 09:46 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 144Reputation: 144
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.
 
Old 10-21-2004, 09:58 AM   #4
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Original Poster
Rep: Reputation: 15
@ 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!

Thank you both for your help

Last edited by MBH; 10-21-2004 at 03:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum mounted loop devices? dplazz Linux - General 6 07-21-2005 06:52 PM
un/mounting loop devices box_l Linux - Software 4 08-05-2004 10:03 AM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 12:59 PM
fstab and devices (making) TheBman Linux - Hardware 14 12-31-2003 10:55 AM
new kernel installation & loop back devices? fbarre Linux - Newbie 5 10-21-2003 02:40 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration