Sponsored Content
Full Discussion: Mount a volume
Top Forums Shell Programming and Scripting Mount a volume Post 302913152 by protocomm on Thursday 14th of August 2014 05:36:11 AM
Old 08-14-2014
Mount a volume

Hi,

I dig up an old topic because I don't find the solution with shell but with applescript

Code:
mount volume "smb://MyIP/itransfert/Public/1-Arrivees" as user name "MyIP\\itransfert_cs" with password "MyPassword"

Otherwise I would want to know the reason it doesn't work with bash:
I have a problem with the command mount with a password with special character

Code:
mount -t smbfs '//itransfert_cs:password@IP/itransfert/1-Arrivees/Vers_K2' /share

the password contain a * and a @

I try to quote but doesn't work, replace the @ with %40 and try to escape with \ but doesn't work…
I don't understand…
I'm working with apple bash

Last edited by rbatte1; 08-14-2014 at 07:28 AM.. Reason: Adding ICODE tags, capital letters and others
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

After changing permissions, volume wont mount

Ok. Here it is. I limited access to my external hard disk's partition/volume on Mac os X simply by changing permissions in Get Info window. But now the hard disk icon has disappeard and wont mount. Have tried different kind of soft to mount, but no luck. Then there is the utility called Terminal,... (0 Replies)
Discussion started by: meelismalgand
0 Replies

2. Red Hat

how to mount SAN volume with its increased size

Hi, We have 200GB SAN volume mounted on Redhat EL 5. which is working fine. As my SAN supports dynamic resizing of volumes, i unmounted the volume and resized the SAN Volume to 300 GB successfully. Then i mounted again but it shows 200GB only but data is intact. Now, my requirement is to let... (3 Replies)
Discussion started by: prvnrk
3 Replies

3. OS X (Apple)

howto mount mac volume on suse 11

as the title states, i cant mount suse of apple volumes on either box. have tryed afpfs-ng but no love. anyone have a suggestion than samba (because i dislike MS) and NFS because i don't know jack about it..... yet thanks in advance julz (4 Replies)
Discussion started by: biorhythm
4 Replies

4. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

5. Ubuntu

cannot mount volume

Hi I have recently install ubuntu on my laptop. I have tried to access my external drive wich is NTFS format but i get the following error: ´Cannot mount volume´ Can someone help me please?? (2 Replies)
Discussion started by: DDoS
2 Replies

6. Solaris

Mount A ZFS volume

Is there any way i can mount a zfs volume using snapshot or some other means ? (2 Replies)
Discussion started by: fugitive
2 Replies

7. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

8. OS X (Apple)

Mount my volume on remote machine

I have the need to Mount one of my volumes (All machines are mac) onto all of the machines in the lab from time to time. At the moment I'm using SSH to tunnel into each machine and then send a command to the remote machine to mount my volume using AFP. This seems convoluted to me. Is there a... (3 Replies)
Discussion started by: TheDrizzle
3 Replies

9. Solaris

In Solaries 10 how to mount multiple volume on same mounted point

Hi , I am completely stuck and not getting any clue to come out this . So looking for help Q : I have salaries 10 in server with that Dell Equallogic storage connected. in dell Equlalogic in i have 70 TB storage . I created 7 volumes 10 TB each . In Solaries 10 i have syslog server i... (1 Reply)
Discussion started by: Roahn Tiwari
1 Replies

10. AIX

"Please mount volume 2 on /dev/rmt0.1" message during mksysb restore

Dear all First of all, my English not so good. We have p52a (production server) and p52a (test server). Tape drives are VXA2. When both servers were AIX 5.3, mksysb on production server and restoring to test server was OK. The production server was AIX 5.3 and recently upgraded to... (3 Replies)
Discussion started by: fifa15pc
3 Replies
MOUNT_AFP(8)						    BSD System Manager's Manual 					      MOUNT_AFP(8)

NAME
mount_afp -- mount an afp (AppleShare) filesystem SYNOPSIS
mount_afp [-i] [-s] [-k] [-o options] afp_url node DESCRIPTION
The mount_afp command mounts the AFP volume denoted by the afp_url afp://[user[;AUTH=uamname][:password]@]host[:port]/volumename at the mount point indicated by node. This command is normally executed by mount(8) when the -t afp option is used. If the -i option is not used, all the required information to establish a login to the remote server must be available in the afp URL, including username & password if needed. The arguments and options are: -i Interactive mode, you are prompted for the password if you did not supply one in the url. -s Soft mount (default). Network errors, e.g. timeouts, will be retried for a much shorter amount of time. If the network errors per- sist, then the mount will be force unmounted. -k Hard mount. Network errors, e.g. timeouts, will be retried for an extended amount of time. If the network errors persist, then the mount will be force unmounted. -o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. Additional options supported by the AFP Client are as follows: nobrowse Indicate to the Carbon subsystem that this volume is not to be displayed to the user. automounted Set flags on the mountpoint to indicate that the volume has been mounted by the automounter. afp_url There are two forms of afp URL, one for TCP/IP and one for AppleTalk: afp://[user[;AUTH=uamname][:password]@]host[:port]/volume afp:/at/[user[;AUTH=uamname][:password]@]servername[:zonename]/volume Denotes the afp server and sharepoint to mount. It may also contain the username & password required to log into the server. uamname is the protocol name of the authentication method. If port is not specified, then port 548 is used. node Path to mount point, which must be a directory that the user has write permissions for. EXAMPLES
The following example illustrates how to mount the afp volume server.company.com/volumename/ at the mount point /Volumes/mntpnt: mkdir /Volumes/mntpnt mount_afp afp://username:userpass@server.company.com/volumename/ /Volumes/mntpnt This example shows the proper url to use to mount the volume guestVolume from the afp server myserver as guest (if no uam and no username, then use guest uam): mkdir /Volumes/guest mount_afp "afp://myserver/guestVolume" /Volumes/guest This example shows the proper url to use to mount the volume myVolume from the afp server myserver using Kerberos authentication: mkdir /Volumes/myVolume mount_afp "afp://;AUTH=Client%20Krb%20v2@myserver/myVolume" /Volumes/myVolume SEE ALSO
mount(2), unmount(2), mount(8) HISTORY
The mount_afp command first appeared Mac OS X version 10.0. Kerberos authentication was added in Mac OS X version 10.2 RETURN VALUES
0 mount_afp successfully mounted the volume directory. [ENODEV (19)] The server volume could not be mounted by mount_afp because the server was not found or because the sharepoint does not exist, or because node does not have proper access. [EACCES (13)] The volume could not be mounted by mount_afp because the user did not provide proper authentication credentials. [ENOTDIR (20)] The volume could not be mounted by mount_afp because the mountpoint was not a directory. Mac OS X May 8, 2002 Mac OS X
All times are GMT -4. The time now is 06:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy