|
|||||||
| Notices |
| Unix/Linux Networking Questions Ask your Unix/Linux networking questions here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Super Moderator
|
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? |
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jul 2008
Location: Los Angeles
Posts: 475
![]() ![]() ![]() ![]() ![]() |
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 |
|
|
|
|
#3 |
|
Super Moderator
|
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 (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> 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? |
|
|
|
|
#4 |
|
Super Moderator
Join Date: Jul 2008
Location: Los Angeles
Posts: 475
![]() ![]() ![]() ![]() ![]() |
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... |
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2008
Posts: 2
![]() |
What a problem to use autofs?
Last edited by Ulruch; 11-08-2008 at 04:51 AM. |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|