MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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've tried restarting the service several times. Any ideas? I thought, with Mandrake 10.1 (I'm using Mandriva 2005 LE now), that these devices automatically mounted w/o configuration.
1. Use autofs just for network drives (mainly NFS). It is very good for that.
2. Use supermount for local USB- and CD-/DVD-drives. In my opinion and experience it's the best for that. Example lines to /etc/fstab for supermount (comment out all other lines according to /dev/cdrom and /dev/sda1):
If you have more CD-drives or USB-devices, you can add more lines with the right device addresses. For example with computers with SATA-drivers for USB-sticks it would be most likely /dev/sdb1 and not /dev/sda1. If the USB-devices don't seem to work, check that the device exists (eg. /dev/sda1) and correct if needed.
There are many advantages in using supermount; the best being that you can unplug USB-devices and eject CDs whenever you want (autofs does not handle it as well, in my opinion).
After adding those lines first make sure that /mnt/cdrom and /mnt/removable exist, then mount both directories. Supermounted folders are always mounted, no matter if there is media or not.
It still doesn't work. I try to open the cd rom drive (when a CD is inserted) and it shows that there are no files. The same thing happens with my USB pen.
Just FYI Mandriva uses gnome-volume-manager which in turn calls fstab-sync to create the fstab entries and mount the drives, supermount is . This should have worked out of the box (it does on my 2 systems at home) but then again nothing's perfect.
Anyway in case it helps someone here's a copy of the response I got when I asked about supermount in the Mandriva development list:
Quote:
> I'm a little bit confused about how removable drives (CD/DVDs and USB
> devices) get mounted in 2005LE. I know that fstab-sync is called by HAL
> to add entries for USB devices to /etc/fstab on the fly but what process
> is meant to mount those newly added devices?
gnome-volume-manager.
> Also what process mounts
> CD/DVD drives?
gnome-volume-manager.
> Why is the floppy drive the only one with 'supermount' in
> the options of its fstab entry?
because floppy drives do not notify the kernel when a medium is
inserted, so you cannot use a mounting method which relies on detecting
the sudden presence of a medium. You have to use one which simply
attempts to mount the drive when access to it is requested - like
supermount.
> Is supermount still used in 2005LE?
Only for floppies and a few other cases where insertion notification
doesn't happen (some tape drives, IIRC).
I changed my /etc/fstab back to NOT use supermount and nothng automatically mounts. When I try to run gnome-volume-manager, I get the error message:
[root@Desktop rzaleski]# gnome-volume-manager
libhal.c 644 : Error connecting to system bus: Failed to connect to socket /var/run/dbus/system_dbus_socket: No such file or directory
** (gnome-volume-manager:20824): WARNING **: manager.c/935: failed to initialize HAL!
[root@Desktop rzaleski]#
I do have a service "haldaemon", which is running. Do I need any other services running?
I am sorry but many people do this when they look for advice and most distributions are alike they can find their solution in any thread. I dont bother when i am asked by someone that uses a different distribution and i dont waste my time complaining. FYI i solved my issue by myself. But thank you anyway. I wont waste my time anymore.
Next time don't get so offended when someone corrects you on a minor point of netiquette on this site.
If you look around you'll find lots of posts where people have been told to not hijack threads, among other reasons because its against the rules of the site.
And BTW I was trying to help you - I pointed out that Fedora uses a different system for mounting and that you'd be better off posting in the Fedora forum. I'm glad that you've solved your problem but please don't come back here until you've grown up a bit and read up on how to post questions properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.