Hi again, @fixit7
You wrote:
You say that the "The fstab is messed up". Maybe you're saying that because you got the following warning when running sudo findmnt --verify
: "[W] non-bind mount source /swap.img is a directory or regular file" ? If that's the case, I believe that you may proceed even with that particular warning (I usually use a swap partition, instead of a swap file, so I don't get that warning).
Nice. That's great
OK. So, to do that, I would:
1. - Unmount the /media/andrew/26c126a6-290a-4019-a32b-f6bb290663ea
in case it's mounted:
cd
sudo umount -v /media/andrew/26c126a6-290a-4019-a32b-f6bb290663ea
2. - Rename /media/andrew/26c126a6-290a-4019-a32b-f6bb290663ea
to, for instance, /media/andrew/disk2
:
sudo mv -v /media/andrew/26c126a6-290a-4019-a32b-f6bb290663ea /media/andrew/disk2
3. - Change the ownership of the /media/andrew
and the /media/andrew/disk2
directories so those directories get owned by the user andrew
(based on your last message, it seems that andrew
is the user you use in this new installation). To do that, you should use the following two commands (in sequence):
sudo chown -v andrew /media/andrew
sudo chown -v andrew /media/andrew/disk2
4. - Change the content of the /etc/fstab
file to add the filesystem mounted in the /media/andrew/disk2
directory to the list of filesystems that should be mounted at boot. To do that, I would :
4.1. - First, create a backup of the existing /etc/fstab
file:
sudo cp -piv /etc/fstab /etc/fstab.ORIG.$(date +%Y-%m-%d)
4.2. - Append a line with the desired mount to the /etc/fstab
file. I believe you can enter the following command to do that:
sudo bash -c 'echo "UUID=af83b28c-743c-4496-bce3-f94f0977a608 /media/andrew/disk2 ext4 defaults 0 2" >> /etc/fstab'
4.3. - Verify that the new /etc/fstab
is good. It should be good if a sudo findmnt --verify
returns only the following warning (and no other warnings or errors):
$ sudo findmnt --verify
[W] non-bind mount source /swap.img is a directory or regular file
[W] your fstab has been modified, but systemd still uses the old version;
use 'systemctl daemon-reload' to reload
0 parse errors, 0 errors, 2 warnings
4.4. - Assuming the output of sudo findmnt --verify
was as described above, let's now make systemd use the new version of the /etc/fstab
:
sudo systemctl daemon-reload
4.5 - Finally, let's mount all the fillesystems:
sudo mount -av
I hope this helps Please, keep us posted!