PDA

View Full Version : Mount problems in FC2


hmathew
26th May 2004, 11:05 PM
When I execute a mount -t smbfs //server/share /mnt/share -o username=xxxx,password=xxxxx, the mount appears to complete, but I get a permission denied on the folder. Also an ls -l against the parent directory shows:

drwxr-xr-x 2 root root 4096 May 19 17:55 home
drwxr-xr-x 2 root root 4096 May 19 17:55 install
?--------- ? ? ? ? ? share

when I attempt a umount, i get this:

umount: /mnt/share: device is busy
umount: /mnt/share: device is busy

Any help would be greatly appreciated.

MH

redhatgeek
27th May 2004, 12:35 AM
did you create a directory /mnt/share?

hmathew
27th May 2004, 03:57 AM

Yes.

The directory was created prior to the mount command.

linuxzouk
28th May 2004, 09:21 AM
did you mount it using root?

hmathew
30th May 2004, 05:02 PM
Yes, I did the mount as root.

I have since confirmed that another instance on RH FC2 suffers from the same problem.

I heard rumors that upgrading mount mighth help, but I have not had a chance to try.

Anyone else had to update mount?

Thanks,

MH

linuxzouk
30th May 2004, 05:07 PM
sorry i can't help cause i don't have that prob with my mount

deuch
30th May 2004, 05:16 PM
try fuser /mnt/share to see what process is using the directory ...

hmathew
4th June 2004, 05:04 AM
fuser will not return anything....

I did find out that i can mount linux shares that are shared via samba.

Weird.

Any other pointers?

Thanks,

MH

ndv
4th June 2004, 05:21 AM
you have to specify which user group will be the owner of the share:

try this:

mount -t smbfs //server/share /mnt/mountpoint -o username=xxx,password=yyy,uid=500,gid=500


where uid ang gid are the identifiers of the users ang roup the sare you wanto to belong.

try also this command

id

in order to discover your preferite user's ID

cheers
nicola

hmathew
4th June 2004, 08:43 AM
darn... still getting the same problem:

drwxr-xr-x 2 root root 4096 May 19 17:55 home
drwxr-xr-x 2 root root 4096 May 19 17:55 install
?--------- ? ? ? ? ? waveset

used:

mount -t smbfs -o username=xxxxx,gid=500,uid=500 //server/share /mnt/share

I tried it with a few different ids...

Thanks,

MH

linuxzouk
4th June 2004, 02:18 PM
have you try mount it into a different folder

say

# mkdir /root/share
# mount //server/share /root/share -t smbfs -o username=xxxx

hmathew
5th June 2004, 10:38 AM
I tried mounting a different folder...

same problem.

Thanks for the input

MH

linuxzouk
5th June 2004, 01:01 PM
how about trying this

http://www.fedorafaq.org/#smbmount

kf6kmx
5th June 2004, 01:52 PM
What OS is the windows share in (2000, XP, Server 2003, etc)?

Originally posted by hmathew
darn... still getting the same problem:

drwxr-xr-x 2 root root 4096 May 19 17:55 home
drwxr-xr-x 2 root root 4096 May 19 17:55 install
?--------- ? ? ? ? ? waveset

used:

mount -t smbfs -o username=xxxxx,gid=500,uid=500 //server/share /mnt/share

I tried it with a few different ids...

Thanks,

MH