LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-17-2009, 10:24 PM   #1
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 44
I need to share files between Debian and Slackware on the same hard drive


I installed a new hard drive and gave it four partitions. Two 50 gig partitions for Debian and Slackware 1 gig as a swap and the rest for storing my pictures, music and other stuff. I'm thinking it would not be wise to use this as a Home directory due to the differences between Slackware and Debian but still need a good way to share files. I could use NFS or Samba but that seems like over kill to me. Mounting the partition is easy enough but the problem I see is with permissions Debian sets my user at 1000 and Slackware sets it at 500. So if i download a file in Slackware Debian may not let me use it.

I'm not sure of the best way to share files between the two systems. I've googled searched this site and haven't come with any good ideas. Any advise would be greatly appreciated.


Thanks
 
Old 04-17-2009, 11:06 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
You could change your Debian user id to 500 or your Slackware to 1000. You could create a group in both Debian and Slackware with the same uid and gid and yourself to that group.
 
Old 04-17-2009, 11:50 PM   #3
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by weibullguy View Post
You could change your Debian user id to 500 or your Slackware to 1000.
I thought about that just not sure how that would mess with the system.

Quote:
You could create a group in both Debian and Slackware with the same uid and gid and yourself to that group.
I like this idea better but just not sure how to go about it. Then when you download a file will it take the same uid and gid as that group or the one I downloaded it with.
 
Old 04-18-2009, 12:31 AM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
Disclamer: I have not setup two distros on the same hdd.
However, I read in the past that two distros can share the same home directory as long as you use a different user name for both.

One problem I see is that you have to make sure you do not try to run the binaries from the distro you are not currently booted from. You probably do not want to mount on boot the partition that the other distro is on.

If sharing the home directory does not work, you could always have another partition shared by both distros. For example you could possibly share a directory that has only jpeg files. You might have permission issues with the shared files. I
 
Old 04-18-2009, 12:34 PM   #5
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by okos View Post

If sharing the home directory does not work, you could always have another partition shared by both distros. For example you could possibly share a directory that has only jpeg files. You might have permission issues with the shared files. I

I dont care for idea of shared home directories could be to many conflicts. I think the idea of of a group with the same uid and gid may be the best way to go. I'll get back and let you know how that goes.
 
Old 04-18-2009, 09:04 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
It's the same /home, what conflicts do you expect? I share the same /home amongst three systems (two CLFS and a Gentoo). Really not a huge issue; I don't recall ever having any problems with it.
 
Old 04-18-2009, 11:13 PM   #7
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
You shouldn't see any issues with a shared storage partition. I've been using Linux for many years and have never run across such a conflict. Just set up your storage partition, make sure both mount it, and go from there. You shouldn't see any permission conflicts at all.
 
Old 04-21-2009, 12:08 AM   #8
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by masonm View Post
You shouldn't see any issues with a shared storage partition. I've been using Linux for many years and have never run across such a conflict. Just set up your storage partition, make sure both mount it, and go from there. You shouldn't see any permission conflicts at all.
That just what I did. Did have a minor issue with with Slackware being 500 uid and 500 gid, changed 'em both to 1000. Mounted the partition in both distros then made soft links to the directories I needed works like a champ.

Someday I'll try using the same /home partition but first Slackware, need to learn the ways of the 'Darkstare'.


Thanks Guys!
 
  


Reply

Tags
permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 10:19 AM
Copying files from internal Hard drive to USB 2.0 Hard Drive is NOT Behaving tubatodd Ubuntu 4 02-19-2007 05:32 PM
Cannot Delete files on Linux file share drive with Windows tendonut Linux - Networking 4 01-23-2006 12:43 PM
share folders/files on LAN debian/MS computers. ecampii Linux - Networking 2 09-28-2005 09:05 AM
Can more than one hard drive share the same partition? blanny Linux - Hardware 3 12-22-2002 03:18 AM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration