Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Mounting a drive is chaotic with the two NVMe SSD drives

$
0
0

My new computer has two NVMe SSD chips. Both are on the motherboard (no PCIe cards involved). On one of them there's the operating system and the other is for large data storage. For that, I wrote this on /etc/fstab:

/dev/nvme1n1p1    /mnt/data    auto    defaults    0    1

However, which of them is nvme0n1p1 and which is nvme1n1p1? That's totally random, and potentially changes on every restart of my system.

Because of that fstab line, some times the right drive is mounted on /mnt/data, and some times the system drive. So to fix this, I have to manually go to fstab and change the numbers from 0 to 1 or the opposite, then

sudo umount /mnt/data

then

sudo mount -a

And that fixes the problem. But I have to do this every now and then MANUALLY. This makes it impossible to associate anything on from the data drive with startup, because I'll never know which of them will be mounted on /mnt/data.

What do you think? Where is this problem coming from?

I'm using Ubuntu 18.04.


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>