I'm running Ubuntu Server 20.04. While trying to mount a new external HDD I apparently made a mistake in the fstab entry, because when I rebooted it came up in recovery mode and the fstab file was empty. I tried the swap file recovery, but it was also blank. Now I have learned the lesson to make a backup of the fstab file (yes, I'm a newb), but I am in the position of needing to reconstruct it from scratch.
I have a 5 internal disks plus the external hdd. iirc one disk has the operating system and 4 disks are in RAID10, which are Nextcloud storage.
Any help would be super appreciated!
$ sudo blkid/dev/sda: UUID="36060c6a-66dd-6537-0e95-7c0327131d11" UUID_SUB="2b64bd37-558a-fca7-9356-7829cc57a0d3" LABEL="fundamentum:0" TYPE="linux_raid_member"/dev/sdd: UUID="36060c6a-66dd-6537-0e95-7c0327131d11" UUID_SUB="91d85576-b575-0ebc-537d-acb49177b6d7" LABEL="fundamentum:0" TYPE="linux_raid_member"/dev/sdc: UUID="36060c6a-66dd-6537-0e95-7c0327131d11" UUID_SUB="1f0f33d6-3aae-827b-00fc-be5e0f10af43" LABEL="fundamentum:0" TYPE="linux_raid_member"/dev/sdb: UUID="36060c6a-66dd-6537-0e95-7c0327131d11" UUID_SUB="3d7beff9-c1ed-2668-1d5e-20ebdcc9814a" LABEL="fundamentum:0" TYPE="linux_raid_member"/dev/sde2: UUID="4b71a879-069a-492c-8896-4139b16a3be2" TYPE="ext4" PARTUUID="43f49c4c-9dce-4d44-9511-3ac40cdf262e"/dev/sde3: UUID="8OyMGT-i2UZ-uacn-Wj2q-o9EL-uyPo-fdq2R0" TYPE="LVM2_member" PARTUUID="9b572c69-6890-4bfa-b90f-1846100e2544"/dev/md0: UUID="4c9b4249-d8f6-4db6-8453-71bd72911b75" TYPE="ext4"/dev/mapper/ubuntu--vg-ubuntu--lv: UUID="fd4d6403-28e8-421e-b778-9088fdec9899" TYPE="ext4"/dev/loop0: TYPE="squashfs"/dev/loop1: TYPE="squashfs"/dev/loop2: TYPE="squashfs"/dev/loop3: TYPE="squashfs"/dev/loop4: TYPE="squashfs"/dev/loop5: TYPE="squashfs"/dev/loop6: TYPE="squashfs"/dev/loop7: TYPE="squashfs"/dev/sdf2: LABEL="Backup" UUID="602F-383D" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="69c4daf5-4871-42e4-a78c-690d290ba131"/dev/loop8: TYPE="squashfs"/dev/sde1: PARTUUID="3d57f8b8-b2ff-4c9e-96ba-aff03c60f853"/dev/sdf1: PARTLABEL="Microsoft reserved partition" PARTUUID="7904ae49-180d-468d-a53e-4513c01950dc"
$ cat /etc/mtabsysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0udev /dev devtmpfs rw,nosuid,noexec,relatime,size=16398900k,nr_inodes=4099725,mode=755 0 0devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=3288568k,mode=755 0 0/dev/mapper/ubuntu--vg-ubuntu--lv / ext4 ro,relatime 0 0securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18440 0 0hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0/dev/loop0 /snap/lxd/19188 squashfs ro,nodev,relatime 0 0/dev/loop1 /snap/nextcloud/26119 squashfs ro,nodev,relatime 0 0/dev/loop2 /snap/core18/1944 squashfs ro,nodev,relatime 0 0/dev/loop3 /snap/core18/1988 squashfs ro,nodev,relatime 0 0/dev/loop4 /snap/core20/904 squashfs ro,nodev,relatime 0 0/dev/loop5 /snap/nextcloud/26049 squashfs ro,nodev,relatime 0 0/dev/loop6 /snap/snapd/10707 squashfs ro,nodev,relatime 0 0/dev/loop8 /snap/snapd/11036 squashfs ro,nodev,relatime 0 0/dev/loop7 /snap/lxd/19032 squashfs ro,nodev,relatime 0 0tmpfs /run/snapd/ns tmpfs rw,nosuid,nodev,noexec,relatime,size=3288568k,mode=755 0 0