Hi Ubuntu community!
Have a question on mounting a drive. Have a 2tb external NTFS formatted hard drive connected by usb to a desktop running Ubuntu. The purpose of this drive is for backing up a windows machine and a laptop running Kubuntu.
Updated fstab file to ‘uuid=uuid# /dest.dir ntfs defaults,uid=1000,gid=1001,umask=003 0 0’
Further, updated smb.conf to
[nas_bkup]
browseable = yes
write list = user, user1, user2
valid users = @bkup_grp
force user = user
force group = @bkup_grp
Windows machines access no problem the smb share and utilize the Windows History backup feature without issue.
On the laptop running Kubuntu have no problem accessing the share through Dolphin file manager, however, unfamiliar with what I need to do to mount the external drive on the Kubuntu machine. Looking to use Rsync or Luckybackup as the backup tool.
Have tried a variety of mounting methods. The closest I get is ‘sudo mount -t cifs //192.168.x.x/source.dir /dest.dir -o defaults’
Using the above asks for ‘root@//192.168.x.x password/source.dir’ which I input but gives me a permission denied mount error (13).
Thanks in advance for any help on this. -vcandy42
Try using a concrete user (not root) and it’s password:
sudo mount -t cifs //192.168.x.x/source.dir /dest.dir -o defaults,user=uuuuuuu,pass=ppppppppppppp
Just tried that and getting a different error. Mount error (2) No such file or directory.
Not sure why I’m strugglin’ with this have usually been able to do these mounts in the past with no problem.
Mount error (2) No such file or directory means that //192.168.x.x/source.dir is not the main directory of the sharing. Check the name, capital letters, path, etc…
Just got it. The directory pattern is different in both Dolphin and through the command. I have been using the command line pattern that looks like this:
//192.168.x.x/vmc/nas_bkup1/bkup1
Whereas Dolphin has this: (This Worked)
//192.168.x.x/nas_bkup/nas_bkup1/bkup1
In the command line I included a directory that exists on the Desktop drive not the external hard drive. Naturally, the Dolphin file manager does not include this directory when examining shared sources, but interestingly they also include an extra directory nas_bkup.
As I am writing this out I realize I am such a moron. This is exactly how it should be, for I just renamed the directory /vmc to [nas_bkup] in my smb.conf file.
Two take aways from this. 1. I need to STOP staring at the screen for hours on end, and 2. Walk away for awhile and come back with a fresh head.
Thanks for your help. vcandy