Find the answer to your Linux question:
Results 1 to 10 of 10
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    kubuntu 9.04 automatically mounting removable devices when they are plugged


    I have found many threads on this problem but still no solution.

    I want the following behavior when I plug a device (USB stick or CD disk):

    1. it should be mounted automatically for me. Now it isn't, though it appears in fdisk -l output:
    Code:
    Disk /dev/sdd: 8006 MB, 8006926336 bytes
    16 heads, 32 sectors/track, 30544 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    Disk identifier: 0x9b12d290
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1   *          16       30544     7815232    b  W95 FAT32
    and if I mount it manually, all goes OK

    2. if I mount manually my CD disk and then press the eject button on my drive nothing happens until I manually unmount the drive. But I want it to open immediately

    All this worked for me in kubuntu 8.10, and broke with the upgrade.

    my fstab entries
    Code:
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/sdc1 /media/usb vfat noexec,codepage=866,utf8,nosuid,nodev,quiet,uid=1000,gid=1000,umask=077,user 0 0

  2. #2
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    /dev/sdc1 /media/usb vfat noexec,codepage=866,utf8,nosuid,nodev,quiet,uid=10 00,gid=1000,umask=077,user 0 0
    try it to be
    /dev/sdc1 /media/usb vfat user,auto,sync 0 0
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  3. #3
    Quote Originally Posted by kmitnick View Post
    try it to be
    Thank you, but it didn't work. I did the following: I edited my fstab file, reloaded it with
    Code:
    mount -v -a
    and got an error message
    Code:
    mount: special device /dev/sdc1 does not exist
    because no drive were plugged. Finally I plugged the stick, but it wasn't mounted automatically, I had to do it manually

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    ok i need you to plug it and post the output of
    Code:
    sudo fdisk -l
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  6. #5
    Quote Originally Posted by kmitnick View Post
    ok i need you to plug it and post the output of
    Code:
    sudo fdisk -l
    I got
    Code:
    Disk /dev/sdc: 8006 MB, 8006926336 bytes
    16 heads, 32 sectors/track, 30544 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    Disk identifier: 0x9b12d290
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *          16       30544     7815232    b  W95 FAT32

  7. #6
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    this is the whole output of sudo fdisk -l ???
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  8. #7
    Quote Originally Posted by kmitnick View Post
    this is the whole output of sudo fdisk -l ???
    sorry, stupid of me, I thought the part concerning my hdd is unnecessary.

    Code:
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x3c583c57
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        9375    75304656   83  Linux
    /dev/sda2            9376        9729     2843505    5  Extended
    /dev/sda5            9376        9729     2843473+  82  Linux swap / Solaris
    
    Disk /dev/sdb: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xbbcd0947
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       20887   167774796   83  Linux
    /dev/sdb2           20888       33635   102398310   83  Linux
    /dev/sdb3           33636       37714    32764567+  83  Linux
    /dev/sdb4           37715       38913     9630967+  83  Linux
    
    Disk /dev/sdc: 8006 MB, 8006926336 bytes
    16 heads, 32 sectors/track, 30544 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    Disk identifier: 0x9b12d290
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *          16       30544     7815232    b  W95 FAT32
    there is also another strange thing — my plugged in cd disk isn't listed above

  9. #8
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    why your flash drive is marked as boot???
    /dev/sdc1 /media/usb vfat user,auto,sync 0 0
    you said it didn't work,hmmmm!

    try in stead of vfat ->auto
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  10. #9
    Quote Originally Posted by kmitnick View Post
    why your flash drive is marked as boot???

    you said it didn't work,hmmmm!

    try in stead of vfat ->auto
    Hm, I don't know why it's marked as boot. If it causes the error what should I do?

    Code:
    /dev/sdc1 /media/usb vfat user,auto,sync 0 0
    this causes automounting my device on boot if it is plugged, but not when I plug it

  11. #10
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    mmm i am not sure if it causes the issue, but let me try some and i will post you back
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

Posting Permissions

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