I’m a 40 yo single mum. Recently divorced and happy to answer any questions sent to me. I’ve had a few drinks and finally home by myself so thought why not do a wee nsfw Q&A. All questions welcome. DMs are open if u don’t wanna post them publicly. Will answer every questions asked.
How do you get Fedora to automatically mount the second hard drive on boot?
Assuming that you want to do this from the command line, in your
/etc/fstab
file, you’ll have a text file with five whitespace-separated fields.The first field is the path to the device file associated with that hard drive. The second field is where you want it to be mounted — this will need to be an existing directory that you’ve created. The third is the filesystem type. The fourth is a set of mount options;
defaults
is usually reasonable here, especially if this is SSD. The fifth field, dump frequency, you almost certainly don’t need to deal with — just make it a “0”. The sixth field is the order to run fsck at boot. “0” for never check, “1” for the root filesystem (you don’t want this), “2” for everything else. You almost certainly want “2”.You can get a list of existing mounted drives — if you were able to mount the drive after boot, manually — by typing:
You can get a list of all block devices that you could mount by typing:
This will also show the block device’s UUID.
Generally, if you’re not using the name of an LVM logical volume — and if you are using LVM, you’ll probably know it — you want to use the “UUID” identifier here, since that identifies the hard drive by a unique identifier written to the drive; reordering drives or something won’t change which drive is referred to.
So you’d have a line that looks something like:
When you boot your system, the mount should be in place.
My understanding is that there are graphical desktop environment utilities that provide their own conventions to mount a drive after login to the graphical environment. This is the traditional route for how one would set this up under Linux, though.