Announcement

Collapse
No announcement yet.

samba share (on 2nd disk) not working until someone locally access disk

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

    samba share (on 2nd disk) not working until someone locally access disk

    I add 2nd disk for my backups on home server.
    I add one folder on this disk and shared with samba.
    Samba works only after i access this shared folder on home server.
    Why? What should I check? I didn't had this problem with gnome2 on 10.04

    #2
    Is the drive mounted when you try to access it? (run mount from a terminal to see)

    Comment


      #3
      1st mount is before trying to connecting (i see 2nd disk in dolphin), 2nd is after i click on disk in dolph

      server@server:~$ mount
      /dev/sda1 on / type ext4 (rw,errors=remount-ro)
      proc on /proc type proc (rw,noexec,nosuid,nodev)
      sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
      none on /sys/fs/fuse/connections type fusectl (rw)
      none on /sys/kernel/debug type debugfs (rw)
      none on /sys/kernel/security type securityfs (rw)
      udev on /dev type devtmpfs (rw,mode=0755)
      devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
      tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
      none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
      none on /run/shm type tmpfs (rw,nosuid,nodev)
      server@server:~$ mount
      /dev/sda1 on / type ext4 (rw,errors=remount-ro)
      proc on /proc type proc (rw,noexec,nosuid,nodev)
      sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
      none on /sys/fs/fuse/connections type fusectl (rw)
      none on /sys/kernel/debug type debugfs (rw)
      none on /sys/kernel/security type securityfs (rw)
      udev on /dev type devtmpfs (rw,mode=0755)
      devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
      tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
      none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
      none on /run/shm type tmpfs (rw,nosuid,nodev)
      /dev/sdb5 on /media/DISK1 type ext4 (rw,nosuid,nodev,uhelper=udisks)
      server@server:~$

      Comment


        #4
        I take it that this
        Code:
        /dev/sdb5 on /media/DISK1 type ext4 (rw,nosuid,nodev,uhelper=udisks)
        is the disk you want to share?

        If so it is not mounted at boot, but is mounted by dolphin when you try to open it.

        To make it available at boot add an entry to /etc/fstab similar to:
        Code:
        /dev/sdb5 /media/DISK1 ext4 defaults 0 0
        And make sure the directory /media/DISK1 exists if not create it.
        You can even change where it mounts (by changing '/media/DISK1') as long as that folder exists during boot

        Comment


          #5
          thx man, solved.
          there is only one question did i change fstab manually also for ubuntu 10.04 or ubuntu automount 2nd disk in my ex sever? i do not remember

          Comment


            #6
            I think gnome auto mounts disks at login, which kde could be setup to do, but it is best to set it up in /etc/fstab so it gets mounted before you login rather then after and to make sure it is mounted in the same location every time.

            Comment


              #7
              ok, i will do manually for next setup.
              one more for question (curiosity ) ... how to setup auto mount in kubuntu?

              Comment

              Working...
              X