Moved my media server over to a new case last nigth and ever since it will only boot into emergency mode. I am also getting "failed to activate swap /swapfile" error as posted here. I have a 120 GB M2 SSD as the system drive with 2 partitions. I also have a HDD that has my media files on it.


Here is output of cat /etc/fstab - I know it's wrong - but it is in read only mode. I also don't know how to find the UUID of the extra HDD

cat /etc/fstab

I know there is likely more info needed - please let me know

Edited /etc/fstab: Edited /etc/fstab

Updated lsblk: updated lsblk

Updated fstab: Updated fstab


You can use

lsblk -f

to find the UUID (it will list all partitions) and

mount -o remount,rw /

to mount the root partition in read/write mode.

Here an example for a correct fstab:

# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
PARTLABEL=UbuntuStudio1804      /                   ext4    errors=remount-ro    0       1
PARTLABEL=Swap                  none                swap    sw                   0       0
PARTLABEL=ESP1                  /boot/efi           vfat    umask=0077           0       1
PARTLABEL=DATA                  /media/DATA         ext4    rw,noexec            0       2
PARTLABEL=data                  /media/data         ext4    rw,noexec            0       2
PARTLABEL=StudioBackUp          /media/backup       ext4    rw,noexec            0       2
/dev/disk/by-label/archiv       /media/archiv       ext4    rw,noexec,nofail     0       0

I use PARTLABEL instead of UUID because this is better readable, the important thing I want to show you here is the order of fstab-lines, that's relevant, fstab-lines are processed in line-order, so you must mount / first! Also note that lines starting with a # are comments and not processed.

  • Yes the lsblk only shows the sda drive – Jeff Jul 20 '19 at 1:44
  • Should there be any output for the mount line? – Jeff Jul 20 '19 at 1:45
  • OK I added the edited /etc/fstab in original post. Should I jsut take out the /dev/sdc1 since it is not showing in lsblk? – Jeff Jul 20 '19 at 1:52
  • internal HDD x xx – Jeff Jul 20 '19 at 2:04
  • Still boots tod emergency mode - Ctrl-D doesn't do anything – Jeff Jul 20 '19 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.