LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-03-2004, 07:11 AM   #1
cbonar
Member
 
Registered: Apr 2004
Location: Paris, FRANCE
Distribution: Ubuntu
Posts: 54

Rep: Reputation: 16
disable supermount/magicdev/kudzu or whatever


Hi.

(It's a bit long, but the important terms are in bold and italic :-)

I'm hardly trying to find a convenient way to plug/unplug my USB key with Mandrake 10.1 CE.
I have successfully patched mount so it can recognize UUID and LABEL on vfat (which is my key's filesystem) : http://castet.matthieu.free.fr/downl...-2.12pre.patch.
So, my /etc/fstab entry is the following :
Code:
UUID=41975015-0000-0000-0000-000000000000 /mnt/usbgirl vfat exec,umask=0077,user,iocharset=iso8859-15,sync,codepage=850,noauto,noatime,users 0 0
which works quite well (except that I have a problem unmounting as a user, but this is not the point).

Now, the problem : it seems that a mad process is running on my computer : some people use to call it supermount, magicdev, kudzu or other pernicious names... This process inserts and modifies entries in my /etc/fstab !!!!

Here's how the previous line looks like after the hurricane :
Code:
/dev/UUID=41975015-0000-0000-0000-000000000000 /mnt/usbgirl vfat exec,umask=0077,user,iocharset=iso8859-15,sync,codepage=850,noauto,noatime,users 0 0
Note the new /dev/ prefix to my entry. Of course, mount /mnt/usbgirl doesn't work anymore.

I have first thought about using the full command :
Code:
mount -U 41975015-0000-0000-0000-000000000000 -t vfat -o exec,umask=0077,user,iocharset=iso8859-15,sync,codepage=850,noauto,noatime,users /mnt/usbgirl
but only root can do that (it told me).
I'm ok to disable the automount feature (even if kudzu is very usefull at launch time), but how to do that ?

please... help...
 
Old 12-03-2004, 07:41 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Actually, I think it is hotplug that is bugging you.

Supermount is a kernel add-on, that, when active, will automatically mount your device if a media is there, and umount it when it is not there anymore. It is usefull, but IMO it should not be used with writable media (and before anyone says "but in Windows it works", I'll answer no it does not: in windows you can destroy a filesystem on a writable removable media if you're not carefull).

MagicDev is a user tool, that regularly scans the CD device when it is not mounted, and take appropriate action when a media is inserted; that's all. It will for example launch xine, or xmms, or nautilus, or k3b...

kudzu is the thing that checks for new hardware. This tool will indeed modify /etc/fstab if it finds a plugged device, that previously was not. But this tool, as well as harddrake, only runs at boot.

Finally, hotplug (with hotplugd service) is there for automatically adding/removing devices as needed; AND then call scripts to handle the new devices. AFAIK, those scripts are in /etc/dynamic. I'm not sure.

Yves.
 
Old 12-03-2004, 08:02 AM   #3
cbonar
Member
 
Registered: Apr 2004
Location: Paris, FRANCE
Distribution: Ubuntu
Posts: 54

Original Poster
Rep: Reputation: 16
Very interesting indeed.

As a matter of fact, I forgot to tell that I have urpme magicdev, so it cannot be the originator of the problem.

As you told, hotplug may really be the one.
I had to deal with /etc/hotplug/*.agent scripts when I previously tried to use usb-mount, but I have not heard of the /etc/dynamic repository.

I'm going to look further in this directory...

Also, it seems that supermount is loaded as a module in my kernel ; I've disabled it and recompiled the kernel but I still have problems running it. Would it be an adequate solution to run a kernel without supermount ?

thanks for the reply
 
  


Reply



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
magicdev gmccormack Linux - General 0 08-10-2004 11:16 AM
what is kudzu and how do you disable it bobothn Linux - Hardware 3 08-06-2004 09:10 PM
Disable kudzu for printer wswartz Linux - General 2 04-11-2004 12:49 PM
how to disable supermount!? sirpelidor Mandriva 5 11-18-2003 01:01 PM
Disable Kudzu? davidmgray Linux - Newbie 7 07-07-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:07 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
Open Source Consulting | Domain Registration