Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Mac OS X / Gentoo / filesystems (ext2/3)
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
bitnik
n00b
n00b


Joined: 26 Jun 2003
Posts: 9

PostPosted: Tue Jun 22, 2004 11:37 am    Post subject: [solved]Mac OS X / Gentoo / filesystems (ext2/3) Reply with quote

hello, i would like to know if mac os x can read/write to an ext2/3 volume.

in fact, here is the partition map i would like to set up :
- Mac OS X & Classic -> HFS+ ............................. 7,45 Go
- data (users homes) -> ext3 (?) or HFS + ........... 40,97 Go
- gentoo -> ext3 ................................................ 7,45 Go
- swap for Gentoo .............................................. 256/512Mo (which is best ?)
(I guess os X takes the swap on the volume it is installed on)

any comment ?
an idea if Mac OS X (10.2) and Classic can work with the ext3 filesystem ?

this is to be used on an iMac G4/flat screen 15'/60Go/256Mo.

if you need any more precision to answer or if my english is not understandable enough (i'm sorry for that) please answer to this post.


Last edited by bitnik on Sat Jun 26, 2004 5:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Tue Jun 22, 2004 12:53 pm    Post subject: Reply with quote

Yes, MacOSX can read/write ext2/3
Have a look at:

http://sourceforge.net/projects/ext2fsx/

Having a shared OSX/Gentoo home directory will probably cause problems.
And I'm not sure OSX will like a home directory on a non-HFS(+) FS either.

ciao
_________________
http://markferry.net
Back to top
View user's profile Send private message
bitnik
n00b
n00b


Joined: 26 Jun 2003
Posts: 9

PostPosted: Tue Jun 22, 2004 3:33 pm    Post subject: Reply with quote

thanks !
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Tue Jun 22, 2004 6:30 pm    Post subject: Reply with quote

Make your user partition HFS.
Compile linux with HFS support in the kernel and not as a module
Change OSX to mount the partition as /Users, and set Gentoo fstab to mount it as /home. Theoretically it should work.
You also get to use shared among other things:
~/.bashrc
~/.nsmbrc
~/Desktop


Only thing I'm unsure of is uids. I wonder if they'll need to be synced between the Linux and OSX?
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Tue Jun 22, 2004 9:38 pm    Post subject: Reply with quote

bitnik wrote:

in fact, here is the partition map i would like to set up :
- Mac OS X & Classic -> HFS+ ............................. 7,45 Go
- data (users homes) -> ext3 (?) or HFS + ........... 40,97 Go
- gentoo -> ext3 ................................................ 7,45 Go
- swap for Gentoo .............................................. 256/512Mo

hehe, looks almost like mine. as for swap: double the amount of RAM you have, that's the normal rule. /data in my case is ext2 (not sure about ext3 drivers for os-x) but i think you'd use hfs+ and save os-x from using the ext2 package. it's really up to you. on gentoo, use xfs (which you won't be able to mount under os-x!) cause it's faster and gentoo's official fs.

i use the os-x ext2fs quite alot... make sure that your uid/gid are identical for the users on both systems! if not, you'll do alot of sudo'ing.

on second thought, that is wrong... i never use os-x! but IF i do, i use the ext2fs package. otherwise, there are no worries with hfsplus drivers under linux, as long as the ids are the same!

jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
bitnik
n00b
n00b


Joined: 26 Jun 2003
Posts: 9

PostPosted: Wed Jun 23, 2004 12:01 pm    Post subject: Reply with quote

thank you for talking about the uids/gids problem, I hadn't thought of it.

these ids are number, aren't they ?

I have only installed OS X yet (data partition is HFS+), so I must look at the passwd file in /etc/ when I install gentoo and make sure the id is the same for both Linux and OS X users, it that right ?

clément
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Wed Jun 23, 2004 3:11 pm    Post subject: Reply with quote

To find out your uid in OS X:
Code:
 id -u

To assign yourself the same uid in gentoo:
Code:
 useradd -m -G users,wheel,audio -s /bin/bash -u YOUR_OSX_UID YOUR_LOGIN

I have the same login and uid in OS X and gentoo, and so far, it has worked without a hitch.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Wed Jun 23, 2004 3:54 pm    Post subject: Reply with quote

bitnik wrote:
thank you for talking about the uids/gids problem, I hadn't thought of it.

these ids are number, aren't they ?

I have only installed OS X yet (data partition is HFS+), so I must look at the passwd file in /etc/ when I install gentoo and make sure the id is the same for both Linux and OS X users, it that right ?
clément


yep, those are the numbers. usually you have a user id and a group id. you can find out both in os-x/linux by typing
Code:
id
it will also give you the groups that you are also a member of. usually, all users belong to the same group (they should) so in the end you will have several uids and one gid.

write down these numbers. then under linux, create the users group with the same gid as os-x
Code:
/usr/sbin/groupadd -g <os-x-gid> users

when you add users to linux use /usr/sbin/addusr command that pindar gave you above.

enjoy the ride ;-)
jens
_________________
Jens Troeger
http://savage.light-speed.de/
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