![]() |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
This is FYI only
If you try mount share in windows domain and use following syntax: mount -t cifs //<server>/<path> /<your>/<local>/<path> -o user=<domain>/<user>,pass=<pass>,ip=<ip of server>,direct You get message: "Mounting the DFS root for domain not implemented yet" This is without troubles: mount.cifs //<server>/<path> /<your>/<local>/<path> -ouser=<domain>/<user>,pass=<pass>,ip=<ip of server>,direct BTW tx Nathan |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Did anyone solve the printf %q problems??
|
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
I have also just tried the script with the printf's commented out, copied to my /home/user as a file called cifsmount.sh
I tried to run it, but got an error to do with permissions, so ran the command: chmod u+x cifsmount.sh, this appears to run ok Now when i try to run the script, i get cifsmount.sh: not found. i have tried it with the variations of ./ or /home/user beofre running it Any suggestions?? |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
you probably already know this but my suggestions are
1) watch out, things are case sensetive so make sure you used cifsmount.sh and not Cifsmount.sh 2) to execute any script you must give the path of the script. find the script first. do ls in the directory you're in to see the actual name of the script and to make sure it's there. ./cifsmount.sh should work since the "." means current directory . 3) my final sugesstion is probably the more likely one since you seem to have found the script already but didn't have the privilages to run it. to me it sounds like you perhaps edited the script and added cifsmount.sh in it. did you? |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Ok, I am pretty certain that I had already checked those areas. So a full step-by-step of what I am doing.
On my Windows 7 (sorry for not being linux) laptop, I created a file in notepad (basically copied and pasted the previously quoted script), and then commented out the printf lines with a #, and added ,direct to the end of each of the mount lines. Saved this file in ANSI format as cifsmount.sh (definately no .txt at the end), plugged in the USB cable, selected Mass Storage Mode and copied the file to the root of the N900. On the N900: 1. Take out USB Cable 2. Open xTerminal c. Type the following: Code:
~ $ sudo gainrootCode:
/home/user/MyDocs # cd ../bin/sh: ./cifsmount.sh: not found I also tried the command with the full path of /home/user/cifsmount.sh, exactly the same error showing (obviously giving a different path for cifsmount.sh) |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Sounds like some of you are using older versions of the script. The printf %q issue has been solved. Here is the final, working version again:
Code:
#!/bin/sh |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
I have tried this to, and get exactly the same error, I guess I am doing something very wrong, but have no idea what |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
I don't know which script you used but please try this and tell me what you get.
cat cifsmount.sh | grep cifsmount.sh try creating the script on the N900 itself perhaps. |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
3 Attachment(s)
Quote:
I'm not sure what the above command should do, but I have tried a couple of things, typing it all in one go just appears to do nothing, just gives me the # prompt to enter a new command. However, if I enter the cat command, i get the contents of the file shown. If I do the grep one on its own, i get a blank line to type on (not sure what it does. Added some images to try and show the results |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Surely it doesn't matter where I created the file if the result is teling me it isn't found......even when it is showing up in the directory????
|
| All times are GMT. The time now is 11:43. |
vBulletin® Version 3.8.8