How to Auto Mount Drives in Linux on Boot

preview_player
Показать описание
Reviewing how to automatically mount Hard Disk Drives, SSD, USB, and any other mountable storage drives in Linux. We will do this by finding the drive information including the mount point and UUID. We will then create a new mount directory and edit the fstab file with all the information needed to set up auto-mount on startup.

There is a full written tutorial here if you need any of the commands we used in the video as well as screenshots and other helpful information.
Рекомендации по теме
Комментарии
Автор

Excellent tutorial. I appreciate the fact that you showed how to do this with the terminal instead of just gui.

malcolmwest
Автор

Thank you. Everywhere else people just said "go make the fstab entry yourself" without telling how or the risks of not knowing what you are doing

cakes
Автор

Summary of the video:
`lsblk` Check for and unmount the drive if it isn't already
Create an empty folder to mount into eg. `/media/newfolder` or `/mnt/newfolder`
`sudo blkid` Copy UUID and remember the drive 'TYPE'
`sudo nano /etc/fstab` Copy default formatting whilst replacing the UUID and TYPE specific to the drive
`sudo mount -a` Make sure no errors pop up

icupondegrass
Автор

Reading the guides made seem this so complicated but your video was super easy to understand, thanks!

oseaniic
Автор

Worked perfectly. Thank you so much for your time. And thank you for the commands on the blogpost. That helped and saved time having the commands for copy and paste.

matheusgontijo
Автор

Thank you very much for the tutorial, i have facing this issue for a long time, but your tutorial gave exact and precise steps which required to be followed. Liked and subscribed. Thank you very much for this. :)

p.h.sharma
Автор

The easiest to follow tutorial I've seen. Thank you, my drive is now mounted.

EyeSpyHiFi
Автор

Just a heads up for those who don't know... Depending on your version of Linux, you can change most of these settings within the GUI by using the preinstalled app called "Disks". For those interested in learning more, I provided instructions below for Lubuntu but they should also be the same for Ubuntu.

1) After opening the application called "Disks", select your desired drive on the left..
2) After selecting the drive; On the right, select the correct partition on the drive you want to auto-mount.
3) Click the check-mark to open the "Additional partition options" menu. In the menu select "Edit Mount Options". *WARNING:* The options listed in this window directly edit the fstab file and should be modified with care the same as you would using the terminal.
4) In that window, after switching off "User Session Defaults", the only two options I changed were..
4a) Make sure "Mount at system Startup" and "Show in user Interface" are both checked. (these should be checked by default)
4b) Change the "Mount Point" to something you wish to identify the drive as... e.g /mnt/Backup
5) It is important that you *DO NOT* change the drop-down option that says "Identify As"; because, whats already in the box is the partition UUID matching the drive you selected in step 1 and 2, so there should be no need to change this option.
6) After checking the checkboxes and changing your mount point name, click "OK" and input your root pass to save the changes to fstab.
7) Restart the system and you're done.

hiramabiff
Автор

The video that made me subscribe. The details, the patience. Perfect

paul-ti
Автор

Thank you for various methods for getting that UUID info to load into /etc/fstab
👍

chromerims
Автор

Really detailed explanations....always had issues with Linux drives....will try some of your wisdom to see if my systems work the way I expect....subbed

mekuranda
Автор

I was completly new and it bugged me for days, this resolved it in a matter of seconds! Thanks

deteodskopje
Автор

Very easy to follow and very informative. Thanks!

timbarrett
Автор

This definitely help. I am working on switching to Linux but for now dual booting until I master it. Thank you very much!

cyben
Автор

This was very helpful. Thank you so much for this tutorial! Cheers

rmk
Автор

I'm new to Linux and I was wondering how to fix this!
Finally found a video! 👌🏻

ACCESSZERO
Автор

Thank you very much, was just setting up a plex/media storage server and new to Linux, this worked great😊

tylerhuestis
Автор

thankyou for the detailed explanation, it worked perfectly.

vikramvikrant
Автор

Thank you so much! I spent days trying to do this….🙏👍👍👍 it worked first time after following your instructions. 🥇

-someone-.
Автор

excellent video techhut i appreciated the help.

udztviq