Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sharing /home and /Users between Linux and OS X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Mon Feb 27, 2006 10:04 pm    Post subject: Sharing /home and /Users between Linux and OS X Reply with quote

I need a bit of advice on sharing a data partition between Linux and OS X, using the partition as /home for Linux and /Users for OS X.

I haven't found out any technical reason for it not being possible, but I haven't found any info on anyone else doing the same thing either, which seems odd. I could use Ext2/3 or HFS+ for the file system, but I believe there's no OS X 10.4 (Tiger) driver for Ext2/3 which is a bit limiting. Any other file systems worth considering? I've also read some comments about partition corruption on Linux when writing large files on HFS+ which concerns me. Will I get any conflicts with config files in the home folders of the two OS's?

If anyone out there has this set up or similar I'd appreciate your experiences or any tips. I may try it out anyway, unless someone tells me I'm wasting my time.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 28, 2006 9:56 am    Post subject: Reply with quote

I guess it's doable. The main thing you have to make sure is that the user number are the same for
both OSes. For example, if I remember well I am user 501 on OSX (of course you usually don't see
the number but the user name which is an alias for it). I had to set up my user on linux to be the same.
By default on gentoo user number under 1000 are considered system so you have to tweak that a little.

The other main point is that by default OSX doesn't put /Users on a separate partitions. It is probably
doable and it would make your task easier.
I personally just mount my whole OSX partition under linux and I have a link to my OSX user directory
in my home folder. I don't automatically mount the partition under linux and I make sure to unmount
it before shutting down. Otherwise I sometimes have issues with the partition being "dirty" and mounted
only read only. Rebooting in OSX usually solve the problem. There is another procedure to deal with the
dirty partition under linux somewhere in this forum.
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Tue Feb 28, 2006 3:52 pm    Post subject: Reply with quote

The ext2 os x driver has been updated to work with Tiger. (Currently Read only though, I believe.) Check sourceforge.
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Wed Mar 01, 2006 1:26 am    Post subject: Reply with quote

It is most certainly doable. I have such a HFS+ partition which is shared between Mac OSX Tiger and linux. However, I do mount another partition on /home under linux because it is not always easy or desired to share the config files in one's home directory. In my case, that partition is the /Users partition in osx, but since I run linux 99% of the time, I use it to store music. And that way, I also have access to my music files on osx.
Some remarks if you're going to do this:
  • Format the partition in OSX and make sure it's not journalled. The linux driver does not support the journal. Linux also does not have a tool to check the partition and will mount it read-only when it needs to be checked, but under normal circumstances, reading and writing works just fine.
  • It's better to have a separate partition for /Users. It is possible to do this on OSX, and you can find information about how to do this with Google. I don't know whether it's still recommended, but I created an "/etc/fstab" file with the following contents:
    Code:
    LABEL=Users /Users hfs rw 1 2

    (before rebooting, move the /Users to /Users.old, so you can copy the contents to the 'new' /Users after a reboot)
  • Once you have that working, you can make the accounts you want, and then you need to run NetInfo Manager (if I remember the name right), where you can adapt the user ids of the accounts and the corresponding groups. Then just change those ids to the ids you use on linux (as can be seen in /etc/passwd).
  • You finally need to do a "chown" to change the owner of the files in /Users to the correct owner.

Anyways... you will certainly find more information about the "/Users on a separate partition" with Google. I personally don't have any problem with it, but I did find the sharing of config files a bit annoying. For example, if you use Emacs both on linux and on osx, then you'll need to make sure that the ".emacs"-file is correct for both platforms. The same for ".bashrc"... if you for example use "keychain", it will probably be installed in a different location on osx than on linux. Or for example, I use "psi", a Jabber client, who on both linux and osx stores its config files in ".psi", but the config files are not compatible between osx and linux... It is probably possible to get that all to work with a little bit of effort, but like I said, I use linux almost exclusively, so to me it'd be more bother without any benefit.

Edit: and regarding the config files.. another thing is that most graphical applications on osx do not use ".blabla" config files, but put those in a special directory in your home-dir (can't remember the exact name right now), an example of this is firefox... so this means that even if you would run firefox on both osx and linux, they wouldn't share the same config or the same bookmarks file.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Thu Aug 03, 2006 1:23 pm    Post subject: MacOS / Gentoo shared workfolder Reply with quote

Hello there,
I am about to install Gentoo with a MacOS Tiger on the same hdd. I would like to have any recommendation how to share the workfolder (call it Home) between the two OSs - if there is a smooth solution.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Thu Aug 03, 2006 1:25 pm    Post subject: Reply with quote

when adding user u can specify the home dir with -d simply point your new user to your mac os home dir and it should be fine.

See useradd manpage for more info =)
_________________
From Gentoo with love
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Aug 03, 2006 2:04 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.
Create a partition with a filesystem that both osx and linux can read. hfs or hfs+ (or maybe fat32) should do
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Aug 03, 2006 5:18 pm    Post subject: Reply with quote

Read my post in the following thread: https://forums.gentoo.org/viewtopic-t-438320.html
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Aug 04, 2006 4:52 pm    Post subject: Reply with quote

ruben wrote:
Read my post in the following thread: https://forums.gentoo.org/viewtopic-t-438320.html

Great. Thanks ruben. I've merged the above posts in the the thread you linked to (now this thread :) )
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum