this post was submitted on 31 Jan 2024
47 points (92.7% liked)

Linux

47940 readers
1551 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Ok i have a 5TB usb hard drive that is mostly used for weekly backups of my system. It is hooked to a raspberry pi and has an exfat file system and used as a samba share.

But i need to occasionally unplug it and connect it directly to some other machines for 2 reasons.

  1. For use with steam on linux (i store my games on it)

  2. For use with obs on windows (i do some screen recording and need to be able to save the output to the drive)

Here's the dilemma. Games that require proton will not launch from an exfat drive (trust me i've tried all the "hacks" and cant make it happen). So i plan to reformat the drive as an ext4 file system.

However, windows does not support ext4 natively. I do have WSL and could probably mount it there but here are the issues.

Another user in my house will be primarily the one using obs and they are not technically inclined (or at least not linux inclined) i want them to be able to plug this device in and just press record and have it output to the drive, this was working fine with exfat but obviously once i reformat it could be an issue.

I have a few options and wanted to run it by here first before committing to the reformat.

Option 1) reformat drive to ext4. Keep it as a samba drive at all times, except when gaming, and have obs output the video to the drive over the network

-is obs capable of doing this reliably?

Option 2) reformat to ext4 and unplug drive when gaming or needing to use obs. Rig up a script to automount the drive with wsl when detected.

-will the mounted drive show up in the windows file explorer natively? Or could i at least pin its location to quick access?
-can i actually create some way for it to automount the drive with no user input required?
-ooh but the distro is on the drive to conserve the laptop's space, could present an issue

Option 3) reformat the drive as part ntfs part ext4 and then plug it in for gaming and obs?

-i believe in linux i could just add the part-uuid to fstab so it only mounts the ext4 portion or maybe i could mount both?
-would windows automatically just mount the ntfs portion?

Imo, option 1 is the best but i would like to have a fail safe in case i ever need to plug it directly to the windows machine. So realistically a hybrid of option 1 and 2 is best. Is there a better way to do this? Will any of these methods work?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 9 months ago* (last edited 9 months ago) (2 children)

NTFS will give you issues just like exfat. You can partition it as multiple partitions. 1 ntfs, 1 ext4. Or I personally for Linux have been using btrfs.

There is a btrfs driver for windows, but I don't know much about ita use cases.

[–] [email protected] 2 points 9 months ago (1 children)

The windows btrfs driver can be a mixed bag. Don't unplug it suddenly and make backups.

[–] [email protected] 2 points 9 months ago (1 children)

That's disappointing, but mostly i would be plugging it in to windows every once in a while. Whereas i would be running nightly backups when its hooked as a samba drive. Would i need to eject it every time i unplugged? I wouldnt mind that

[–] [email protected] 3 points 9 months ago

I would eject or else you likely will get a blue screen. Even if you do eject there is likely a bunch of bugs.

If it does work for you make sure you donate to the Dev. He deals will a lot of harassment on Github and does the good work.

[–] [email protected] 2 points 9 months ago

Hmm i dont have any experience with btrfs but im open to it.

Is speed comparable to ext4? And should i install the driver on windows i could just plug the drive in an it would become accessible without user input?