I am unable to boot my ubuntu. The day before the problem, I tried to mount an external hard disk drive (named: Seagate Expansion Drive
) and I edited the /etc/fstab
.
After that, I turned it off. The next day, I could not boot my device.
My /etc/fstab
file content is (note: #
means a number or letter):
/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).## <file system> <mount point> <type> <options> <dump> <pass># / was on /dev/nvme0n1p2 during installationUUID=####-####-####-####-#### / ext4 errors=remount-ro 0 1# /boot/efi was on /dev/nvme0n1p1 during installationUUID=####-#### /boot/efi vfat umask=0077 0 1/swapfile none swap sw 0 0UUID=####-####-####-####-#### /media/e/Seagate Expansion Drive auto nosuid,nodev,nofail,x-gvfs-show 0 0
The following are the steps I did so far:
I did hardware test (Dell laptop) and the device passed all the hardware tests.
When I boot the device shows rescue mood. Based on some research, I tried to type:
sudo blkid
And this is what I see (redacted some numbers for privacy):
Then I types:
sudo -H gedit /etc/fstab
Then I gave up, and to save my files, I booted from Ubuntu live USB. First, I had no permission to read the device's hard drive from the live ubuntu CD. So I executed this command to give everyone all permissions:
chmod ugo+rwx [home/myuser]
Then I was able to copy my files to an external hard drive. I copied them. I turned off my device. I turned it on and repeated the previous two command. But now I am faced with permission issue. When I type:
sudo blkid
Or
sudo -H gedit /etc/fstab
I get this:
From all the above:
- Can you help me identify if
etc/fstab
contains something wrong? - How to fix the permission issue? I am unable to execute commands from the rescue mood, seemingly when I did something wrong with the permissions from the Ubuntu live USB.