LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   smbfs-mount //server/c$ (https://www.linuxquestions.org/questions/linux-networking-3/smbfs-mount-server-c%24-301415/)

Mauline 03-14-2005 07:24 AM

smbfs-mount //server/c$
 
Hello,

can somebody tell me how to mount a share like "//server/c$" - the problem is that the mount-command doesn't interpret the $-sign and it's not possible to change the name of the share ...

Please help!

TIA
Mauli
:scratch:

Darin 03-14-2005 08:49 AM

Have you tried to escape the dollar sign like this:
Code:

mount -t smbfs //server/c\$
If that doesn't work, post the exact command you are attempting to use (feel free to change any usernames or passwords used to something ambiguous) along with any setup you did and any error messages returned.

idefinehell 03-14-2005 10:16 AM

There r many ways to mount a windows file system

I)
mount -t smbfs -o username=Admin //ip_of_the_remote_pc/c$ /mnt/win

II)
service lisa start

and in konqueror type

lan:/ip_of_the_remote_pc

this will list all the services running on the remote machine

note that it's a single slash

Hope this helps :-)

post u r result

anindyanuri 03-14-2005 10:41 AM

Re: smbfs-mount //server/c$
 
Quote:

Originally posted by Mauline

can somebody tell me how to mount a share like "//server/c$" - the problem is that the mount-command doesn't interpret the $-sign and it's not possible to change the name of the share ...

:scratch:

You may try this way.

1. Create the mount point
Code:

% mkdir /c
% chmod a+rw /c

2. Mount the drive manually to make sure it works.
Code:

% mount /dev/hda1 /c -t vfat
3. If that worked, you can make it easier or automatic to mount by adding the following line to /etc/fstab:
Code:

/dev/hda1 /c vfat noauto,user 0 2
4. With step 3 completed, you can now use the following command to mount the Win98 partition (this is how my machine is set up):
Code:

%mount /c
5. If you want to have /c mounted automatically at boot time, change the "noauto" in step 3 to "auto".

I have obtained the above from others. I am giving you the same as it is working fine for me and tested with several friends of mine. You may try it.
Regards

Mauline 03-14-2005 12:03 PM

Hi folks,

thanks for your replies!

I'm using a rather tricky configuration (automounter mounts samba-shares which are accessible over samba then)...

What comes out in the end is something like

smbmount //server/c$ /mountpoint -o rw,username=xy,password=xy,gid=xy, uid=xy

I tried //server/c\$ - but smbmount still want's to mount just //server/c and also a mount like

mount -t smbfs -o username=xy //server/c$ /mountpoint doesn't work...

I'm confused now (so confused that I alsor tried weird things like "//.../") (o:




:rolleyes:

cowanrl 03-14-2005 06:57 PM

What version of Samba are you using? I'm using Samba 3.0.11 on RH9 and it works on mine. I execute:

smbmount //server/c$ /mountpoint -o username=xxxx,password=xxxx

and I have access to the entire C drive on the Windows machine.


All times are GMT -5. The time now is 09:32 AM.