Peppermint | Linux OS Community Forum
 
It is currently Tue Mar 31, 2020 11:28 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Unable to mount Windows Network PC drive [Three]
PostPosted: Sun Jul 28, 2013 9:37 am 
Offline

Joined: Thu Jun 06, 2013 10:42 pm
Posts: 2
I have been attempting to mount a network drive from my Win64 (Windows 7) PC, and the closest I could find was this line of code:
Code:
$ sudo mount -t cifs -o "username=<username>,password=<password>" //<PCname/c$ /mnt/WinPC

After using it with my Windows username and password, this was the output.
Code:
mount: wrong fs type, bad option, bad superblock on //PCname/c$,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

So I did.
Code:
$ dmesg | tail

Output:
Code:
[   32.837253] type=1400 audit(1374992058.749:23): apparmor="STATUS" operation="profile_load" name="/usr/bin/evince//sanitized_helper" pid=787 comm="apparmor_parser"
[   32.841389] type=1400 audit(1374992058.753:24): apparmor="STATUS" operation="profile_load" name="/usr/bin/evince-previewer" pid=787 comm="apparmor_parser"
[   32.848865] type=1400 audit(1374992058.761:25): apparmor="STATUS" operation="profile_load" name="/usr/bin/evince-previewer//launchpad_integration" pid=787 comm="apparmor_parser"
[   35.961424] wlan0: authenticate with 38:6b:bb:10:64:f0 (try 1)
[   35.962966] wlan0: authenticated
[   35.964785] wlan0: associate with 38:6b:bb:10:64:f0 (try 1)
[   35.967139] wlan0: RX AssocResp from 38:6b:bb:10:64:f0 (capab=0x411 status=0 aid=4)
[   35.967148] wlan0: associated
[   35.970203] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[24336.985913] CIFS VFS: cifs_mount failed w/return code = -22

The problem is now beyond me. I suppose that last line is terribly critical to my problem.
Thanks in advance.


Top
 Profile  
 
 

 Post subject: Re: Unable to mount Windows Network PC drive [Three]
PostPosted: Sun Jul 28, 2013 3:33 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Try:-

Code:
sudo mount.cifs //PCname/c$ /mnt/WinPC -o user=username,password=password


or you could try your earlier command, but with the ntfs filesystem type

Code:
sudo mount -t ntfs -o "username=<username>,password=<password>" //<PCname/c$ /mnt/WinPC

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Unable to mount Windows Network PC drive [Three]
PostPosted: Sun Jul 28, 2013 8:30 pm 
Offline

Joined: Thu Jun 06, 2013 10:42 pm
Posts: 2
First:
Code:
$ sudo mount.cifs //PC/c$ /mnt/PC -o user=<username>,password=<password>
[sudo] password for <username>:[i]<password>[/i]
sudo: mount.cifs: command not found

No luck, tried second option:
Code:
$ sudo mount -t -o "username=<username>,password=<password>" //Kitchen/c$ /mnt/Kitchen
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .

Much better obviously, but I don't know what option is best for mutually sharing files, or if either or both the -t and -o flags should be omitted, or if multiple flags should/must be added. This is too much to sort through, given my very little experience. One thing is for certain; the drive isn't mounted yet.


Top
 Profile  
 
 Post subject: Re: Unable to mount Windows Network PC drive [Three]
PostPosted: Sun Jul 28, 2013 9:22 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Install cifs-utils by running:
Code:
sudo apt-get install cifs-utils

then try the first one again.

And in the second one you missed out the filesystem type "ntfs" after the "-t" option.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL