Automounting drives

Ok evidently I can't just right click on the drive and pick Format in file explorer.
65 Replies
HikariKnight
HikariKnight10mo ago
since the guide is not complete (other than the KDE portion) i will just screenshot it and put it here
HikariKnight
HikariKnight10mo ago
No description
HikariKnight
HikariKnight10mo ago
No description
HikariKnight
HikariKnight10mo ago
No description
HikariKnight
HikariKnight10mo ago
No description
tickthegreat
tickthegreatOP10mo ago
I appreciate it. When I right click I can mount and unmount not "Edit mount points" so I'll have to play around with it. Thank you.
HikariKnight
HikariKnight10mo ago
BTRFS: noatime,lazytime,commit=120,discard=async,compress-force=zstd:3,space_cache=v2,nofail,subvol=/ EXT4: defaults,noatime,errors=ro,nofail NTFS: defaults,noatime,nofail since you will need these options you need to unmount first
tickthegreat
tickthegreatOP10mo ago
Right as I said that I see I use the KDR Partition tool Ok, here I go. Thanks.
HikariKnight
HikariKnight10mo ago
the guide is a bit rough and will need some touch ups also sorry it is a lot to read, we just dont want to risk users breaking anything or accidentally delete something they do not want to. so we try to be as verbose as possible
tickthegreat
tickthegreatOP10mo ago
Sure. I unmounted the SSD. I clicked on the bar and found the mount edit point. Identify by UUID, then I'm selecting a path.. which I don't comprehend what the window's equivalent is but I select MNT, and try to create a subfolder and I don't have permission to do so.
HikariKnight
HikariKnight10mo ago
dont set path to /mnt make sure you make a folder like we say inside /mnt like /mnt/games or /mnt/disk1 and use that folder as the path 🙂
tickthegreat
tickthegreatOP10mo ago
I select mnt, says /mnt at the bottom. Then I click New Folder and it says I don't have permission to create that folder. I'm in an account - I didn't check to create root access when I did setup. Could that be it? /mnt is italic as well. Some of these things like sys or sysroot are not. srv, sbin, mnt are. Not sure what the relevance is. Actually there are two mnt, one at the top and one at the bottom of the list. I don't get it but I'm rolling with it. The other one is /var/mnt
HikariKnight
HikariKnight10mo ago
read the guide you need to make the folder using the terminal right now sadly /mnt and /var/mnt are the same folder, /mnt is just a symlink (think shortcut but smarter) to /var/mnt
HikariKnight
HikariKnight10mo ago
No description
tickthegreat
tickthegreatOP10mo ago
Just typed cd /mnt on that one making my way down
HikariKnight
HikariKnight10mo ago
ok
tickthegreat
tickthegreatOP10mo ago
I'm going to type exactly what is here. I'm quickly learning anything deeper than install app from discovery store thing is a little out of my depth in Linux. lol
HikariKnight
HikariKnight10mo ago
well you can replace data1 in the mkdir command with whatever foldername you want since that is where you will be mounting the disk to
tickthegreat
tickthegreatOP10mo ago
Do I use $USER:$USER or is that a placeholder for something else
HikariKnight
HikariKnight10mo ago
those are variables it will automatically translate to your username
tickthegreat
tickthegreatOP10mo ago
Ok cool
HikariKnight
HikariKnight10mo ago
you can check it with echo $USER
tickthegreat
tickthegreatOP10mo ago
Ok, I put cd /mnt it changed to my username mnt in the brackets. I typed the other two lines and it didn't say anything or change what was in the brackets so hopefully that worked.
HikariKnight
HikariKnight10mo ago
you can use ls to list the contents of the folder you are cd-ed into ls -la if you want it in a list with more details
tickthegreat
tickthegreatOP10mo ago
Ok, cool. have a "ssd" and "hdd" subfolder in there it looks like under /mnt
HikariKnight
HikariKnight10mo ago
yep
tickthegreat
tickthegreatOP10mo ago
they are in blue after doing ls
HikariKnight
HikariKnight10mo ago
are they owned by you? thats the most important part 🙂 should have your username mentioned 2 times if they are owned by you ls -la will show those details
tickthegreat
tickthegreatOP10mo ago
📦[endofturn@fedora mnt]$ ls -la total 0 drwxr-xr-x. 1 root root 12 Feb 13 02:55 . dr-xr-xr-x. 1 root root 46 Feb 13 01:58 .. drwxr-xr-x. 1 endofturn endofturn 0 Feb 13 02:55 hdd drwxr-xr-x. 1 endofturn endofturn 0 Feb 13 02:52 ssd Looks like it
HikariKnight
HikariKnight10mo ago
yep want me to give you a rundown of what all the columns mean in that?
tickthegreat
tickthegreatOP10mo ago
I mean, sure. Want to learn what I'm doing
HikariKnight
HikariKnight10mo ago
ok take this line
drwxr-xr-x. 1 endofturn endofturn 0 Feb 13 02:55 hdd
drwxr-xr-x. 1 endofturn endofturn 0 Feb 13 02:55 hdd
the first column are basic attributes/permissions d = directory/folder (if this is - then it is a file) r = read access w = write access x = execute access - = no access (will be placed instead of r, w or x when access is removed) rwx is repeated 3 times as they are for different groups in this order - user - group - others i forgot what the number afterwards is but you will almost never look for that info then you have the username repeated 2 times (in most cases) the first mention is the actual user the second is the group this is the user and group that own the folder/file next is the total size of the file/folder then the date of creation or modification i believe then the name of the folder
tickthegreat
tickthegreatOP10mo ago
I assumed after I did that when i went back to KDR Partition Manager and tried to select the path the mnt folder would have like a carrot next to it and my ssd and hdd folders to select now.
HikariKnight
HikariKnight10mo ago
yep
tickthegreat
tickthegreatOP10mo ago
Looks the same, not sure what happened there
HikariKnight
HikariKnight10mo ago
so you go back and set the path to /mnt/ssd or /mnt/hdd
tickthegreat
tickthegreatOP10mo ago
Going to close and relaunch it again
HikariKnight
HikariKnight10mo ago
so you just need to select the folder again or you can just manually type in the path to be that
tickthegreat
tickthegreatOP10mo ago
Maybe I need to just restart completely. Has no subfolder. And if I manually add /ssd and hit OK it just drops it on the path field.
HikariKnight
HikariKnight10mo ago
its supposed to be in the path field should say /mnt/ssd when you select that folder
tickthegreat
tickthegreatOP10mo ago
Maybe I said that wrong, it just reverts to /mnt Ignores that I wrote /mnt/ssd
HikariKnight
HikariKnight10mo ago
click the remove button first
tickthegreat
tickthegreatOP10mo ago
I rebooted and now it is in gaming mode I think. Asked my time zone. Thought I did that already during setup. Installing steam again for some reason. Whenever I get back to desktop I'll read the guide and try again. Steam thinks it'll take 19 minutes to install for whatever reason. I need to sleep. I appreciate your help and sharing that guide with me. I'll get it at one point. My battery is low it says. Lol
HikariKnight
HikariKnight10mo ago
the 19 minutes thing is a fake timer, if its the one i think it is
tickthegreat
tickthegreatOP10mo ago
I tried again. No subfolders to select as path. I can't type it manually (it just reverts to /mnt) and if I hit Remove it gives an error and then closes KDE. If I'm following directions I need to select a permanent path subfolder.
No description
No description
HikariKnight
HikariKnight10mo ago
Seems like the folders are not there. Try making them again
tickthegreat
tickthegreatOP10mo ago
"mkdir: cannot create directory ‘ssd’: File exists" someone else said you need to format first so I did. And that the path thing is to permanently mount the drives. I'm just remounting manually every time now and trying to install a game now. If it works I'll just leave it like that. Remounting each time isn't the end of the world, I suppose. Now i have two drives formatted in btrfs, I swapped files over to avoid wiping the folders I wanted to keep. I guess I'm done -- seems to work well enough. 🤷‍♂️ I appreciate it!
HikariKnight
HikariKnight10mo ago
sudo mkdir /mnt/ssd
sudo mkdir /mnt/hdd
sudo chown $USER:$USER /mnt/ssd
sudo chown $USER:$USER /mnt/hdd
sudo mkdir /mnt/ssd
sudo mkdir /mnt/hdd
sudo chown $USER:$USER /mnt/ssd
sudo chown $USER:$USER /mnt/hdd
Instead of changing to the directory I just provided the absolute path the commands probably didnt work if you happened to be inside a distrobox when you did this too (would make sense based on your picture in #🎮bazzite )
tickthegreat
tickthegreatOP10mo ago
That actually did it.
No description
tickthegreat
tickthegreatOP10mo ago
I unmounted and now in particion manager I have a carrot next to mnt and the subfolders Added "noatime, lazytime, commit=120, discard=async, compress-force=zstd:3, space_cache=v2, nofail" to the More.. options
tickthegreat
tickthegreatOP10mo ago
Ok, so will this format the drive again?
No description
HikariKnight
HikariKnight10mo ago
nope that will add the automount definitions to the filesystem table file at which that disk will be done 🙂
tickthegreat
tickthegreatOP10mo ago
Ok, hit save Running the test -- the screenshot is small and my eyes aren't perfect. Did I not type this correctly? endofturn@fedora:~$ sudo systemct1 deamon-reload && sudo mount -a sudo: systemct1: command not found It's an L (in more than one way). Think I got it. Says endofturn@fedora:~$ sudo systemctl daemon-reload && sudo mount -a mount: /etc/fstab: parse error at line 17 -- ignored Reapplied and it didn't say anything after entering that daemon stuff. Going to restart. I think that might be it
HikariKnight
HikariKnight10mo ago
systemctl not systemct1 ok there is an error on line 17 can you cat /etc/fstab for me all the fumbling might have messed something up
tickthegreat
tickthegreatOP10mo ago
No description
tickthegreat
tickthegreatOP10mo ago
I restarted and the drives were both mounted already. I have these folders under mnt and inside are the files that are on the respective drives.
No description
HikariKnight
HikariKnight10mo ago
ok no idea why it says there is an error on line 17
tickthegreat
tickthegreatOP10mo ago
I reapplied and ran that daemon command after that error and it just didn't do anything
HikariKnight
HikariKnight10mo ago
ok then i guess reapplying fixed it
tickthegreat
tickthegreatOP10mo ago
I mean, I think that's where I'm supposed to be now? have the mnt subfolders, they are.. linking to what is on the drives, I have the modifiers in there that were suggested, and they were automatically mounted on restart And they are formatted into btrfs, I still have my movies and shows and music, those all open correctly, I made a steam folder on there and saved game files and they open and work Steam lost the drives I added SteamLibrary folders for, which have downloaded games in them. I hit Add Drive, navigate to where they are, hit Ok and they just aren't added. Gotta keep playing with it I guess. lol
HikariKnight
HikariKnight10mo ago
check and see if you can add files to the disks might be a permission issue
tickthegreat
tickthegreatOP10mo ago
I'm going to do that after the kids go down. If I can just drag and drop without issues I'm just reimaging everything, reinstalling, starting over. Something is awry. Lol
HikariKnight
HikariKnight10mo ago
sudo chown -R $USER:$USER /mnt/ssd
sudo chown -R $USER:$USER /mnt/hdd
sudo chown -R $USER:$USER /mnt/ssd
sudo chown -R $USER:$USER /mnt/hdd
tickthegreat
tickthegreatOP10mo ago
Yeah, I could add files and folders, worked perfectly fine, just steam couldn't create game folders on them. I give up. I'm formatting the main install, starting over. Once I get in I'm formatting then mounting HDD. Then moving the SSD files over, then formatting the SSD, then mounting it, then trying steam. If that doesn't work I'm starting over again and just not mounting them, just formatting. I know it worked before I did that
HikariKnight
HikariKnight10mo ago
if it works on those paths you can just automount to those paths instead of /mnt as /mnt is just a general recommendation for permanent drives while /media (which is symlinked to /run/media) is meand for removable media. but it does not really matter in the end where you mount things as long as you know where you mount it. PS: might also be selinux blocking steam from accessing the /mnt path, that is its own can of worms. i rather you just get access to your games first without having to manually mount the disks each time 🙂
No description
Want results from more Discord servers?
Add your server