Results 1 to 10 of 10

Thread: Mount drive

  1. #1
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Mount drive

    I have a virtual machine running on Kubuntu (Oneiric Ocelot) that I access via a Windows based pc using remote desktop connection. I need to read and write on network drives that are on a Windows server for which I have permissions. I tried to set this up via Dolphin but it did not work, I'm thinkng because I didn't see a way to issue credentials (it only prompts for name, server and folder when you try to add a network drive). It's not clear to me how to specify the path to my folders on the network. If I look at Windows explorer I see:

    Computer>BB001(E>Docs>Reports

    However, my IS folks said the path is:

    \ARX\ARX1\Res\BB001

    I have an ip address for the windows server as well which I also tried.

    How does one determine the proper name, sever, and folder to add a network drive in Dolphin? Would it be better just to do this at the Konsole? How?

    I want to mount Computer>BB001(E>Docs>Reports on my VM. Looks like from what I've read I have to create a mount point first.

    sudo mkdir -p /mnt/sharename

    That's telling the VM to create a temporary subdirectory under mnt called sharename, right?

    Then I have to mount the drive.

    sudo mount [IP AND/OR FOLDER ON THE WINDOWS SERVER] /mnt/sharename -o \
    username=username,password=password,dmask=777,fmas k=777

    Is this strcuture correct? How do I determine what to specify what's in brackets?

    Anyway, I looked around nin the forums here and other places on the web but didn't come up with an answer.




  2. #2
    Join Date
    Jan 2012
    Posts
    124
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Rep Power
    2
    Long story short, you need to install Samba on your Linux machine before you can mount Windows shares. I haven't done a Windows->Linux share in a while (mostly do Linux->Windows) so I'm not sure what the command is exactly.

    sudo mkdir -p /mnt/sharename

    That's telling the VM to create a temporary subdirectory under mnt called sharename, right?
    No, if you did "mkdir -p /tmp/sharename" then it would be a temporary subdirectory. Making a directory in /mnt is a permanent folder unless you delete it.
    Information Server Management
    Linux server management, PCI consultation and affordable web hosting.

    Security For Us - Where security works for you

    Providing server security and PCI compliance for individuals and businesses.

  3. #3
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    test

  4. #4
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I want

  5. #5
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    and need

  6. #6
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    to post

  7. #7
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    a link relevant to a question.

  8. #8
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Ok. Did a search and I have smbclient on my Linux box. Found the following instructions for its use:

    http://cri.ch/linux/docs/sk0001.html

    How do I determine <windows-box>?

  9. #9
    Join Date
    Aug 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    If I type smbtree I can see my shares but how do I know which one contains the folder I want to access?

  10. #10
    Join Date
    Jul 2012
    Posts
    60
    Thanks
    0
    Thanked 10 Times in 9 Posts
    Rep Power
    1
    Being massively undereducated in Windows/Windows sysadmin'ing I only can guide you in what it means
    So,

    Code:
    mount -t smbfs -o username=<username>,password=<password> //<win-box>/<share> /mnt/<name-of-mountpoint>
    `<win-box>' means the IP/domain the Windows box is bound to.
    For `<share>', my best guess is the sharename of the folder/file/etc that was put up as a shared thing. If that doesn't work, do the full path in the form of `/a/b/c/d' (I guess cut off the C: at the beginning).
    (The ip can be found out via `ipconfig' on the windows box.)

    To make things a bit easier for yourself you can attach a domain to an IP by appending /etc/hosts on the linux box/vm with
    `<IP> <WantedHostName>'.

    Lastly (but almost unimportant), `/mnt' is usually the temporary mount directory and only used once in a blue moon. If you're going to want the windows shared mounted for most of the uptime of the linux box, create a dedicated directory in `/' and edit `/etc/fstab' to automount it during boot.

    (Append fstab with: )

    Code:
    //servername/sharename /mountdirectory smbfs username=windowsuserename,password=windowspassword 0 0
    Edit: Since /etc/fstab can be read by anyone, in your home directory,

    echo username=mywindowsusername > .smbpasswd
    echo password=mywindowspassword >> .smbpasswd
    chmod 600 .smbpasswd

    Then add this to fstab:
    smbmount //servername/sharename /mountdirectory -o credentials=/home/myhomedirectory/.smbpasswd 0 0

    Sources:
    http://www.justlinux.com/nhf/Filesys...rmanently.html
    Last edited by Kerms; 08-09-2012 at 08:04 PM.

 

 

Similar Threads

  1. How to install Ubuntu on to a External Hard Drive.
    By cluckis in forum Getting Started
    Replies: 3
    Last Post: 07-01-2012, 07:39 AM
  2. Mount your google drive in linux
    By Rob in forum General Linux
    Replies: 8
    Last Post: 05-06-2012, 12:25 PM
  3. plug the hard drive to other computer?
    By enhu in forum General Linux
    Replies: 1
    Last Post: 12-26-2011, 05:21 PM
  4. Use Linux VM to see contents of flash drive?
    By red in forum General Linux
    Replies: 4
    Last Post: 11-11-2011, 05:55 PM
  5. Indie game donation drive!
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-04-2011, 09:52 AM

Bookmarks

Posting Permissions

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








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,580
Threads: 3,920
Posts: 9,446
Top Poster: Fred (1,486)
Welcome to our newest member, SLW210

» Links



Powered by vBadvanced CMPS