LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2006, 12:01 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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?
 
Old 08-14-2006, 05:11 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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.
 
Old 08-14-2006, 05:27 PM   #3
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
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.
 
Old 08-14-2006, 05:46 PM   #4
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
i also use autofs works well.
 
Old 08-19-2006, 01:02 AM   #5
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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.
 
Old 08-19-2006, 01:54 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
I wrote a fvwm-menu-mount.py and use it in my Fvwm menus to u/mount devices.
 
Old 08-19-2006, 03:24 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 08-19-2006, 01:33 PM   #8
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
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'
 
Old 08-20-2006, 12:18 AM   #9
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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).
 
Old 08-20-2006, 06:41 AM   #10
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
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
 
Old 08-21-2006, 01:39 AM   #11
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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.
 
Old 08-21-2006, 06:09 AM   #12
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
yeah brilliant, the -n switch works thanks ciotog
 
Old 08-24-2006, 07:29 PM   #13
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Thanks all for replies.
But i want MORE!
So i bump:
bumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbump
 
Old 09-01-2006, 05:06 PM   #14
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
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...
 
Old 09-01-2006, 05:23 PM   #15
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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 &&.
 
  


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
Omit device from automounter? TomalakBORG SUSE / openSUSE 1 01-12-2006 06:30 PM
Disable KDE Automounter? raid517 Linux - Software 1 03-24-2005 06:35 PM
subfs automounter ronald-be Linux - Hardware 2 08-22-2004 11:46 AM
automounter issue Pico_01 Linux - General 0 05-10-2004 11:42 AM
CD drive automounter pe2338 Debian 17 08-21-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 AM.

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