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

Unix/Linux Networking Questions Ask your Unix/Linux networking questions here.

Closed Thread
 
Thread Tools Display Modes
Old 07-30-2008, 03:26 PM   #1
clanmills
Super Moderator
 
clanmills's Avatar
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 216
clanmills has a spectacular aura aboutclanmills has a spectacular aura aboutclanmills has a spectacular aura about
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?
clanmills is offline  
Old 07-31-2008, 02:59 PM   #2
AboveTheLogic
Super Moderator
 
AboveTheLogic's Avatar
 
Join Date: Jul 2008
Location: Los Angeles
Posts: 475
AboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of light
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
AboveTheLogic is offline  
Old 08-01-2008, 05:05 PM   #3
clanmills
Super Moderator
 
clanmills's Avatar
 
Join Date: Jul 2008
Location: San Jose, CA
Posts: 216
clanmills has a spectacular aura aboutclanmills has a spectacular aura aboutclanmills has a spectacular aura about
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?
clanmills is offline  
Old 08-03-2008, 03:14 AM   #4
AboveTheLogic
Super Moderator
 
AboveTheLogic's Avatar
 
Join Date: Jul 2008
Location: Los Angeles
Posts: 475
AboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of lightAboveTheLogic is a glorious beacon of light
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...
AboveTheLogic is offline  
Old 11-08-2008, 04:32 AM   #5
Ulruch
Junior Member
 
Join Date: Nov 2008
Posts: 2
Ulruch is on a distinguished road
Default

What a problem to use autofs?

Last edited by Ulruch; 11-08-2008 at 04:51 AM.
Ulruch is offline  
Closed Thread

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 07:00 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