Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Operating System (http://www.mac-forums.com/forums/os-x-operating-system/)
-   -   HOWTO mount linux filesystem. (Migrating data) (http://www.mac-forums.com/forums/os-x-operating-system/253924-howto-mount-linux-filesystem-migrating-data.html)

timinak 10-17-2011 02:39 PM

HOWTO mount linux filesystem. (Migrating data)
 
I've recently migrated to a mac mini. I am unfamiliar with the OS, but am familiar
(somewhat) with *nix command line. I'm not aware that there is a mac tool for
migrating data from linux to mac. If there is, I'd like to know about it.
The alternative, which would work well for me, would be to mount the linux
filesystem and use cp.

I am unsure of the syntax for mounting the linux box. Pointers to documents on
the subject, examples, etc would be appreciated.

thanks
tim

Dysfunction 10-17-2011 02:52 PM

Well.... you can do it from the GUI as such..

Mac OS X: Using the Finder to Mount NFS Exports

otherwise it's an nfs mount. Assuming you have NFS enabled on your linux box.

so probably something like...

mount_nfs -o resvport nfsserver:/nfsshare /nfsmount

of course man is always there at the CLI.

vansmith 10-17-2011 03:00 PM

There are multiple ways to share files from a Linux box (NFS, FTP, SMB, rsync, etc). What distribution are you using and how are you sharing the files?

timinak 10-17-2011 03:32 PM

Quote:

Originally Posted by Dysfunction (Post 1311826)
Well.... you can do it from the GUI as such..

Mac OS X: Using the Finder to Mount NFS Exports

otherwise it's an nfs mount. Assuming you have NFS enabled on your linux box.

so probably something like...

mount_nfs -o resvport nfsserver:/nfsshare /nfsmount

of course man is always there at the CLI.

And yes I can mount with the GUI. Any caveats?
NOTE: A lot of what will be transported will be files used to test and/or deploy
in a CGI environment. The problem I have had in the past is that ownership by
the browser is lost and I have to do a lot of chown'ing to get functionality
back. cp -p et, al. solves that - as a CLI solution.

timinak 10-17-2011 03:33 PM

Quote:

Originally Posted by vansmith (Post 1311836)
There are multiple ways to share files from a Linux box (NFS, FTP, SMB, rsync, etc). What distribution are you using and how are you sharing the files?

I'm using ubuntu 10.04 and sharing is done via cifs and ftp. See my other reply regarding
cp -p
thank you

Dysfunction 10-17-2011 03:49 PM

Once mounted from the GUi, I believe... as memory serves, you can use the CLI to do whatever you want. It should show up as something like...


mikeMBP:Preferences mike$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
//mike@stor1/export on /Volumes/export (smbfs, nodev, nosuid, noowners, mounted by mike)

so then I'd just use /Volumes/export as my path.

vansmith 10-17-2011 04:01 PM

Quote:

Originally Posted by Dysfunction (Post 1311877)
Once mounted from the GUi, I believe... as memory serves, you can use the CLI to do whatever you want. It should show up as something like...

That is correct - volumes mounted through the UI are mounted to /Volumes. You should therefore be able to acces it like any other directory. I'd test it here but Dysfunction has you covered (it also doesn't help that my Linux box isn't plugged in right now).

timinak 10-17-2011 06:06 PM

Quote:

Originally Posted by vansmith (Post 1311890)
That is correct - volumes mounted through the UI are mounted to /Volumes. You should therefore be able to acces it like any other directory. I'd test it here but Dysfunction has you covered (it also doesn't help that my Linux box isn't plugged in right now).

:Cool: Bingo! Thanks folks. That's the ticket!


All times are GMT -4. The time now is 03:09 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.