2

My goal is to have a USB drive in ext4 and to use it as a normal Fat32/NTFS pendrive (or usb box drive). I would be happy to forget NTFS and Fat32 and to use this USB Drive with all pc in my local net. By the use of CHMOD and CHOWN I would create a REALLY everyone drive in ext4. Every mountpoint should be for everyone. Tons of command line rows are written but no tutorial and simple procedures to make it possible. Thanks.

  • 3
    You can use ext4 on your pendrive. The only problem is that only linux systems will be able to see it. But it really makes no sense to use a fs with a journal on a pen drive. You can have e.g. ext2. – Pilot6 Aug 13 '19 at 9:18
  • 1
    And what is the question? Go ahead and use whatever filesystem on your pen drive. – Pilot6 Aug 13 '19 at 9:19
  • Forget Windows is my primary goal. This is written in the question. Is is possible with ext4? I suppouse not. I want only a network with linux in my company! I don't want to use NTFS and Fat32. I know that Windows neddds to have an app to read ext4. – Gian Luca Brizi Aug 13 '19 at 9:24
  • "But it really makes no sense to use a fs with a journal on a pen drive." Read please I wrote: "or USB box". It means 2TB hard drive in the box! Can I use in my network ONLY linux and ONLY extx partitions without NTFS and FAT32? I want to take away a 2TB at home and read it with my Ubuntu Laptop. – Gian Luca Brizi Aug 13 '19 at 9:27
  • 1
    It IS possible to use ext4 on a pen drive, why not? Just format it to ext4. Notheing else to be done. – Pilot6 Aug 13 '19 at 9:27
2

If you want an owner/group-agnostic file system for your drive, ext3/ext4 is not the right one for you.

Only filesystems which do not support Linux permissions like fat have an attribute for ownership/groupship: uid=value and gid=value. See the manual page on mount. (via)

As a workaround you could use a bind mount if you have sudo, but that is probably not what you want:

sudo bindfs -u $(id -u) -g $(id -g) /media/diskFoo ~/myUIDdiskFoo

(via)

I don't know of any suitable unix/linux/opensource permission-agnostic file system. Unfortunately, you should probably use exFat (NTFS is a journalling fs and thus not suitable for flash storage).


Update: I just read about F2FS - "Flash Friendly File System", but I don't have any experience with it and it seems to have a normal unix permission model.

| improve this answer | |
  • LINUX only linux, I want to forget windows in my mind. I use linux in all my infrastructure. The Askubuntu is full of expanded command lines, this is a simple question that demonstrates how the linux world is made too mutch complicated. The answer you offered is near the truth! – Gian Luca Brizi Aug 14 '19 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.