-   Linux - Newbie (
-   -   Dir fails to mount (

mvmannheim 11-20-2010 02:38 AM

Dir fails to mount
Hi - I'm attempting to mount a Windows dir to a mount point on my Linux VMWare instance running on my Windows 7 machine.

I am using a shell file to automatically mount the directory I want at bootup. However, I'm finding that Linux always mounts to a directory at the top of my C: file structure for some reason, and I can't figure out why.

Here's the dir structure:

C:/target (don't want to mount this, but this is what gets mounted)
C:/Users/me/target (this is what I want to mount to)

Here's my shell script:

mount.cifs // /mnt/target -o credentials=/root/credentials.auth,domain=mycomputer,uid=1001,gid=1001,rw
And here's what I get when I enter mount at the prompt:


/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

If this means anything my Virtual Machine has a single hard drive SCSI, which I believe is /dev/sda1. I don't see anything from mount that would indicate that the c:/target dir is getting hard-mounted somehow from the /etc/vfstab file, but maybe I just don't understand how mounting works...

bigrigdriver 11-20-2010 03:19 AM


mount.cifs // /mnt/target
That seems to answer your question "why" it's mounting that way. Try changing that to

mount.cifs // /mnt/Users/me/target

mvmannheim 11-21-2010 08:12 PM

Unable to mount /Users/me/target
When I try


mount.cifs // /mnt/Users/me/target
It responds with "Cannot change mount target to /mnt/Users/me/target"

I haven't created a directory called /Users/me/target in the virtual machine directory structure...could that be it or is there something else I should do?

All times are GMT -5. The time now is 07:46 PM.