Sharing an ext2 drive with multiple different OS's, permission problem
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sharing an ext2 drive with multiple different OS's, permission problem
Hi
Feisty is causing me some troubles with an ext2 partition used to share files between different OS's (Mandriva, Ubuntu, Windows). The problem comes when trying to open a file created on one of the Linux distro using the other one. Seems not the same user is used. I've tried to add the uid=500 and uid=1000,gid=100 lines to /etc/fstab, but this causes the drive not to be mounted when Ubuntu starts up. Also, when those lines are present, no way to mount as normal user. The relevant line in /etc/fstab looks like this for now:
mount /media/maxtor/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Any suggestions how I can tell Ubuntu to use the same uid/gid like Mandriva? Dmesg | tail gives no usefull info.
Last edited by hansalfredche; 07-24-2007 at 06:44 AM.
That should give the world rwx permissions on every file in /media/maxtor. The important thing to remember is that the partition must be mounted when you change the permissions on the mount point for the new permissions to apply to any new files added to the partition. You may run into a problem on a different linux OS if it mounts the external drive on a different mount point name. In that case just repeat the procedure on the new OS:
Thanks for your answer. Actually, I wanted to know how I could change the behaviour for files that are added. Chmod changes permissions for files already present, but not for future files.
Not true. chmod on the mount point with the partition mounted changes the permissions on all subsequent files written to that partition. If you:
# chmod 777 /mount point
every subsequent file written to that partition will have 777 perms.
Knowing this fact, the course is clear. For each OS do "chmod 777 /mountpoint", then every OS will be writing to that partition with 777 permissions. Try it; it will work. The only thing that could complicate matters is an OS that automatically resets the perms on reboot for security reasons.
Note, the above is true for all linux filesystems but not for windows filesystems(vfat, ntfs).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.