I'm using Fedora 23 with KDE Plasma. I'd like to mount automatically my hard-drive at start-up. Here is a screenshot of my situation :
Any idea ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
To have a device mounted on startup, you need to edit
root. The format for
/etc/fstab is as follows:
# <file system> <mount point> <type> <options> <dump> <pass>
<file system>is the device or remote filesystem you want to mount.
<mount point>is where you would like your device or remote file system to be mounted.
<type>is the type of the filesystem you are mounted. (ext4, FAT, NTFS, etc.)
<options>are the mount options associated with the filesystem.
defaults, which mounts the filesystem with
relatime. To view available options and option descriptions, look at the man page for
<dump>is a boolean that determines if the filesystem needs to be dumped or not. Most of the time this value is
<pass>determines the order in which filesystem checks are done at reboot time. It is common practice to have the
rootfilesystem have a value of
1, and all other filesystems have a value of
For example: Let's say I have a device plugged into
/dev/sdb1 with an
ext4 filesystem which I would like to be mounted to
/mnt/files on boot.
I would add the following line to
# <file system> <mount point> <type> <options> <dump> <pass> /dev/sdb1 /mnt/files ext4 defaults 0 2
Note: Comments in
/etc/fstab are specified with a
#. The top line in the example above is not necessary, but it is good practice to keep it in the file so you can remember the format.
There is a man page for everything I just said. If you want more information, take a look at the man page for