Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 34

Thread: How to mount a Windows share

  1. Posible to mount a Samba Drive ?

    Hey - I would just like to follow up on this question.

    Is it posible to mount a samba drive hosted on another linux system on the WL500G Deluxe.

    The reason for this is that I have bought a MAXTOR SHARED STORAGE NAS.

    But this sweet thing do not have a built in FTP server (Before you flame me for not buying a PLEXTER NAS instead you should know i tried that - and was COMPLETLY dissapointed.) The software/Functionality/Usability/Stability/Finish/Language/FTP/USB and Filesystem/ WAS COMPLETLY AND UTTERLY USELESS!!!.
    Its the worst NAS device out there - BUT it has ftp.... (which in turn only support ONE user with only ONE set of permissions.... hurraaayy for that...... what a fuckup from Plextor).

    Oh well.... my agression put aside. I know that the MAXTOR SHARES STORAGE makes its windows shares with Samba. And i would like to make the FTP server in my WL500G Deluxe host the content of my Maxtor NAS.

    So im asking here:


    Is it posible to mount a Samba share on the WL500G Deluxe.... or would it do the same thing a windows share.

    I hope someone(Oleg) will respond and clear this one out one time for all.

    Or perhabs consider making a firmware able to mount windows shares in the future.


    Mr. EoniX

  2. #17
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Well, aparently there's no smbmount for the device available. Perhaps, because your host is a linux machine, the Asus is able to mount an nfs share?

  3. Could be - how is that done ?

  4. #19
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Well, you've to wait for wl700g, it should be based on the same chipset as maxtor. Anyway, is it fast?

    As for mounting samba share - no, this is not supported at the moment, as the kernel lacks smb support, and smbmount is missing as well. This functionality would be NEVER added to firmware (by me), as I see no reason mounting windows crap and I've no spare space in the flash to add this rarely used feature... If you need this, consider switching to openwrt, as it's modular firmware.

    BTW, OpenWRT could be installed to the matrox too.

  5. Perhabs im looking at another idea - perhabs i should be able to open up SSH and an ftp server on the maxtor box itself ?

    Anyone have any links concerning this on the Maxter NAS.

    Any help on this is worth gold to me.


    EoniX

  6. #21

    Any updates on this

    Hi everyone,


    are there any updates on this?

    Is it possible to 'mount a shared folder on a windows pc' onto the asus?


    I ask this because I would like to synchronise a folder which is on a windows pc with a folder which is on the asus.


    (let's say the lady downloads lots of music on her pc, I want to keep up with her music, but I use the storage on the asus. Right now I end up copying all through my windows pc. Would be nice to have it automatically synchronised with her folder)

    Thanks in advance,

  7. #22
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    there is a tool called smbclient (at least it's a part of ipkg-installed samba2).
    It provides you a possibility to connect to an smb share and either use an interactive client with interface similar to ftp or perform some automated operations (e.g. retreive a tar-ed directory).

    Another, but more universal option would be to install ssh server in windows.

    P.S. samba2 provides also smbmount, however I never tried to use it

    P.P.S. with samba2 you may try even to use something like: mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
    mounting from fstab also might be considered
    Last edited by al37919; 26-11-2007 at 17:20.

  8. #23
    thanks for the info.

    I will take a look at that and inform if i succeed.

  9. #24
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336

    mount a shared network folder/drive to your Router

    It is really easy - all you need is a valid samba2 installation.

    1.) Store smbfs.o to directory /opt/modules
    2.) Store script sambi to /opt/sbin
    make script executable with chmode +x /opt/sbin/sambi
    adjust (edit) script sambi to your needs (IP-address and directories)
    3.) Add to your post-boot after mounting your harddisk partition to /opt:

    #include access to any samba share with smbmount
    if [ -e /opt/modules/smbfs.o ]
    then
    insmod /opt/modules/smbfs.o
    fi
    perform the usual
    flashfs save && flashfs commit && flashfs enable && reboot

    Done..
    I use script sambi, because the script toggles in a simple way my smbshare.
    In newer samba versions, smbfs is missing and cifs is used instead, becausesmbfs has a "not maintained status".
    Anyhow, I never experienced probs with smbfs and win, except vista.
    I use it to backup my network smbshare to my nas.

    FOR OLEG VERSIONS =>9 READ http://www.wl500g.info/showpost.php?...6&postcount=33

    THIS SMBFS IS FOR OLD VERSIONS <9
    Have fun....
    Attached Files Attached Files
    Last edited by newbiefan; 02-12-2008 at 21:53.

  10. #25
    Newbiefan,

    again I must thank you for your input !!
    (but not to forget the others )


    Not exactly the way you described, but I managed to get a windows share mounted on the asus router. (just used the command that was stored in the sambi script, my mounting of the harddisk/partitions connected to the asus is a bit different so that was a problem)

    (only thing is, I didn't see the subdirectories in the directories that are in that windows share, but I guess this is a right-problem on my w2k3 r2 server where the share is located.. )

    Anyway.. I managed to get this far, so I think I can manage that.

    Thanks a lot !

  11. #26
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by raas View Post
    Newbiefan,

    again I must thank you for your input !!
    (but not to forget the others )

    Thanks a lot !
    raas, all thanks must go to others, like oleg, gurus & members - I've taken all knowledge from this forum, except scripting.

    Anyhow, glad to hear your system works.

    Edit: BTW, smbmount works with user & password too. Just goggle for syntax.
    So if you have a win-network share, you can use it with password if necessary.
    Last edited by newbiefan; 11-12-2007 at 20:27.

  12. #27
    Hallo,
    I have this problem:

    smbmount //192.168.1.200/share /tmp/landisk -o ro,guest
    Anonymous login successful
    ERROR: smbfs filesystem not supported by the kernel
    Please refer to the smbmnt(8) manual page
    smbmnt failed: 255

    Pleas help me

  13. #28
    Join Date
    Dec 2004
    Location
    the netherlands
    Posts
    155
    do a 'lsmod |grep smbfs' and see if smbfs.o module was loaded correctly. Judging by the error it is not loaded correctly.

    HTH,

    Wiz

  14. #29
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by connic View Post
    Hallo,
    I have this problem:

    smbmount //192.168.1.200/share /tmp/landisk -o ro,guest
    Anonymous login successful
    ERROR: smbfs filesystem not supported by the kernel
    Please refer to the smbmnt(8) manual page
    smbmnt failed: 255

    Pleas help me
    Read again: http://wl500g.info/showpost.php?p=72300&postcount=24
    and do it step by step - if your are not firm to edit your files, ask again.
    You have to insmod smbfs in your post-boot.

    I bet insmod is missing!

    if you have installed according wengis howto, then do a 'lsmod', you must see smbfs.

  15. #30
    I'm experiencing segmentation faults with multiple system commands after mounting a share using smbfs.o.
    As you can see below df works fine until I smbmount a network share, the mounted share seems to work nevertheless.

    Code:
    [admin@ROUTER root]$ insmod /opt/bin/smbfs.o
    
    [admin@ROUTER root]$ lsmod |grep smbfs
    smbfs                  46928   0 (unused)
    
    [admin@ROUTER root]$ df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 3008      3008         0 100% /
    /dev/discs/disc0/part2    988244    198276    739768  21% /tmp/harddisk
    /dev/discs/disc0/part3 152349444  10096224 134514308   7% /tmp/harddisk/part1
    /dev/discs/disc0/part2    988244    198276    739768  21% /opt
    /dev/discs/disc0/part3 152349444  10096224 134514308   7% /mnt
    
    [admin@ROUTER root]$ /opt/bin/smbmount //shift/500Gig /opt/shift/500Gig -o rw,username=backup,password=***
    
    [admin@ROUTER root]$ lsmod |grep smbfs
    smbfs                  46928   1
    
    [admin@ROUTER root]$ df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 3008      3008         0 100% /
    /dev/discs/disc0/part2    988244    198276    739768  21% /tmp/harddisk
    Segmentation fault
    
    [admin@ROUTER root]$ ls -all /opt/shift/500Gig
    drwxr-xr-x    1 admin    root         4096 Apr  1 21:58 .
    drwxr-xr-x    4 admin    root         4096 Apr  1 21:56 ..
    drwxr-xr-x    1 admin    root         4096 Mar 30 22:02 Test
    The mount seems to break other commands as well.
    Tune2fs for instance fails to do a simple -l /dev/discs/disc/part2, immediately exiting with a segmentation fault.

    Does anyone have an idea what I'm doing wrong?
    Here is the relevant exception as found in the systemlog...

    Code:
    Reserved instruction in kernel code in traps.c::do_ri, line 642:
    $0 : 00000000 10009c00 c0171fc8 c01724d0 81ba7f60 8107f520 00000000 00000086
    $8 : 00000077 00000002 00000001 66696873 80793ba4 10010f12 80793ba0 0000000a
    $16: 00000003 801ef8d0 8187c000 81ba7f60 8107f520 8187cfee 00000000 8150e200
    $24: 00000000 2ac111e0                   81dbe000 81dbfe78 81ba7f78 80052474
    Hi : 00000000
    Lo : 000009c0
    epc  : c0171fc8    Not tainted
    Status: 10009c03
    Cause : 00000028
    Process df (pid: 222, stackpage=81dbe000)
    Stack:    00000000 81914820 8107e200 00000000 8187c000 00001000 81ba7f60
     00000000 8107f520 00000060 000000ee 10010f12 00000012 800541f4 2ac61f10
     0050d0d2 00000015 00000000 00000009 00000000 0000000a 00000000 00000100
     8150e1e0 ffffffea 10010f00 7fff7e98 10011000 00000015 00000000 10008d48
     800369f8 00000000 00000000 000000ff 00000000 2ac61f10 00000001 2ac61f10
     2ac5e9f4 ...
    Call Trace:   [<800541f4>] [<800369f8>] [<800085c4>] [<80008730>]
    
    Code: 695f6574  65646f6e  00000000 <73726576> 006e6f69  396e6977  00000035  61646c6f  00727474
    Last edited by Thornz; 01-04-2008 at 23:56.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Mount windows shared dirs in WL500gx
    By samoht in forum WL-500g Q&A
    Replies: 2
    Last Post: 16-01-2008, 00:22
  2. No NFS-Share Access
    By mick666 in forum WL-HDD Q&A
    Replies: 3
    Last Post: 18-07-2005, 12:22
  3. Connect to Windows Share behind WL-500g deluxe
    By Peter Schmidt in forum WL-500g Q&A
    Replies: 12
    Last Post: 01-07-2005, 17:00
  4. blocking windows share?
    By rexster in forum WL-500g Q&A
    Replies: 6
    Last Post: 05-05-2005, 07:18
  5. No share available
    By gerd in forum WL-HDD Q&A
    Replies: 0
    Last Post: 03-02-2005, 10:53

Posting Permissions

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