Announcement

Collapse
No announcement yet.

Automount not working with USB-drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Automount not working with USB-drive

    Hello!

    Have been struggling with this problem for a long time now but just can't find a working solution.
    I have a external USB Samsung hard drive formatted as ntfs, old drive I used with Windows for backups, movies etc.

    First time I started up the disc in Kubuntu I was asked what to do. I marked "Do nothing" and clicked the box "Never ask again". Later I tried to access the disc, but realized that it wasn't mounted.

    I installed ntfs-3g and ntfs-config. I know that many of you might say I shouldn't use ntfs-config but at that time I didn't know the crappy code it generates.

    My internal drives with NTFS file system is working flawless.
    The USB-drive mounts on computer startup, if it's powerd on.
    BUT, if i use the "Safe removal", shutdown and then start up the drive again I get a popup saying "Mounting /dev/sdc1" and nothing more happens.

    If I then try mounting it using:
    Code:
    mount /media/usbhd
    I get:
    Code:
    fusermount: mount failed: Device or resource busy
    FUSE mount point creation failed
    Unmounting /dev/disk/by-id/usb-SAMSUNG_HD300LD_DEF10BC18150-0:0-part1 (Lagring)
    The line in my fstab looks like this:
    Code:
    /dev/disk/by-id/usb-SAMSUNG_HD300LD_DEF10BC18150-0:0-part1 /media/usbhd ntfs-3g users,umask=000 0 0
    Is it really a big problem to get the auto mount working with a USB HDD? Will it be easier if the drive isn't formatted in NTFS?

    #2
    Re: Automount not working with USB-drive

    Originally posted by TheSilencer
    I marked "Do nothing" and clicked the box "Never ask again".
    Oh, oh ... you may want to reset this (by means of [Alt][F2]kcmshell media).

    Originally posted by TheSilencer
    My internal drives with NTFS file system is working flawless.
    Then, please, post the according record set from /etc/fstab.

    Originally posted by TheSilencer
    Is it really a big problem to get the auto mount working with a USB HDD?
    Will it be easier if the drive isn't formatted in NTFS?
    From my experience, it's more a problem of present Kubuntu than of USB and/or NTFS :P

    Comment


      #3
      Re: Automount not working with USB-drive

      Opend kcmshell media and selected "Mount removable device" or whatever the choice is on the english version, I'm swedish. Then "Open in new window" as auto.

      Strange thing now is that when I start the usb-drive nothing happens. Will try a reboot later to see if it changes.

      My fstab:

      Code:
      # /etc/fstab: static file system information.
      #
      # -- This file has been automaticly generated by ntfs-config -- 
      #
      # <file system> <mount point>  <type> <options>    <dump> <pass>
      
      proc /proc proc defaults 0 0
      # Entry for /dev/sda6 :
      UUID=8097d3d1-1d14-4e3e-a12c-7498ee5f9185 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
      # Entry for /dev/sda5 :
      UUID=2264EDAE64ED84BF /media/sda5 ntfs-3g defaults,locale=sv_SE.UTF-8 0 1
      # Entry for /dev/sdb1 :
      UUID=B22CBA132CB9D299 /media/sdb1 ntfs-3g defaults,locale=sv_SE.UTF-8 0 1
      # Entry for /dev/sda7 :
      UUID=510878df-b2ea-4eeb-9a29-a3544261a1b4 none swap sw 0 0
      /dev/hda /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
      
      /dev/disk/by-id/usb-SAMSUNG_HD300LD_DEF10BC18150-0:0-part1 /media/usbhd ntfs-3g users,umask=000 0 0
      #UUID=96A01D5EA01D45E1 media/usb ntfs-3g noauto,uid=1000,gid=1000,rw,users 0 0
      Nothing is changed from when I ran ntfs-config except, /dev/disk/by-id/usb-SAMSUNG_HD300LD_DEF10BC18150-0:0-part1 /media/usbhd ntfs-3g users,umask=000 0 0, wich I added manually.

      The last # is just a test I did.

      Comment


        #4
        Re: Automount not working with USB-drive

        Originally posted by TheSilencer
        defaults,locale=sv_SE.UTF-8 0 1
        I'd rather not let Linux conduct file system checks on NTFS ...
        Therefore, you may want to replace the trailing 1 with 0 (zero).

        Originally posted by TheSilencer
        users,umask=000 0 0
        Hmmm ... mine (even though providing "plug & pray") reads:

        Code:
        noauto,users,umask=000 0 0
        However, I'd settle for one set of options for all NTFS partitions.

        But be that as it may - could you please verify the settings of KDE's "new media daemons" as described in this text ...

        Comment


          #5
          Re: Automount not working with USB-drive

          Originally posted by UnicornRider
          I'd rather not let Linux conduct file system checks on NTFS ...
          Therefore, you may want to replace the trailing 1 with 0 (zero).
          Oops, missed that. Fixed.

          Originally posted by UnicornRider
          Hmmm ... mine (even though providing "plug & pray") reads:
          Code:
          noauto,users,umask=000 0 0
          Isn't that a bit strange? Why does it auto mount if the command is active? Is there any other way that Kubuntu tries to mount the device?
          Remember now that yesterday when I started up my drive the window popping up stated "Mounting dev/sdc1" and that's not the entry in my fstab. (see 1st post)

          My medianotifier.desktop
          Code:
           X-KDE-Kded-autoload=true
           X-KDE-Kded-load-on-demand=false
          My mediamanager.desktop
          Code:
           X-KDE-Kded-autoload=true
           X-KDE-Kded-load-on-demand=true
          Nothing strange here...

          Comment


            #6
            Re: Automount not working with USB-drive

            Originally posted by TheSilencer
            Isn't that a bit strange? Why does it auto mount if the command is active?
            Is there any other way that Kubuntu tries to mount the device?
            Due to working mainly on Debian systems at present, I have to guess ... maybe the "fstab" entry's "noauto" merely means "no self-acting at system boot" (?).

            What I do know, however, is that HAL and UDEV are playing their part in the handling of removable media maybe some of the gurus can shed light on this?

            Addenum: could you post the system's feedback to ls -l /media (just to rule out another "obvious" source of trouble) ...?

            Comment


              #7
              Re: Automount not working with USB-drive

              ls -l /media

              Code:
              lrwxrwxrwx 1 root root   6 2007-09-02 14:53 cdrom -> cdrom0
              drwxr-xr-x 2 root root 4096 2007-09-02 14:53 cdrom0
              drwxrwxrwx 1 root root 32768 2007-09-05 17:05 sda5
              drwxrwxrwx 1 root root 8192 2007-09-05 17:11 sdb1
              lrwxrwxrwx 1 root root   4 2007-09-02 16:54 usb -> usb0
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb0
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb1
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb2
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb3
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb4
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb5
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb6
              drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb7
              drwxr-xr-x 2 root root 4096 2007-09-02 16:39 usbhd

              Comment


                #8
                Re: Automount not working with USB-drive

                Originally posted by TheSilencer
                drwxr-xr-x 2 root root 4096 2007-09-02 16:39 usbhd
                Code:
                sudo chmod 777 /media/usbhd
                Originally posted by TheSilencer
                lrwxrwxrwx 1 root root 4 2007-09-02 16:54 usb -> usb0
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb0
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb1
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb2
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb3
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb4
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb5
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb6
                drwxr-xr-x 2 root root 4096 2007-09-02 16:54 usb7
                What the ... I've never seen that one before

                If this were my machine (read: hazard guess), I'd

                Code:
                sudo rm /media/usb 
                sudo rm /media/usb0
                at the very least, then give it "yet another try" ...

                Comment


                  #9
                  Re: Automount not working with USB-drive

                  I know.. i thought what the !"#"¤

                  It was that way because I had the package usbmount installed.
                  Probably something I tested. Made no difference removing.

                  Removed it and now it looks like this.
                  Code:
                  lrwxrwxrwx 1 root root      6 2007-09-02 14:53 cdrom -> cdrom0
                  drwxr-xr-x 2 root root     4096 2007-09-02 14:53 cdrom0
                  drwxrwxrwx 1 root root    32768 2007-09-05 17:21 sda5
                  drwxrwxrwx 1 root root     8192 2007-09-05 17:45 sdb1
                  drwxrwxrwx 1 root thesilencer 8192 2007-09-04 16:15 usbhd
                  Did a reboot after removing usbmount and again the drive is mounted at boot, but still if I use the "Safe removal" and restart it the mounting freezes.

                  If I Cancel the mounting and do a mount /media/usbhd nothing happens. But when done, I cant browse none of my folders. more -> Konqueror doesn't show anything, just replying with "Stopped / halted". (again, the translation from Swe to Eng)

                  Comment


                    #10
                    Re: Automount not working with USB-drive

                    Originally posted by TheSilencer
                    drwxrwxrwx [...] root thesilencer [...] usbhd
                    Why did you change the ownership of the mount point that way?

                    Comment


                      #11
                      Re: Automount not working with USB-drive

                      It's probably from me testing to unmount and mount it again without sudo.
                      ls -l /media now shows the ownership root.

                      Comment


                        #12
                        Re: Automount not working with USB-drive

                        Now, what happens when you power-on the drive with the system running?
                        (Since that's the way I'm used to handle, read: test removable usb devices.)

                        Comment


                          #13
                          Re: Automount not working with USB-drive

                          If I start up the system without the drive running, log in and then start the drive. Same thing happens as when:

                          Originally posted by TheSilencer
                          Did a reboot after removing usbmount and again the drive is mounted at boot, but still if I use the "Safe removal" and restart it the mounting freezes.

                          If I Cancel the mounting and do a mount /media/usbhd nothing happens. But when done, I cant browse none of my folders. more -> Konqueror doesn't show anything, just replying with "Stopped / halted". (again, the translation from Swe to Eng)
                          The drive starts, mount begins but freezes. I can cancel, do a umount then mount manually without any error codes, but then I can't browse my files.

                          Comment


                            #14
                            Re: Automount not working with USB-drive

                            Mumble, mumble, back to square one, then:

                            - The packages fuse and ntfs-3g are installed, right?
                            - The regular user is member of the fuse group, right?

                            Comment


                              #15
                              Re: Automount not working with USB-drive

                              Fuse-utils and ntfs-3g is installed.
                              User is member of fuse group.

                              Thnx again for trying to help, because now I'm really stuck. :P

                              Comment

                              Working...
                              X