Find the answer to your Linux question:
Results 1 to 5 of 5
Hello there I want to auto mount cdrom and flash drive such that i dont have to manually mount it every time. I know some entries in fstab have to ...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Wink How to auto mount cdrom and flash dirve

    Hello there
    I want to auto mount cdrom and flash drive such that i dont have to manually mount it every time.
    I know some entries in fstab have to be modified but don't exactly know how?

    My fstab file contents are as shown below

    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/hda3 swap swap defaults 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


    How can I add up an entry for auto mounting the pen or flash drive. Also will replaceing 'noauto' with 'auto' for cdrom automatically mount cdrom( I suppose it will.)

  2. #2
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    will adding the line
    /dev/sda1 /mnt/usbflsh auto auto 0 0
    be suffice

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    It might, as long as the mount points and /dev/sda1 are correct, but Unless this USB drive is going to be connected every time you boot the machine, you might want to set the auto to noauto
    Code:
    /dev/sda1 /mnt/usbflsh auto noauto,rw,umask=0 0 0
    Give that a twirl.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  4. #4
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    does that option means that when i insert the usb after reboot , it will not get mounted. I tried with the usb pluged in before reboot and it worked perfectly fine.

  5. #5
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Yes, if you want it to mount on boot use auto.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

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