What Is My IP Address? - IP Address Lookup, Bandwidth Speed Test, IP Info, plus more

Go Back   What Is My IP Forum > IP and Network Questions > Unix/Linux Networking Questions

Notices


Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2008, 04:26 PM
clanmills's Avatar
clanmills clanmills is offline
Super Moderator
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 188
Send a message via MSN to clanmills Send a message via Skype™ to clanmills
Default How do I mount Mac and Windows drives from Ubuntu for use by commandline programs

Anybody like to talk about this? I can mount network drives from Mac and Windows shares using the GUI. So the network is working fine.

However, I'd like to work on the network files from the command line. How do I
1) mount the network drives
2) where do the files appear in the file system
3) how can I use the automounter

Anybody?
Reply With Quote
  #2  
Old 07-31-2008, 03:59 PM
AboveTheLogic's Avatar
AboveTheLogic AboveTheLogic is offline
Super Moderator
 
Join Date: Jul 2008
Location: Los Angeles
Posts: 349
Default

the network drives can be mounted and unmounted using the mount and umount commands, respectively

each time it is mounted, you have to enter the password in plain text, unless you have it stored in the fstab file

in some distributions, there is a /mnt directory, it is good practice to create subdirectories here to "mount" to. unlike windows, linux mounts to a directory.

here are some helpful links:

http://en.wikipedia.org/wiki/Mount_(Unix)

http://en.wikipedia.org/wiki/Fstab
Reply With Quote
  #3  
Old 08-01-2008, 06:05 PM
clanmills's Avatar
clanmills clanmills is offline
Super Moderator
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 188
Send a message via MSN to clanmills Send a message via Skype™ to clanmills
Default

Hi Above (gosh, that sounds a little unworldly)

Very helpful. Thanks. I've been able to mount my Mac's HD with:
Code:
sudo mount -t cifs //striders/iMacHD -o 'user=rmills,password=secret,rw' /mnt/Y
... and as you said, the mount point is /mnt/Y

(the machine's called striders and its main disk is iMacHD)

I've also discovered that you can inspect an smb (samba) server with:
Code:
128 /mnt/Y> smbclient -L striders
Password: 
Domain=[STRIDERS] OS=[Unix] Server=[Samba 3.0.25b-apple]

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       IPC Service (iMac)
	EPSON Stylus Photo R200 Printer   iMac
	rmills          Disk      User Home Directories
	iMacHD          Disk      iMacHD
	clanmills       Disk      clanmills
	alison mills's public folder Disk      Alison Mills's Public Folder
	users           Disk      Users
Domain=[STRIDERS] OS=[Unix] Server=[Samba 3.0.25b-apple]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	WORKGROUP            STRIDERS
129 /mnt/Y>
Right. I'll do a bit more work and figure out the mystery of the fstab.

It's kind of curious that when I mount the drive with the Ubuntu GUI, it shows the following properties:


Thinking out loud:
1) Why does it say location smb:.... when the mount wants cifs?
2) I wonder why it doesn't get mounted to a 'visible' location in the fs by the GUI
3) I wonder why it doesn't show up with df as a file system when it's mounted by the GUI?

Ah... it's those mysteries that keep us in jobs, right guys?
Reply With Quote
  #4  
Old 08-03-2008, 04:14 AM
AboveTheLogic's Avatar
AboveTheLogic AboveTheLogic is offline
Super Moderator
 
Join Date: Jul 2008
Location: Los Angeles
Posts: 349
Default

it looks like when you are mounting with ubuntu gui, you are creating a shortcut that either KDE or gnome is recognizing, and it will take you there using that "smb" command

the advantage of doing it that way is that it's easier, and you usually have a shortcut right on your desktop or in one of those menus on the top

the disadvantage is when working with a command line interface, I don't think you can see the shortcut... and in this case it's much easier to mount (using CIFS) to a /mnt/X directory

hope that makes sense...
Reply With Quote
  #5  
Old 11-08-2008, 05:32 AM
Ulruch Ulruch is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Default

What a problem to use autofs?

Last edited by Ulruch; 11-08-2008 at 05:51 AM..
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:31 PM.


What Is My IP - IP Command Lines - What is an IP Address - Speed Test - IP Address FAQ

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com