You are not logged in.

#1 2011-02-12 13:27:42

tarun.hellknight
Member
From: India
Registered: 2010-11-30
Posts: 65
Website

[Solved] Sharing a partition between two distributions

Hey guys.. I have currently two distros installed, Arch & Fedora.. Here's the partitioning scheme :-

/dev/sda7 - ext2 - /boot
/dev/sda8 - ext4 - swap
/dev/sdb9 - ext4 - Arch Linux
/dev/sdb1 - ext4 - Fedora 14
/dev/sdb2 - ext4 - Multimedia

The swap partition is currently being shared between the two. Rest all the partitions are NTFS.
Now, I've added an entry of of Multimedia to fstab in the following manner :-

/dev/sdb2  /media/Multimedia  ext4  defaults  0 1

The partition gets mounted, but whenever I try to access the contents from Nautilus, it says that you're not authorized.. I've the same username (hellknight) in Arch & Fedora..

In Arch, I did

sudo chown -Rf hellknight /media/Multimedia/XBMC

(I intend to access only the XBMC directory)

Last edited by tarun.hellknight (2011-02-13 08:00:49)

Offline

#2 2011-02-12 14:11:45

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [Solved] Sharing a partition between two distributions

Same username doesn't matter, check what your UID is on both distros.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-02-12 14:27:14

metzengerstein
Member
Registered: 2010-06-04
Posts: 60

Re: [Solved] Sharing a partition between two distributions

Yes. Only the user AND group ids are relevant here.
Note that you must reassign the permissions of your files after changing your uid/gid.

Offline

#4 2011-02-12 14:45:36

tarun.hellknight
Member
From: India
Registered: 2010-11-30
Posts: 65
Website

Re: [Solved] Sharing a partition between two distributions

Ok.. Changing the UID will have any negative aspects on my user account?

Offline

#5 2011-02-12 14:50:07

tarun.hellknight
Member
From: India
Registered: 2010-11-30
Posts: 65
Website

Re: [Solved] Sharing a partition between two distributions

Here's the output of id hellknight command

uid=1000(hellknight) gid=1000(hellknight) groups=1000(hellknight),10(wheel),91(video),92(audio),93(optical),95(storage),98(power),100(users),108(vboxusers)

This is on Arch.. Now, what should I do to change the UID in Fedora? Change the /etc/shadow file?

Offline

#6 2011-02-12 15:36:24

metzengerstein
Member
Registered: 2010-06-04
Posts: 60

Re: [Solved] Sharing a partition between two distributions

No. If your desired fedora user doesn't have the corresponding uid 1000 and gid 1000 you have to change it, and afterwards also change the ownership of his files (e.g. the whole /home). Look for the commands "usermod" and "chown".

Offline

#7 2011-02-12 16:41:57

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: [Solved] Sharing a partition between two distributions

Alternativeley you could create a "share" group on both distros with same GID, add them to the users on both, and change group permissions on Multimedia

Last edited by wudu (2011-02-12 16:42:14)

Offline

#8 2011-02-13 06:37:45

tarun.hellknight
Member
From: India
Registered: 2010-11-30
Posts: 65
Website

Re: [Solved] Sharing a partition between two distributions

Solved it!! The UID was different on both distros.. Also, I created a group name multimedia on both distros with the GID of 5001 & added hellknight to it

 usermod -u 1000 hellknight

This did the trick.. Thanks everyone..

Offline

Board footer

Powered by FluxBB