New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

HOWTO mount linux filesystem. (Migrating data)


Post Reply New Thread Subscribe

 
Thread Tools
timinak

 
Member Since: Sep 12, 2011
Posts: 76
timinak is on a distinguished road

timinak is offline
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

Software developer since 1987, web programmer since
1996. Linux user since 2000. 2011 mac mini, 8 Gb RAM.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,203
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
timinak

 
Member Since: Sep 12, 2011
Posts: 76
timinak is on a distinguished road

timinak is offline
Quote:
Originally Posted by Dysfunction View Post
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.

Software developer since 1987, web programmer since
1996. Linux user since 2000. 2011 mac mini, 8 Gb RAM.
QUOTE Thanks
timinak

 
Member Since: Sep 12, 2011
Posts: 76
timinak is on a distinguished road

timinak is offline
Quote:
Originally Posted by vansmith View Post
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

Software developer since 1987, web programmer since
1996. Linux user since 2000. 2011 mac mini, 8 Gb RAM.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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...


mikeMBPreferences 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.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,203
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by Dysfunction View Post
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).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
timinak

 
Member Since: Sep 12, 2011
Posts: 76
timinak is on a distinguished road

timinak is offline
Quote:
Originally Posted by vansmith View Post
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).
Bingo! Thanks folks. That's the ticket!

Software developer since 1987, web programmer since
1996. Linux user since 2000. 2011 mac mini, 8 Gb RAM.
QUOTE Thanks

Post Reply New Thread Subscribe


« Cannot log on to a web page | Right click all the time »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Best Linux on Mac? Best Way to Install? markw10 Running Windows (or anything else) on your Mac 9 12-24-2011 12:13 AM
What is your opinion on the future of Linux and the Mac? RickR Schweb's Lounge 17 05-09-2008 06:47 AM
Mount Linux disk via USB dave95070 Running Windows (or anything else) on your Mac 3 09-10-2007 11:38 PM
App to mount Linux filesystems jakeroberts OS X - Apps and Games 2 06-14-2007 08:17 PM
XP, Vista, Ubuntu and then back home Kenotic Switcher Hangout 20 03-02-2007 02:29 AM

All times are GMT -4. The time now is 02:15 AM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?