You are not logged in.

#1 2010-07-27 18:35:52

talnotag
Member
Registered: 2010-07-27
Posts: 13

[solved] ext4 removable media usable by anyone on any computer.

Hi there !

Is there something special to know about ext4 and extern USB hard drive ? I used Gnome DIsk Utility to format it, and when i plug it, it mounts ok but with root, so I can't write data on it. Is there a way to fix it please ?

Last edited by talnotag (2010-07-28 01:10:45)

Offline

#2 2010-07-27 18:45:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

How exactly do you mount it: udev, pmount?

Offline

#3 2010-07-27 18:48:05

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

udev I assume since it's automount. Anyway I don't remember I configured anything about that at installation...

Offline

#4 2010-07-27 18:51:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

Offline

#5 2010-07-27 19:41:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [solved] ext4 removable media usable by anyone on any computer.

"Gnome Disk Utility" means udisks. Which means policykit. Ugh.

Actually, I have an idea: Mount the disk. Now, the directory it's mounted at (it'll most likely be /media/label_of_disk), change it's permissions - as root do:

chown talnotag:talnotag /media/label_of_disk

Now you should in theory be able to write data on the disk.

Offline

#6 2010-07-27 19:44:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

@ Gusar
'chown -R' maybe? Just in case there's already something there.

Offline

#7 2010-07-27 23:01:58

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

Thanks for your answers. Maybe I should format it again using another tool then ?

Last edited by talnotag (2010-07-27 23:02:16)

Offline

#8 2010-07-27 23:03:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

talnotag wrote:

Thanks for your answers. Maybe I should format it again using another tool then ?

So the chown didn't work? That would be really weird.

Offline

#9 2010-07-27 23:10:38

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

karol wrote:
talnotag wrote:

Thanks for your answers. Maybe I should format it again using another tool then ?

So the chown didn't work? That would be really weird.

It worked, just wondering if the problem would occur again after next reboot, or if it fixed for any computer i would plug this HD in ?

(sorry for my approximative english)

Offline

#10 2010-07-27 23:35:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

> if it fixed for any computer i would plug this HD in ?
If you have the same user everywhere it should work.

Offline

#11 2010-07-27 23:40:02

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] ext4 removable media usable by anyone on any computer.

Same UID that is.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2010-07-27 23:44:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

fsckd wrote:

Same UID that is.

That's what I meant. I've heard that they may differ from one distro to another, but if all the boxes are running Arch, will that be a problem?

Offline

#13 2010-07-27 23:59:13

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] ext4 removable media usable by anyone on any computer.

Depends on how these boxes of Arch are configured.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#14 2010-07-28 00:11:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

fsckd wrote:

Depends on how these boxes of Arch are configured.

Default. Root + one user. Will the user get the same UID (1000) on every box?

Offline

#15 2010-07-28 00:14:49

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] ext4 removable media usable by anyone on any computer.

Depends on the guy who installs it. tongue

I can go on all day. wink


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#16 2010-07-28 00:41:52

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

Ok, let's say I have to format it again ^^

Thanks everyone.

Offline

#17 2010-07-28 00:43:00

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] ext4 removable media usable by anyone on any computer.

No you don't. Worst case you have to chown -R again.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#18 2010-07-28 00:45:56

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

I'd like to be able to easily use it on any linux box I find with any user, just like a normal external HD : plug and read/write. This UID protection thing is anoying in my case.

Offline

#19 2010-07-28 00:48:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

talnotag wrote:

I'd like to be able to easily use it on any linux box I find with any user, just like a normal external HD : plug and read/write. This UID protection thing is anoying in my case.

You won't escape from UID on a Linux filesystem, but if you can use vfat you won't have such 'problems', just mount your drive as a user.

Offline

#20 2010-07-28 00:52:32

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

So the only filesystem that can handle 4Go+ files and is easy to use with removable media is NTFS ? No way to format it using ext3 or 4 and use it as a normal USB disk ?

Offline

#21 2010-07-28 00:57:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

If you give everyone every permission you will be able to do whatever you want.

[karol@black ~]$ touch abc
[karol@black ~]$ ls -al abc 
-rw-r--r-- 1 karol users 0 07-28 03:05 abc
[karol@black ~]$ chmod 777 abc 
[karol@black ~]$ ls -al abc 
-rwxrwxrwx 1 karol users 0 07-28 03:05 abc

Offline

#22 2010-07-28 01:00:49

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

I was thinking about that at the same moment, but will it bo ok for new files added in the future as well ?

Offline

#23 2010-07-28 01:04:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ext4 removable media usable by anyone on any computer.

talnotag wrote:

I was thinking about that at the same moment, but will it bo ok for new files added in the future as well ?

https://bbs.archlinux.org/viewtopic.php … 81#p799381
In theory you could create all files with 777 permissions and mount the drive accordingly http://en.wikipedia.org/wiki/Umask

Offline

#24 2010-07-28 01:09:15

talnotag
Member
Registered: 2010-07-27
Posts: 13

Re: [solved] ext4 removable media usable by anyone on any computer.

karol wrote:
talnotag wrote:

I was thinking about that at the same moment, but will it bo ok for new files added in the future as well ?

https://bbs.archlinux.org/viewtopic.php … 81#p799381
In theory you could create all files with 777 permissions and mount the drive accordingly http://en.wikipedia.org/wiki/Umask

Ok sounds good, I think it will be ok.
Thanks a lot for your help ! I hope there will be a real free filesystem made for large removable device one day.

Offline

#25 2010-07-28 01:10:30

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] ext4 removable media usable by anyone on any computer.

Edit: Sorry, I thought you were refusing to answer my question as it was a bit too personal.

Here it is again as far as I remember it: If I may ask, where do you plan on mounting this device, at a friends' box, at your workplace, across the nation in a mount-on-every-Linux-box-you-find trip?

Last edited by fsckd (2010-07-28 01:52:42)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB