Find the answer to your Linux question:
Results 1 to 9 of 9
OS: SLES / SLED 10 whenever I insert usb drive, or a dvd into the dvd-drive, suse automatically mounts the usb/cd/dvd ... HOW ? I havent configure the automount/autofs, neither ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248

    Exclamation how the usb/dvd mounts automatically ?

    OS: SLES / SLED 10

    whenever I insert usb drive, or a dvd into the dvd-drive, suse automatically mounts the usb/cd/dvd ... HOW ? I havent configure the automount/autofs, neither i found any config in /etc/auto.master.

    So my question is how the usb drives, and cd/dvd, automatically mounts in suse 10 ?
    which service is responsible ?
    and how can I check the configs ?

    PLz help
    Thanks n Regards
    Needee

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Automatic mounts are taken care by automount daemon.

    Check your /etc/fstab, /etc/auto.master, and /etc/misc files for more info.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248
    Thanks Dear cyberinstru for help

    # cat /etc/fstab
    /dev/hda1 / reiserfs acl,user_xattr 1 1
    /dev/hda8 /boot ext2 acl,user_xattr 1 2
    /dev/hda9 /home reiserfs acl,user_xattr 1 2
    /dev/hda5 /usr reiserfs acl,user_xattr 1 2
    /dev/hda6 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/fd0 /media/floppy auto noauto,user,sync 0 0


    # rcautofs status
    Checking for service autofs: unused
    Configured Mount Points:
    ------------------------

    Active Mount Points:
    --------------------

    /etc/auto.master is default, i.e all lines are commented
    cat /etc/auto.master
    #
    # $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
    #
    # Sample auto.master file
    # This is an automounter map and it has the following format
    # key [ -mount-options-separated-by-comma ] location
    # For details of the format look at autofs(5).
    #/misc /etc/auto.misc --timeout=60
    #/smb /etc/auto.smb
    #/misc /etc/auto.misc
    #/net /etc/auto.net

    /etc/auto.misc is default, i.e all lines are commented, except the following

    cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

    Is the above line is used to mount the cd/dvd automatically ? even though there is no entry in auto.master(normally we have to add a line in auto.master also) ... will the above line will work ? ok... if the above line is sufficient to mount the cd/dvd automatically, then how/why the usb drives mounts automatically ?

    Thanks n Regards
    Needee

  4. #4
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Yes, u r right. This line
    cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
    mounts cd/dvd automatically. But I am not sure about USB. Usually, it would be in /etc/fstab for mounting USBs.

    Is thr any hotplug - detecting daemons to do this???
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  5. #5
    Linux Newbie
    Join Date
    Mar 2007
    Posts
    243
    This is what does it in /etc/fstab:

    usbfs /proc/bus/usb usbfs noauto 0 0

  6. #6
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248
    Thanks Dear cyberinstru and Pumalite for reply/help

    >usbfs /proc/bus/usb usbfs noauto 0 0
    see the option "noauto"... i.e the filesystem/device will not mount automatically ... but sles/sled 10 mounts usb automatically ... how ?

  7. #7
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    hey, after mounting USB, check the output of /etc/mtab.

    We shall infer from the mount point used.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  8. #8
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248
    hi cyberinstru
    # cat /etc/mtab
    .
    .
    .
    /dev/sdb1 /media/KINGSTON vfat rw,noexec,nosuid,nodev,flush,shortname=winnt,utf8, uid=0 0 0

    regards

  9. #9
    Linux Newbie
    Join Date
    Mar 2007
    Posts
    243
    ---Delete---

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...