LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-20-2010, 02:38 AM   #1
mvmannheim
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 1
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:
Code:
mount.cifs //192.168.56.1/Users/me/target /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:

Code:
/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...
 
Old 11-20-2010, 03:19 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,765

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Code:
mount.cifs //192.168.56.1/Users/me/target /mnt/target
That seems to answer your question "why" it's mounting that way. Try changing that to
Code:
mount.cifs //192.168.56.1/Users/me/target /mnt/Users/me/target
 
Old 11-21-2010, 08:12 PM   #3
mvmannheim
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Unable to mount /Users/me/target

When I try

Code:
mount.cifs //192.168.56.1/Users/me/target /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?
 
  


Reply

Tags
mount, mountcifs, vmware, windows7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/home dir. wont mount after system crash. I have to run fsck to mount it again. why? druonysus Linux - Desktop 9 08-19-2010 05:27 AM
Post processing application fails to build in OpenSolaris... dir.h issue Alexvader Solaris / OpenSolaris 3 07-14-2010 10:32 AM
Install Fails (NFS/Mounted Dir) mlsrar Slackware - Installation 2 08-07-2009 01:21 PM
broadcom nic driver installation fails-no such file and dir pgb205 Red Hat 2 07-20-2009 09:56 AM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration