Ask Your Question
1

how to use a USB drive across Linux computers?

asked 2018-09-13 21:08:47 -0600

horizonbrave gravatar image

updated 2018-09-16 20:27:27 -0600

Hi, I want to use my USB drive for sharing files across multiple Linux installations (Fedora, Manjaro, Ubuntu, OpenSUSE). I thought ext4 could be the file system of choice but there's too much drama about permission and I'm not able to access across my computer systems except where I created the partition.

PLEASE, which could be a possible solution so that every Linux system and EVERY user will be able to read/write and create directories on such USB drive? Should I ditch ext4 all together and go with NTFS?

I'm surprised by how this "problem" hasn't been addressed yet with all the people that try to abandon Windows and Linux distros trying so hard to make the year of the Linux desktop happen :) Thanks

PS: I need a filesystem able to manage files over 4 GB size, so I guess FAT is not an option...

EDIT: I'm liking this but there's a big but:

The only problem I might expect is that copying files to the USB stick will by default attempt to duplicate the file permissions of the original, which you don't want in this case.

edit retag flag offensive close merge delete

Comments

Are your Linux installations all on the same network? Maybe it's worth setting up a shared directory on the network (using NFS).(the actual data can still reside on your ext4- formatted USB, but you circumvent the problems with permissions...)

florian gravatar imageflorian ( 2018-09-13 22:13:38 -0600 )edit

@florian, that sounds great.. you should post it as an answer! Thanks

horizonbrave gravatar imagehorizonbrave ( 2018-09-16 20:25:56 -0600 )edit

Can do so...

florian gravatar imageflorian ( 2018-09-17 09:20:57 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
2

answered 2018-09-13 23:10:04 -0600

sideburns gravatar image

Flash drives come already formatted with FAT32, which every OS I'm familiar with can read and write. Unless you need to have the Linux file attributes carry over, there's no need to reformat.

edit flag offensive delete link more

Comments

Sorry but I forgot to mention in my first post that I need to get over the 4GB size limit!

horizonbrave gravatar imagehorizonbrave ( 2018-09-16 20:26:35 -0600 )edit

Just get a drive that's at least 32 GB and it will come formatted with exFAT that can handle files that big.

sideburns gravatar imagesideburns ( 2018-09-16 20:34:48 -0600 )edit
0

answered 2018-09-13 22:23:20 -0600

florian gravatar image

updated 2018-09-13 22:26:37 -0600

You just set the file permissions to

-rwxrwxrwx, or numerical 777, see [1].

cd into your usb drive, then

sudo chmod -R 777 *

(-R is for recursive).

Check man chmod and maybe [2] and [3] for more information

LInks: [1], [2], [3]

edit flag offensive delete link more

Comments

1

Better:

chmod -R a+rwX  .

Don't set execute permission on regular files.

villykruse gravatar imagevillykruse ( 2018-09-14 01:47:24 -0600 )edit

So I'll have to do it every time I move my drive across computers right? In those computers User might be different! Cheers!

horizonbrave gravatar imagehorizonbrave ( 2018-09-16 20:29:24 -0600 )edit
0

answered 2018-09-17 09:21:16 -0600

florian gravatar image

Are your Linux installations all on the same network? Maybe it's worth setting up a shared directory on the network (using NFS).(the actual data can still reside on your ext4- formatted USB, but you circumvent the problems with permissions...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-09-13 21:08:47 -0600

Seen: 104 times

Last updated: Sep 17