|
|
2010-01-14
, 04:42
|
|
Posts: 10 |
Thanked: 1 time |
Joined on Jan 2010
|
#71
|
|
|
2010-01-14
, 05:01
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#72
|
well, thanks Qole and Nathan for the samba support. I tried winfs and kernel-module-cifs, and both work. but I hope you guys compile another module or component into it. I can't use the parameter, -o iocharset=utf8 . I usually do this to mount windows filesystem from my desktop linux because I got many different language filenames, like japanese, chinese, russian. It can make the files display correctly so that I will be able handle with these in command line.
|
|
2010-01-14
, 05:03
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#73
|
I would argue that the best way to ensure that is to never keep any "important" (ie "secret") data on your mobile device.
|
|
2010-01-14
, 15:18
|
|
Posts: 692 |
Thanked: 264 times |
Joined on Dec 2009
|
#74
|
|
|
2010-01-14
, 17:50
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#75
|
Hey I've been working on that script, I'm almost finished, do you need root permissions in Fremantle to create a directory in /media or use the mount command? I don't know, I'm still waiting for my N900 to arrive
|
|
2010-01-14
, 19:57
|
|
Posts: 279 |
Thanked: 95 times |
Joined on Sep 2009
|
#76
|
winfs 0.2 now adds the /etc/event.d/cifs script and automatically adds the cifs module upon install. You still have to mount things manually, however, or use a front end that supports mount.cifs.
|
|
2010-01-14
, 20:12
|
|
Posts: 692 |
Thanked: 264 times |
Joined on Dec 2009
|
#77
|
you can either pass arguments to it or run it in "wizard mode" by passing no arguments.#! /bin/sh
#arguments: servername serverip share username password mountpoint
#username, password and mountpoint are optional arguments
args=("$@")
if [ "${args[0]}" == "" ]; then
#Go into "wizard mode" if there are no arguments
echo -e "No arguments passed - running wizard"
echo -e "Enter the server name:"
read servername
echo -e "Enter the server IP"
read serverip
echo -e "Enter the share name or path"
read sharename
echo -e "Enter a username, or leave blank for anonymous"
read username
username_orig=$username
if [ "${username}" != "" ]; then
echo -e "Enter a password"
read password
fi
echo -e "Enter a mount point, or leave blank for automatic"
read mountpoint
fi
#if arguments were passed from the command line, use them:
if [ "${args[0]}" != "" ]; then
servername=${args[0]}
serverip=${args[1]}
sharename=${args[2]}
username=${args[3]}
username_orig=$username
password=${args[4]}
mountpoint=${args[5]}
fi
#set default mountpoint if the user didn't enter one
if [ "${mountpoint}" == "" ]; then
mountpoint="/media/Remote_Filesystems/$servername@$sharename"
#make sure the Remote_Filesystems directory exists
mountparentdir="/media/Remote_Filesystems"
if [ -d $mountparentdir ]; then
echo -e "$mountparentdir found."
else
echo -e "Creating $mountparentdir"
mkdir $mountparentdir
fi
fi
#requote variables to escape special characters
servername=$(printf '%q' "$servername")
serverip=$(printf '%q' "$serverip")
sharename=$(printf '%q' "$sharename")
username=$(printf '%q' "$username")
password=$(printf '%q' "$password")
mountpoint=$(printf '%q' "$mountpoint")
#check for mountpoint and create it if it doesn't exist
if [ -d $mountpoint ]; then
echo -e "Mount point already exists - will attempt to use."
else
echo -e "Creating mountpoint $mountpoint"
mkdir $mountpoint
fi
echo -e "Attempting to mount //$servername/$sharename at $mountpoint"
#Run the mount command
if [ "${username_orig}" != "" ]; then
mount -t cifs //$servername/$sharename $mountpoint -o user=$username pass=$password ip=$serverip
else
mount -t cifs //$servername/$sharename $mountpoint -o ip=$serverip
fi
#chown mountpoint to user
chown -R user $mountpoint
echo -e "To unmount this share, run umount $mountpoint as root"
| The Following 3 Users Say Thank You to GameboyRMH For This Useful Post: | ||
|
|
2010-01-14
, 20:46
|
|
Posts: 279 |
Thanked: 95 times |
Joined on Sep 2009
|
#78
|
|
|
2010-01-14
, 21:26
|
|
Posts: 692 |
Thanked: 264 times |
Joined on Dec 2009
|
#79
|
|
|
2010-01-14
, 21:30
|
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#80
|
i copied it under MyDocs and run "chmod u+x cifsmount." as root
when i run "./cifsmount" i get permission denied error saying permission denied
![]() |
| Tags |
| cifs, ntfs, samba, smb, truecrypt |
| Thread Tools | |
|