Your fstab may contain the labels your OS gave to your partitions or drives, and these can be fickle. A change or update can swap them around or change their names entirely. A way to make sure this doesn't happen is to give them their UUID designations (Universally Unique Identifier). Open up a terminal, and type:
$ sudo blkid
This will output something like this:
/dev/sda1: UUID="c8646246-7e25-4ca6-a0f0-ce390a054765" TYPE="ext4"
/dev/sda2: UUID="3c612e92-477a-48f9-91a4-e886c95dbf39" TYPE="ext4"
/dev/sda3: UUID="93e3e59a-26f9-420f-af75-82ca3d75d369" TYPE="swap"
/dev/sda4: UUID="7eac36b1-2356-4657-be14-6dda81dfb46d" TYPE="ext4"
The long seemingly random strings after "UUID=" are unique and unchanging on your system, hence the stability that I mentioned earlier. You may see something different at the beggining, but that's ok because you will see the same thing in your fstab. Now, open a new terminal window but don't close this one. in the new terminal type this:
$ sudo nano /etc/fstab
Now in this window find the line that has "/dev/sda1" in it (or whatever you got in the first window). Replace the whole "filesystem" section of that line in fstab with the matching UUID from the blkid command. Do this for each disk/partition you have. Then ctrl+o to save, ctrl+x to exit nano, and done.
No comments:
Post a Comment