LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What is your automounter? (https://www.linuxquestions.org/questions/linux-software-2/what-is-your-automounter-473789/)

Linux.tar.gz 08-14-2006 12:01 PM

What is your automounter?
 
Hello!
I used submount until it don't works anymore with new kernel.
So i need a new automounter.
What is yours, and why?

bathory 08-14-2006 05:11 PM

You can use autofs. I'm using it with my usb stick and it works quite well. The only prob is that sometimes I have to run a command (like ls or cp) 2 times to be able to use the stick. I guess this happens cause the device for some reason is not ready the first time. Perhaps I have to use the ghost option so the mount point is always present.

AAnarchYY 08-14-2006 05:27 PM

I use rox-filer as my file manager and it reads my fstab and automaticaly attempts to mount the device if you go to open the mount point. so i imagine my automouter is rox-filer.

Michael_aust 08-14-2006 05:46 PM

i also use autofs works well.

ciotog 08-19-2006 01:02 AM

I primarily use WindowMaker, and have created menu items that mount the device, then start mc with the desired folders ready to go. On quitting mc the device umounts. For example, here's the menu entry for "mount camera":
Quote:

mount /mnt/dsc-p52 ; sleep 2 ; xterm -geometry 96x60 -e mc /mnt/dsc-p52/dcim/101msdcf /home/share/pictures ; umount /mnt/dsc-p52
I like it because it's quick and easy, and it works for me because I never have more than 1 USB device plugged in at a time. If I did have multiple devices connected in random order, I suppose I would have to write a small script to see which block device was being used for each.

cs-cam 08-19-2006 01:54 AM

I wrote a fvwm-menu-mount.py and use it in my Fvwm menus to u/mount devices.

Tinkster 08-19-2006 03:24 AM

I mount everything (except for the hdd-partitions that comprise my
slackware, of course) manually ... well, mostly. I did write a script
that mounts my usb key via usbmanager.



Cheers,
Tink

soldan 08-19-2006 01:33 PM

Quote:

Originally Posted by ciotog
I primarily use WindowMaker, and have created menu items that mount the device, then start mc with the desired folders ready to go. On quitting mc the device umounts. For example, here's the menu entry for "mount camera":

mount /mnt/dsc-p52 ; sleep 2 ; xterm -geometry 96x60 -e mc /mnt/dsc-p52/dcim/101msdcf /home/share/pictures ; umount /mnt/dsc-p52

hi ciotog, i mount my dvd writer drive in much the same way, with a menu item to first mount the drive, then open emelfm2 filemanager to the dvd's directory. but i have looked at your commands above and cannot see how to unmount the drive once emelfm2 filemanager is closed. can you explain what i need to add to this code to do that? 'mount /mnt/dvd && emelfm2 --one=/mnt/dvd'

ciotog 08-20-2006 12:18 AM

The semicolon instructs the shell to run the following command after the prior one has finished, so you should be able to simply put " ; umount /mnt/dvd" at the end. Of course this doesn't work if emelfm2 releases the shell upon running (like some programs do).

soldan 08-20-2006 06:41 AM

ciotog, i have just checked and emelfm2 does release the shell, so it wont work, which is a shame because it would have been great. oh well, ill try an automounter prog. thanks anyway :)

ciotog 08-21-2006 01:39 AM

soldan, I just installed emelfm2 and in the man page it mentions that the "-n" switch keeps the program from detaching from the terminal, so you could use this in your menu item. emelfm2 looks rather nice, I think I'll try it out for a while.

soldan 08-21-2006 06:09 AM

yeah brilliant, the -n switch works :) thanks ciotog :)

Linux.tar.gz 08-24-2006 07:29 PM

Thanks all for replies.
But i want MORE!
So i bump:
bumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbump
:)

Linux.tar.gz 09-01-2006 05:06 PM

Well i need more stuff about automounters. This isn't my n°1 priority so i have time to get feedback. Autofs seems to be the right choice as it's kernel-based...

Electro 09-01-2006 05:23 PM

IMHO, automounters are a lost cause. I suggest editing udev files to do it. With udev, you have more control where the device will be mounted because it can look up tons of information about the connected devie. Though I rather mount the device my self using the sudo command.

The semicolon does not verify that the command has succeded with out any errors. If you want to make sure it worked with out any errors, but do not want to resume to the next command sequence when there is an error, use &&.


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