Automounting drives
Ok evidently I can't just right click on the drive and pick Format in file explorer.
65 Replies
since the guide is not complete (other than the KDE portion) i will just screenshot it and put it here
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.
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 firstRight as I said that I see I use the KDR Partition tool
Ok, here I go. Thanks.
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
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.
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 🙂
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
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
Just typed cd /mnt on that one
making my way down
ok
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
well you can replace
data1
in the mkdir command with whatever foldername you want
since that is where you will be mounting the disk toDo I use $USER:$USER or is that a placeholder for something else
those are variables
it will automatically translate to your username
Ok cool
you can check it with
echo $USER
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.
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 detailsOk, cool. have a "ssd" and "hdd" subfolder in there it looks like
under /mnt
yep
they are in blue after doing ls
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📦[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
yep
want me to give you a rundown of what all the columns mean in that?
I mean, sure. Want to learn what I'm doing
ok
take this line
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 folderI 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.
yep
Looks the same, not sure what happened there
so you go back and set the path to /mnt/ssd or /mnt/hdd
Going to close and relaunch it again
so you just need to select the folder again or you can just manually type in the path to be that
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.
its supposed to be in the path field
should say
/mnt/ssd
when you select that folderMaybe I said that wrong, it just reverts to /mnt
Ignores that I wrote /mnt/ssd
click the remove button first
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
the 19 minutes thing is a fake timer, if its the one i think it is
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.
Seems like the folders are not there. Try making them again
"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!
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 )
That actually did it.
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
Ok, so will this format the drive again?
nope that will add the automount definitions to the filesystem table file
at which that disk will be done 🙂
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
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 upI 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.
ok no idea why it says there is an error on line 17
I reapplied and ran that daemon command after that error and it just didn't do anything
ok then i guess reapplying fixed it
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
check and see if you can add files to the disks
might be a permission issue
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
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
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 🙂