Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-08-2010, 01:01 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
Multiple Distros - One Data Partition - External Drive

Hi guys,

I've got an external hard drive with one large data partition on it. I also have four computers to connect it to (individually, not at the same time). Three machines are running Slackware and one is running Ubuntu 9.10. I need to be able to just plug the drive into whichever machine, mount it (preferably to the same location each time) and not have to worry about user permissions and such. Do I just chmod 777 all the files and folders or is there a better method for different 'users' to access the same partition? And how about mounting to the same location each time?

Now the second part of my question I'm pretty sure I'm not able to do but just in case..... is there any way to encrypt the information safely and make it compatible with a Windows XP machine?

Thanks for any help on the first part, additionally congratulations if you have a solution for the second.
Old 04-08-2010, 04:00 PM   #2
LQ Newbie
Registered: Sep 2009
Location: Norway Arendal
Distribution: opensuse 10.3 / 11.1
Posts: 4

Rep: Reputation: 0

The permissions are only important if the file system on the disk is a "linux" file system like
ext3 reiser ..etc. If it is a FAT or NTFS file system then the permission is nothing to worry about.

The mount point where you mount the disk has to have read/write permission for all users if you access it
from your own user.

If it is a linux file system on the disk then the file permissions are stored with the user id as a number.
You should then make sure you have the same number for the same user on all machines.
The user number can be found in the /etc/passwd file.

My own entry for my "ras" user looks like this on openSuSE 10.3:
ras@f16:~> less /etc/passwd

ras:x:1000:100:Firstname Lastname:/home/ras:/bin/bash

Number 1000 is my user number.

For mounting of the disk to same place each time I would make a directory like this on all machines:
(as root)

mkdir /data
chmod 777 /data

To manually mount the disk to this directory you need to use the mount command.
The disk can be found with dmesg after you connect it.

Here is an entry from my dmesg after I connect an USB disk:
ras@f16:~> dmesg
USB Mass Storage support registered.
scsi 2:0:0:0: Direct-Access SanDisk SanDisk Cruzer 8.02 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
sd 2:0:0:0: [sdb] 31797247 512-byte hardware sectors (16280 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 31797247 512-byte hardware sectors (16280 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1

I can the mount the disk like this

mount /dev/sdb1 /data

You can make an entry in the /etc/fstab file for the disk to make it mount a boot up. If the
disk is not connected at boot it will have trouble at fsck for a nonexistent disk.

Hope this helps

Old 04-09-2010, 02:44 AM   #3
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
For reading/writing Ext2/3 partitions in Xp try ext2ifs free driver.
Old 04-09-2010, 09:02 AM   #4
LQ Newbie
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Great responses guys thank you, and it's all sorted now. Hope you don't mind if I forward your suggestions on to one of my websites to help others?
Old 04-09-2010, 08:27 PM   #5
Registered: Sep 2004
Posts: 39

Rep: Reputation: 19
This may be a bit more info than you want, but I would also suggest getting a NAS drive (hard drive that hooks directly to a network switch). Then any system that is setup to access samba shares can access it as if accessing any other system's shares. And also, you would then be able to connect that external drive to the NAS drive via USB and access it as yet another share without having to move it from computer to computer.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Distros, Single /boot partition grndrush Member Success Stories 5 03-09-2011 05:54 AM
Ubuntu Newbie...need to clone drive and store data on external drive Mike31718 Ubuntu 15 02-25-2010 06:33 PM
Multiple Distros On USB Drive Diomedes Linux - General 28 09-29-2009 10:29 PM
How to install Multiple Distros in One Partition?? linus72 Linux - General 7 09-01-2009 04:50 PM
how to partition for multiple distros? mbegovic Linux - Distributions 2 04-07-2004 06:51 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:11 PM.

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