View previous topic :: View next topic |
Author |
Message |
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Tue Jan 18, 2005 10:44 pm Post subject: Dual boot, common home partition/directories? |
|
|
I've seen the discussion on shared partitions and that HFS+ is stable in 2.6 kernels. Has anyone set up a dual boot machine in which you have a single home directory on an HFS+ home partition that is shared between Linux and Mac OS X? Any pitfalls besides case insensitive but preserving?
Thanks,
Pypa |
|
Back to top |
|
|
iTux Guru
Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Fri Jan 21, 2005 1:47 am Post subject: Re: Dual boot, common home partition/directories? |
|
|
Just in case you don't already know, if you intend to use Mac-on-Linux (Mol), you will not be able to have them both mounted in Linux and in OS X at the same time.
Note: I read somewhere that it is possible to make a HFS+ case sensitive.
iTux |
|
Back to top |
|
|
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Tue Feb 01, 2005 12:02 am Post subject: |
|
|
Setting up a common home partition went quite smoothly. Briefly, I had set up LInux to use an HFS+ partition as /home. I needed to get that home partition used as /Users on Mac OS X.
Under Mac OS X (10.3) I followed the instructions at www.macosxhints.com for setting up a separate Users (home) partition (ignoring the parts of the instructions for separate Applications and swap partitions).
Then, under Linux I took the following steps.
- I changed my uid and gid under Linux to be the same as those used by Mac OS X. That was quite easy now that Mac OS X (in 10.3) creates accounts with the same uid and primary gid as many Linux distros do. And, I changed the owner and group of all files and directories in my home directory tree.
- Mac OS X does not set up a ~/.bash_profile. So, I modified .bash_profile to make it conditional
Code: | if ( uname | fgrep -q LInux )
then
[[ -f ~/.bashrc]] && . ~/.bashrc
fi
|
Mac OS X does not provide a .bashrc. I decided to set up .bashrc so that it would be shared by both systems and source system-specific sections.
a. I renamed the linux .bashrc to .bashrc-linux
b. .bashrc reads as follows
Code: | # Place things common to both systems above this point
if ( uname | fgrep -q Linux )
then
. ~/.bashrc-linux
else
. ~/.bashrc-osx
fi
|
So far, it works very well. |
|
Back to top |
|
|
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Tue Feb 01, 2005 1:42 am Post subject: |
|
|
OK, I forgot about .xinitrc and running X under OS X. I use Apple's X server.
Under OS X, the X server exits if it is launched and ~/.xinitrc does not do anything (i.e, does not launch an applicatiion). I decided to create a .xinitrc-linux and to have a hard link to it created when I log in to Linux and destroyed when I log out.
.bash_profile now looks like
Code: | if ( uname | fgrep -q Linux )
then
[[ -f ~/.xinitrc ]] || ln ~/.xinitrc-linux ~/.xinitrc
[[ -f ~/.bashrc ]] && . ~/.bashrc
fi
|
I've added a .bash_logout to clean things up.
.bash_logout
Code: | if ( uname | fgrep -q Linux )
then
rm -f ~/.xinitrc
fi |
I wonder what's next. |
|
Back to top |
|
|
pindar Apprentice
Joined: 30 Apr 2004 Posts: 220
|
Posted: Tue Feb 01, 2005 11:07 am Post subject: |
|
|
Glad you could make it work. Just one word of warning: I have double-boot systems both in my office and at home (a G4 and a G5). On both, I use the hfs+-support to access my OS X partitions from gentoo and the ExtFSManager on OS X to access my gentoo-partition (and this saved my butt a couple of times). It works flawlessly - most of the time. But every once in a while, there's an incomprehensible glitch. From gentoo, the OS X partition is read-only, it needs to be unmounted and remounted with a special command so is writeable again. From OS X, the gentoo partition can't be mounted at all; after booting into gentoo and checking it, everything works again. Minor glitches, but if you share your ~, this might lead to major problems. |
|
Back to top |
|
|
Achille n00b
Joined: 04 Jan 2005 Posts: 74
|
Posted: Sat Feb 12, 2005 7:29 pm Post subject: |
|
|
I have tried to share a common hfs+ partition between OSX and Linux. I have discovered a strange bug with Gnome: when I put something in the trash, I can't find it in the trash; the trash remains empty, so that I can't empty it. However, what is moved to the trash can be seen in $HOME/.Trash with Nautilus. Therefore the trash is unuseable.
Does anyone observe the same? |
|
Back to top |
|
|
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Thu Feb 17, 2005 10:02 pm Post subject: |
|
|
I haven't tried gnome. I use just fluxbox.
Sorry,
Pypa |
|
Back to top |
|
|
elpollodiablo Tux's lil' helper
Joined: 20 Mar 2003 Posts: 141
|
Posted: Sat Feb 19, 2005 10:10 am Post subject: |
|
|
Achille wrote: |
Does anyone observe the same? |
I do... looks like trash does not work, but u can access trash from the terminal! |
|
Back to top |
|
|
elpollodiablo Tux's lil' helper
Joined: 20 Mar 2003 Posts: 141
|
Posted: Sat Feb 19, 2005 11:26 am Post subject: |
|
|
Pygoscelis_papua wrote: | Setting up a common home partition went quite smoothly. Briefly, I had set up LInux to use an HFS+ partition as /home. I needed to get that home partition used as /Users on Mac OS X. |
i'm trying to do the same... how do you "sync" user permissions? i bet u should work with gid and uid, but changing those values in osx as i found them in linux "broke" the user i did create...
michele |
|
Back to top |
|
|
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Fri Feb 25, 2005 1:08 pm Post subject: |
|
|
I took the easy way out. I know linux much better than OS X, so I changed my UID and GID under linux to be the same as those under OS X. I knew that would work, and I didn't know what kind of trouble I might stir up on OS X. |
|
Back to top |
|
|
|