Results 1 to 9 of 9

Thread: Mapping Local Share

  1. #1
    Join Date
    May 2010
    Beans
    23

    Mapping Local Share

    Hello, I apologize if this should be in the "networking" forum, but everything I saw there is about getting a network working...

    Hopefully I'll give enough information here, I am trying to map a local network drive permanently at each log on.

    I have read the following pages:
    http://ubuntuguide.org/wiki/Ubuntu:F..._users_to_read
    http://ubuntuforums.org/showthread.php?t=162439
    http://ubuntuforums.org/showthread.php?t=784734
    https://wiki.ubuntu.com/MountWindowsSharesPermanently

    I am a Windows professional in the IT industry, but sadly I can't get this working. I am new to Ubuntu, I've been playing with a portable USB with persistence for a few months, and set up a dual boot with XP on my Dell Vostoro 1510 finally last week.

    I'm running 9.10, and recently did all updates except going to the next version (it was hard enough getting everything going on this Dell I didn't want to risk my install).

    I have a Lacie NAS drive locally, let's say the address is "10.10.10.100". There is a share on it let's say called "share01". There is a password let's say it is "password".

    I am connected with a Broadcom Corporation BCM4312, and I can boot and be connected a few seconds after (I don't have a wired option)...

    Following the instructions I have noted I can't get it to work. I am guessing since I don't get connectivity until after my desktop is up the script to map the drive can't see anything (until the wireless is up).

    To make it funky, I can open a playlist in Rhythmbox, it asks for my sudo password, then bam I have the drive mapped, and it plays.

    Any simple walk-through's would be greatly appreciated. I am totally new to this environment, but for the past few months have made everything work with some searching; hence my committal to a full on live environment instead of the USB.

    My goal is to have the mapped drive on the desktop, and under "places" as I will be storing all my documents there for both OS's.

    Thank you, and I will gladly offer any information that is needed to resolve this.

  2. #2
    Join Date
    May 2010
    Beans
    23

    Re: Mapping Local Share

    Bump, WOW, 30 minutes later and on the second page... didn't know this forum was this fluid.

  3. #3
    Join Date
    May 2010
    Beans
    23

    Re: Mapping Local Share

    Anyone got an idea?

  4. #4
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mapping Local Share

    Do you have an entry in fstab that you are using to mount the remote share or are you using a script somewhere.

    Post the line that you using and maybe it's that.

    If it's in fstab then there is a problem with the new accelerated boot process where fstab is being executed before the network is up. If you use the following command in a terminal can you access the remote share:

    Code:
    sudo mount -a

  5. #5
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mapping Local Share

    If it's an fstab entry you could try this approach: http://ubuntuforums.org/showthread.p...92#post9346192

  6. #6
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Mapping Local Share

    Quote Originally Posted by DMustaine View Post
    Hello, I apologize if this should be in the "networking" forum, but everything I saw there is about getting a network working...

    Hopefully I'll give enough information here, I am trying to map a local network drive permanently at each log on.

    I have read the following pages:
    http://ubuntuguide.org/wiki/Ubuntu:F..._users_to_read
    http://ubuntuforums.org/showthread.php?t=162439
    http://ubuntuforums.org/showthread.php?t=784734
    https://wiki.ubuntu.com/MountWindowsSharesPermanently

    I am a Windows professional in the IT industry, but sadly I can't get this working. I am new to Ubuntu, I've been playing with a portable USB with persistence for a few months, and set up a dual boot with XP on my Dell Vostoro 1510 finally last week.

    I'm running 9.10, and recently did all updates except going to the next version (it was hard enough getting everything going on this Dell I didn't want to risk my install).

    I have a Lacie NAS drive locally, let's say the address is "10.10.10.100". There is a share on it let's say called "share01". There is a password let's say it is "password".

    I am connected with a Broadcom Corporation BCM4312, and I can boot and be connected a few seconds after (I don't have a wired option)...

    Following the instructions I have noted I can't get it to work. I am guessing since I don't get connectivity until after my desktop is up the script to map the drive can't see anything (until the wireless is up).

    To make it funky, I can open a playlist in Rhythmbox, it asks for my sudo password, then bam I have the drive mapped, and it plays.

    Any simple walk-through's would be greatly appreciated. I am totally new to this environment, but for the past few months have made everything work with some searching; hence my committal to a full on live environment instead of the USB.

    My goal is to have the mapped drive on the desktop, and under "places" as I will be storing all my documents there for both OS's.

    Thank you, and I will gladly offer any information that is needed to resolve this.
    Honestly, it is not all that difficult. Linux uses fstab to "map" network shares (the terminology is a bit different in Linux).

    What entry are you using for fstab ?

    Is your mount working ? Can you mount the share from nautilus and / or the command line ?

    Code:
    sudo mount -t cifs //10.10.10.100/share01 /media/share01 -o username=xxx
    Where "xxx" is the user name used for the share (typically a log in name).

    You should be asked for a password. You may need to make the mount point first :

    Code:
    sudo mkdir /media/share01
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  7. #7
    Join Date
    May 2010
    Beans
    23

    Re: Mapping Local Share

    Thanks for the replies!!!


    fstab has the following entries (hidden info for security)
    Code:
    sw              0       0
    //10.x.x.x/xxx1  /media/xxx1  cifs  defaults,uid=1000,gid=1000,credentials=~/.smbpasswd,umask=777  0  0
    When I try
    Code:
    sudo mount -a
    I get the following:
    Code:
    mount: wrong fs type, bad option, bad superblock on //10.x.x.x/xxx1,
           missing codepage or helper program, or other error
           (for several filesystems (e.g. nfs, cifs) you might
           need a /sbin/mount.<type> helper program)
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    Is your mount working ? Can you mount the share from nautilus and / or the command line ?

    Code:
    sudo mount -t cifs //10.10.10.100/share01 /media/share01 -o username=xxx
    Where "xxx" is the user name used for the share (typically a log in name).

    You should be asked for a password. You may need to make the mount point first :
    Code:
    sudo mkdir /media/xxx1
    No, when trying mount -t cifs I get the following error:
    Code:
    mount: block device //10.x.x.x/xxxx1 is write-protected, mounting read-only
    mount: cannot mount block device //10.x.x.x/xxx1 read-only
    It's perplexing... like I emntioned I open the music player and voila, asks me for password and mounts the drive, but until then I'm stuck.



    Again, THANK you for the replies and suggestions, I'm trying best I can, but have had a few long days... I'll be back at it hard soon.

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Mapping Local Share

    In this line :

    //10.x.x.x/xxx1 /media/xxx1 cifs defaults,uid=1000,gid=1000,credentials=~/.smbpasswd,umask=777 0 0

    1. Remove "defaults"
    2. Add users.
    3. Use the full path to credentials.
    4. Add noperm

    //10.x.x.x/xxx1 /media/xxx1 cifs users,uid=1000,gid=1000,credentials=/home/user/.smbpasswd,umask=777,noperm 0 0
    From there watch the syntax and permissions of your credentials file.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    May 2010
    Beans
    23

    Re: Mapping Local Share

    Don't know how or why, or what i did different... I did a fresh install on a new hard drive, and not only did my Broadcom wireless work right away, but I mapped the drive, and not I can just click on it in "places" and viola, there every time.

    Thanks for all the help everyone, I think something must have been funky in my last install (it was from a USB "live" install of Ubuntu).

Tags for this Thread

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
  •