<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Diego A. Carrasco Gubernatis | Personal Website (Posts about linux-mint)</title><link>https://diegocarrasco.com/</link><description></description><atom:link href="https://diegocarrasco.com/categories/linux-mint.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:hi@diegocarrasco.com"&gt;Diego Carrasco G.&lt;/a&gt; </copyright><lastBuildDate>Sat, 09 May 2026 08:04:35 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to fix incrementing mount names on reboot in Ubuntu/Linux Mint</title><link>https://diegocarrasco.com/fix-incrementing-mount-names-ubuntu-linux-mint/</link><dc:creator>Diego Carrasco G.</dc:creator><description>&lt;figure&gt;&lt;img src="https://diegocarrasco.com/images/social-images/fix-incrementing-mount-names-ubuntu-linux-mint.jpg"&gt;&lt;/figure&gt; &lt;h3 id="tldr"&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;To prevent your internet disks from being mounted with incrementing names (e.g., name1, name2) on each reboot, configure static mount points using the &lt;code&gt;/etc/fstab&lt;/code&gt; file. This avoids conflicts with services like Docker that use bind volumes.&lt;/p&gt;
&lt;h3 id="context"&gt;Context&lt;/h3&gt;
&lt;p&gt;Each time I restarted my computer running Ubuntu/Linux Mint, my additional disks were mounted with incrementing names. This breaks all symbolic links and history because another service, Docker in my case, uses the path before it is mounted.&lt;/p&gt;
&lt;p&gt;Why was this happening? I did not care to check how were the additional internal disks being mounted. I just connected them and started to use them. To be fair, I don't restart my computer that often (around once a year, see the image below), so it took me almost a year to find this situation.&lt;/p&gt;
&lt;p&gt;&lt;img alt="uptime" src="https://diegocarrasco.com/images/uptime-titan-2024-06.png"&gt;&lt;/p&gt;
&lt;p&gt;Long story short, I restarted my computer and many thing did not work anymore, and the mount points were the cause of it.&lt;/p&gt;
&lt;h3 id="steps-to-fix-the-issue"&gt;Steps to Fix the Issue&lt;/h3&gt;
&lt;h4 id="1-find-the-uuid-of-the-disk"&gt;1. Find the UUID of the Disk&lt;/h4&gt;
&lt;p&gt;Use the &lt;code&gt;lsblk&lt;/code&gt; command to list all block devices and their UUIDs:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;lsblk&lt;span class="w"&gt; &lt;/span&gt;-o&lt;span class="w"&gt; &lt;/span&gt;NAME,FSTYPE,UUID
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can also use the disk manager in your desktop environment to find the UUID. In my case, KDE, it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="disk manager kde uuid" src="https://diegocarrasco.com/images/disc-manager-kde-uuid.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note down the UUID of the disk you want to mount.&lt;/strong&gt;&lt;/p&gt;
&lt;h4 id="2-edit-etcfstab"&gt;2. Edit &lt;code&gt;/etc/fstab&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Open the &lt;code&gt;/etc/fstab&lt;/code&gt; file with a text editor:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;nano&lt;span class="w"&gt; &lt;/span&gt;/etc/fstab
&lt;/pre&gt;&lt;/div&gt;

&lt;h4 id="3-add-an-entry-for-your-disk"&gt;3. Add an Entry for Your Disk&lt;/h4&gt;
&lt;p&gt;Add an entry for your disk using its UUID:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="nv"&gt;UUID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;your-uuid&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;/mnt/your-mount-point&lt;span class="w"&gt; &lt;/span&gt;ext4&lt;span class="w"&gt; &lt;/span&gt;defaults&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Replace &lt;code&gt;&amp;lt;your-uuid&amp;gt;&lt;/code&gt; with the actual UUID and &lt;code&gt;/mnt/your-mount-point&lt;/code&gt; with your desired mount point.&lt;/p&gt;
&lt;h4 id="4-understand-the-fstab-options-optional-most-of-the-time-the-defaults-will-work"&gt;4. Understand the &lt;code&gt;fstab&lt;/code&gt; Options (optional, most of the time the defaults will work)&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;defaults&lt;/code&gt; option&lt;/strong&gt;: A shorthand for standard mount options, including:&lt;/li&gt;
&lt;li&gt;&lt;code&gt;rw&lt;/code&gt; (read-write)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;suid&lt;/code&gt; (allow setuid bits)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dev&lt;/code&gt; (interpret device files)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;exec&lt;/code&gt; (allow execution of binaries)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;auto&lt;/code&gt; (can be mounted with &lt;code&gt;mount -a&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nouser&lt;/code&gt; (only root can mount)&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;async&lt;/code&gt; (asynchronous I/O)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;0&lt;/code&gt; (dump)&lt;/strong&gt;: This field is used by the dump utility to decide if the filesystem needs to be dumped. &lt;code&gt;0&lt;/code&gt; means ignore.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;2&lt;/code&gt; (pass)&lt;/strong&gt;: The order in which &lt;code&gt;fsck&lt;/code&gt; checks the filesystem for errors during boot. &lt;code&gt;0&lt;/code&gt; means don't check, &lt;code&gt;1&lt;/code&gt; is reserved for the root filesystem, and &lt;code&gt;2&lt;/code&gt; is for all other filesystems.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="5-create-mount-points"&gt;5. Create Mount Points&lt;/h4&gt;
&lt;p&gt;If you don't have the mount points already, create them:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;mkdir&lt;span class="w"&gt; &lt;/span&gt;-p&lt;span class="w"&gt; &lt;/span&gt;/mnt/your-mount-point
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;In my case I did already have them.&lt;/p&gt;
&lt;h4 id="6-mount-the-drives"&gt;6. Mount the Drives&lt;/h4&gt;
&lt;p&gt;Restart your computer or run the following command to mount the drives immediately:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;mount&lt;span class="w"&gt; &lt;/span&gt;-a
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;In my case I had to restart the system, as that was the easiest way to get everything normal again. &lt;/p&gt;
&lt;h2 id="side-notes"&gt;Side notes&lt;/h2&gt;
&lt;p&gt;As sidenote, some of the issues I had were:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nextcloud Desktop could not sync anymore, as it did not find the destination folder.&lt;/li&gt;
&lt;li&gt;The quick accesses on doplhin file manager were no longer correct.&lt;/li&gt;
&lt;li&gt;all my zoxide paths were broken.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That was enough for me to fix this, as I couldn't take it anymore.  :)&lt;/p&gt;
&lt;h3 id="some-references"&gt;Some References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://askubuntu.com/questions/164926/how-to-make-partitions-mount-at-startup"&gt;How to Make Partitions Mount at Startup - Ask Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/storage/bind-mounts/"&gt;Bind Mounts - Docker Docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://superuser.com/questions/1828141/default-mount-options-differ"&gt;Understanding Default Mount Options - Super User&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://unix.stackexchange.com/questions/386412/how-does-mount-determine-the-default-mounting-options-for-newly-attached-filesys"&gt;Mounting Filesystems - Unix Stack Exchange&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.alibabacloud.com/help/en/ecs/use-cases/to-mount-an-ext4-file-system-using-the-mount-command"&gt;Mounting an ext4 File System - Alibaba Cloud&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><category>bind volumes</category><category>fstab</category><category>linux-mint</category><category>mount points</category><category>ubuntu</category><guid>fix-incrementing-mount-names-ubuntu-linux-mint</guid><pubDate>Thu, 11 Jul 2024 07:00:00 GMT</pubDate></item></channel></rss>