Re: How to automatically mount usb drive?



Fred wrote:
On Tue, 21 Aug 2007 01:49:56 -0400, Matt Giwer wrote:
http://www.giwersworld.org/computers/linux/usb-drives.phtml
Works for me for four of them.
As for a manual mount
mount -t ext3 /dev/sdb1 /mnt/usb
is sufficient. I presume it works the same for -t vfat.

This web page does not even mention autofs or automount.
I know how to mount any device I need to -- I just want
to automate the process.

Are you saying they do not automount in any manner? They worked from the moment I installed FC4 -> FC6 -> FC7 and with an FC7 clean install. Have you looked at dmesg to see if those services are starting? The write up is for getting them where you want them when powering up. If I plug them in or turn them on later they do automount and always have.

Is there something special you did during the installation? Are you using a usb card you added after installation? (That should be found at boot time but maybe not.) When you type

pstree |grep automount

you should see one automount line.

Are there there no /dev/sdXY entries in /etc/mtab?

More basically why are you sure they are not automounting? They will mount at more than one point and do not take the next device letter in order. Before I set up the boot time mount they were all over the alphabet.

You do know you have to format it before you can use it although they usually come with VFAT on them these days.

--
Until New York Jews ululate like Sephardic Jews in Israel and Sephardic Jews
do Russian circle dances like Russian Jews, and they all sing Hava Negilah
to the tune of Irving Berlin they are not an ethnic group.
-- The Iron Webmaster, 3946
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Blame Israel http://www.ussliberty.org a10
.



Relevant Pages

  • Re: Mounting SD card with specific encoding
    ... I tried using flag -t msdos instead of -t vfat but that did ... On my RHELv4 system I mount a usbdrive using the following.... ... I then moved the usbdisk to my F8 system and allowed the system to automount ...
    (Fedora)
  • Re: mounting vfat and umask woes
    ... > I can mount the thing successfully and read and write from/to it. ... vfat doesn't support Unix permission bits. ... Linux vfs layer fakes up permission bits for you. ... you can modify the default permissions (take ...
    (comp.unix.admin)
  • Re: NFS client , automount and protection problem
    ... Since you're having problems with non-root automount, ... This creates the "disk2" alias in the root. ... WORKS PERFECTLY (aka lists the files on the remote server). ... bother asking the remote server to mount it. ...
    (comp.sys.mac.system)
  • Re: Shared Windows/Linux Drive Problems
    ... > user-support to mount as '/home'. ... In setting /home to be a vfat partition the basic problem is that, ... vfat has no notion of file's ownership or permission. ... What if you have two users mary and peter? ...
    (Ubuntu)
  • Re: confusion and case problems: utf8 <-> iocharset
    ... I try to understand how the charset mapping with VFAT/Joliet and I found ... some inconsistencies between the user expectations, the docs, and the ... VFAT is using short name as long as it complies with MSDOS; ... man mount ...
    (Linux-Kernel)