Categories
User Help

Ubuntu 20.04 Samba Share to Windows, Added a Second Drive Its Not Recognized

I configured a server/Plex media server on Ubuntu 20.04, and to transfer and download files directly, I set up Samba shares using the following tutorial, which was working perfectly.

I added an additional hard drive to expand storage to the PC and read multiple ways on how to mount or add it to Samba for it to be accessible; however, none of them have worked, with the two most popular being:

  • Mount it to an existing directory that is already shared with Samba:
    It worked on the Linux machine, however Windows only recognized it as the original drive and not the new one.
  • Mount it in a new directory and add a new share within smb.conf:
    [harddrive]
      path = /media/Storage
      writeable = yes
      valid users = %S
    

Am I doing something wrong, or is there a different way to do this?

  • Original smb.conf:
    [global]
      workgroup = WORKGROUP
      server string = %h server (Samba, Ubuntu)
      log file = /var/log/samba/log.%m
      max log size = 1000
      logging = file
      panic action = /usr/share/samba/panic-action %d
      server role = standalone server
      obey pam restrictions = yes
      unix password sync = yes
      passwd program = /usr/bin/passwd %u
      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      pam password change = yes
      map to guest = bad user
      usershare allow guests = yes
    [printers]
      comment = All Printers
      browseable = no
      path = /var/spool/samba
      printable = yes
      guest ok = no
      read only = yes
      create mask = 0700
    [print$]
      comment = Printer Drivers
      path = /var/lib/samba/printers
      browseable = yes
      read only = yes
      guest ok = no
    [homes]
      comment = Home Directories
      browseable = yes
      read only = no
      create mask = 0700
      directory mask = 0700
      valid users = %S
    [public]
      comment = public anonymous access
      path = /var/samba/
      browsable =yes
      create mask = 0660
      directory mask = 0771
      writable = yes
      guest ok = yes
    

Leave a Reply

Your email address will not be published. Required fields are marked *