Author Topic: An Easy Way To Mount Samba Shares?  (Read 3417 times)

icruise

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
An Easy Way To Mount Samba Shares?
« on: August 15, 2005, 04:29:26 am »
I'm a linux newbie, but I'm able to mount my windows machine's shared folder in the terminal with smbmount //computername/SharedDocs /mnt/smb.

But I'd like a quick and easy way to mount and unmount this. Smbmounter looked like it would be the answer, but it doesn't seem to work. The folders computername/SharedDocs/ will appear in the NetworkedFolders folder, but there is nothing inside. Yes, I have given the program root priveleges. Any ideas as to what is wrong? What other ways are there to mount these servers, aside from typing directly in the terminal?

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
An Easy Way To Mount Samba Shares?
« Reply #1 on: August 15, 2005, 02:49:11 pm »
i have been working on opie-smb lately, which does what you want. Can't say when it will make it's way into the distribution, though.

I might make a special ipk for qtopia/sharp roms
« Last Edit: August 15, 2005, 02:53:40 pm by lpotter »
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
An Easy Way To Mount Samba Shares?
« Reply #2 on: August 20, 2005, 11:08:35 am »
Quote
I might make a special ipk for qtopia/sharp roms
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91919\"][{POST_SNAPBACK}][/a][/div]

Hey this would be great  if you would make a special ipk for us throw-back still using the sharp rom.

Thank you in advance,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
An Easy Way To Mount Samba Shares?
« Reply #3 on: August 20, 2005, 11:33:44 am »
I created scripts that mount or unmount SMB shares (one for each PC or Zaurus).  In this case, I'm mounting my SL5600's share ("zephyrus" is its machine name in my /etc/hosts file).  I check the /mnt/smb directory, if it's empty, then I do a mount, if not, then I un-mount it.

The script uses the OPIE-SH package to display a dialog box telling you what it did.  

Any messages generated are sent to a log file that can be checked later.

I also use the "sudo" package to run the mount.

I then created an icon and added it to my SL6000 desktop so I can tap it to run it.

Code: [Select]
#--------------------------------
# Mount the Zephyrus over wiFi
# 2004-12-18 -  r.l. stoner
#--------------------------------

(
checkit=`ls /mnt/smb/ | wc -l`
#echo $checkit
if [ $checkit -ne 0 ]
   then
   echo "UnMounting Zephyrus home ..."
   sudo umount /mnt/smb
   /home/QtPalmtop/bin/opie-sh -m -w -t "Zephyrus Toggled" -M "Zephyrus/home un-mounted." -g
   exit 0
else
   echo "Mounting... Zephyrus"
   sudo smbmount //zephyrus/home /mnt/smb -o username=rick,password=xxx
   /home/QtPalmtop/bin/opie-sh -m -I -t "Zephyrus Toggled" -M "Zephyrus/home Mounted." -g
   exit 0
fi
) > /tmp/domntzeph.log

#--- end of script ---#
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]