In contrast to Home windows, Linux doesn’t mounts file techniques mechanically on laptop startup. It’s important to mount every partition manually after boot. This may be annoying if some functions must entry contents from some unmounted partitions on startup, like a media participant. In case your music library resides on any unmounted partition, every time you open up your media participant, the contents received’t seem except you mount that partition. In that case, you may need to auto mount that partition.
In order to mount a specific partition mechanically on boot up, you simply have so as to add its entry into the fstab file. You are able to do this by immediately writing to the file, or graphically utilizing some device like Gnome Disks.
Right here, I’m going to debate about enhancing the fstab file immediately. You received’t want a “the best way to” on doing it graphically.
Let’s get began
First, create a backup of your authentic fstab file. It may be eliminated later if file techniques mount correctly. The fstab file is current in /and so forth/ listing. To do that, open a terminal window and kind:
sudo cp /and so forth/fstab /and so forth/fstab.authentic
The fstab file shops entries within the following format:
<UUID or Label> <Mount level> <File system kind> <Mount choices> <fs_freq> <fs_passno>
The fifth and sixth area are utilized by dump and fsck utility respectively. These decide which file system must be dumped, and the order of mounting of file techniques. These are given a 0 worth typically.
It’s also really useful that you need to use UUID to establish partition somewhat than label, as labels can mismatch.
Discovering UUID of partition:
To get the UUID of desired partition, kind:
This might present a listing of partitions with their labels and UUID. You possibly can establish a partition by its Label. Or use lsblk to establish the partition by its measurement. Copy the UUID of desired partition.
Creating an entry in fstab:
Open the file /and so forth/fstab in a textual content editor with root privileges. On the finish of file, append a line representing the partition’s particulars.
The mount level is usually a folder in /mnt/ listing, like /mnt/home windows. It’s essential to create a folder there previous to mounting. The kind of partition may be decided from the blkid command given above. A default ought to suffice within the mount possibility area. You possibly can present different mount choices like uid, gid, umask and so forth in a comma separated record after default. After that, specify the <fs_freq> and <fs_passno> as 0 (or 1,2.., in case you are positive to vary dump or mount order choices). You should utilize earlier entries within the fstab file as a referance, or the picture under.
Word: After updating the fstab file, unmount manually mounted partitions and kind
sudo mount -a within the terminal. In the event you get undesirable outcomes, like unsuitable permissions, you’ll be able to replace the file accordingly. So subsequent time you boot up the system you’ll get the specified outcomes.
DO NOT MODIFY PREVIOUS ENTRIES IN THE FSTAB FILE. It might result in an unbootable system. Then you definately’ll have to exchange the up to date file with the fstab.authentic file created in first step.
A word for home windows customers
In the event you’re twin booting with Microsoft Home windows 8 (or above), you’ll have to disable quick startup first, in any other case your Linux may show an error on startup. There’s an possibility within the management panel > energy choices, to disable quick startup.
Do that out and if you happen to discover some issue, remark down your queries.
Really helpful for you: Linux Windows Dual Boot and More: Multi-booting Up to Five OS