Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-mount USB / external / network drives #46

Closed
Tiger862000 opened this issue Oct 11, 2019 · 12 comments
Closed

Auto-mount USB / external / network drives #46

Tiger862000 opened this issue Oct 11, 2019 · 12 comments

Comments

@Tiger862000
Copy link

Tiger862000 commented Oct 11, 2019

Nice project! Love it. Thank you!
How can one mount external storage like USB, disks or network drives?
Despite my Linux knowledge I was not able to locate a mount point nor was I able to manually mount anything. So please, how to do that?

@sharkwouter
Copy link
Contributor

sharkwouter commented Oct 11, 2019

Automatically mounting USB drives hasn't been implemented yet. I've done some testing in the past with a udv rule, but it still needs work.

The reason you're unable to mount manually is probably that you can't create the folder for it or you don't have the file system driver required installed. Try creating a directory in /tmp and mounting your drive there, see if it works.

Network drives are currently a bit harder to mount, you'd have make the root filesystem writable, which also disables automatic updates. You can do so with sudo frzr-unlock. After that you can use pacman to install the cifs utils. Check out https://wiki.archlinux.org/index.php/Samba#Client for more info.

@alkazar
Copy link
Member

alkazar commented Oct 11, 2019

You would have to drop to the command line, run lsblk to get a list of storage devices and their device paths. Then run mount <device path> <mount path>.

Not sure how you would mount a network drive. Probably depends on how it is set up.

What are you actually trying to accomplish though?

@FZXizzbKv7jg
Copy link

FZXizzbKv7jg commented Jun 18, 2020

This is one of my questions, too.
I need autofs to mount nfs network drives and sync my savegames via symlinks.
Is that possible?
What about steam apps and savegame folder, writable? If not, can I create two partitions on SSD to bypass rw-restrictions on 2nd non-OS partition?

EDIT: So I installed autofs and nfs-utils. It works. Do I have to use /tmp folder?

@wallzero
Copy link

I would also like to mount network drives on boot using cifs-utils or nfs-utils.

I am comfortable modifying /etc/fstab to mount network drives on startup but cifs-utils and nfs-utils should be included in GamerOS. These packages are relatively small with few dependencies.

Please include cifs-utils and nfs-utils in future GamerOS updates.

@sharkwouter
Copy link
Contributor

Have you tried using Kodi to transfer files from your network drive? I know it's not the solution which you'd like, but I am wondering if it works. Adding cifs-utils and nfs-utils might not be a bad idea, though.

@wallzero
Copy link

I'm not looking to transfer files, but host them. I think myself and others have a large NAS and prefer to have games/roms stored there. For example, on startup I'd like to mount an entire network volume to /home/gamer/.local/share/steam-buddy/ in order to keep the roms and saves on a separate server.

@franchise2099
Copy link

I too am looking to adding a gaming drive. I moved to GamerOS from SteamOS as I became tired of running on old Nvidia Drivers. I love this project I am just a little concerned about the locked environment used for the ButterFS updates. Do you think there will be an installer GUI that will accommodate a multi-HDD setup? (example disc 1 = SSD 120 GB [boot drive] disc 2 = HDD 4 TB mounted on /home) I also have a 40 TB NAS that contains oodels of ROMZ.

@bornagainpenguin
Copy link

Installed GamerOS today in hopes of being able to get my game on and enjoy my media collection with Kodi, as I'd heard it was possible to install it on GamerOS. On the games side, very few complaints. Everything so far seems to have worked well though I really resent the inability to dualboot which would have made my life much easier. On the Kodi side of things....

Well not so simple. I keep my media on a large (10TB) external USB drive. This is not mounted by GamerOS, so Kodi can't see it. I tried seeing if I could connect it to my router and host it across the network--also a no go because GamerOS doesn't have Samba, doesn't mount network drives. Somehow I've been transported back in time to 1997 where I am unable to get something as simple as a floppy drive to mount automatically never mind a CD or my iomega zip drive.... Nothing mounts.

The inability to mount USB, External and Network drives makes having Kodi something of a sick joke, as I don't understand how anyone expects to actually get their media on it. What am I missing? I feel like I'm right on the edge of being able to have everything and yet so far away from anything but games. A console without a media center is a step back.

Am I just being greedy for wanting it all? Console experience, gaming and media center?

@Renevith
Copy link

I was able to get this to work with a USB drive using the command line. I agree it would be nice to have this better supported out of the box, as otherwise Kodi does seems fairly useless.

My steps to make it work were:

  1. Make a directory where the disk can be mounted: mkdir /home/gamer/media
  2. Let Kodi access this folder outside its sandbox: flatpak --user override tv.kodi.Kodi --filesystem=/home/gamer/media
  3. Find the UUID and filesystem of the USB drive: sudo blkid
  4. Add this line to /etc/fstab, except replace the UUID and ext3 with whatever sudo blkid said for your drive:
    UUID="b62a9aa1-c051-4f3f-be8b-636455eb6e46" /home/gamer/media ext3 rw,noatime 0 0
  5. Reboot to have it auto-mount, or just mount it yourself for now: sudo mount /home/gamer/media

I used a subdirectory of /home/gamer because I figured the home directory wouldn't be wiped out on an upgrade (or reboot), but I don't know that for sure. I only just started using ChimeraOS and I haven't upgraded since doing this. But it does work for now: after a reboot, I can just go into Kodi from Steam and still see all my videos without needing to do anything special.

@jarod186
Copy link

jarod186 commented Dec 8, 2021

I have a similar problem, except its my dvd drive which is not mounting. I suspect that it is the same problem as with a usb drive. Thank you @Renevith for that workaround, will try it!
Have used an old computer for my son and was planning to put chimera os on it but had to back out when i noticed that kodi could not play any of his dvd movies.
The idea and concept for this project is awesome and hoping for some great future development for this! :)

@sharkwouter sharkwouter removed their assignment Mar 7, 2022
@sharkwouter
Copy link
Contributor

Lets wait and see how SteamOS 3 implements support for micro SD cards before we continue on this.

@Samsagax
Copy link
Member

This one should be tracked in #237. Gamepadui already supports it and we included the pieces for it to work on newer ChimeraOS releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants