0

In my Ubuntu installation I changed something through
sudoedit /etc/default/grub
and now the installation won't boot anymore.

I am on a live usb with Ubuntu now, and it seems to me the other disk is /dev/sda1 and mounted on cdrom, but Im not sure how to get into the configurations that I changed.

When I type sudoedit /etc/default/grub I get into a file that doesnt have the changes I made (so I assume it is not the file I am looking for).

If I cd to etc/default/ and then nano grub.cfg I get to a file that looks very different and doesn't have the same configurations.

How do I get to the grub configurations from the other disk?

(I have a single Ubuntu 18.04.03 install on a Dell XPS computer with an encrypted disk).

Some more information:

lsblk returns:

sda      8:0    1   7.5G  0 disk /cdrom
├─sda1   8:1    1     2G  0 part 
└─sda2   8:2    1   2.4M  0 part

and cat proc/mounts/ returns amongst other:
/dev/sda /cdrom iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048 0 0

sudo mount /dev/sda1 /media/sda1_test returns:
mount: /media/sda1_test: /dev/sda1 already mounted or mount point busy.

if I cd to media/sda1_test and ls it seems empty

If I cd to cdrom, ls returns:
EFI README.diskdefines boot casper dists install isolinux md5sum.txt pics pool preseed ubuntu

And I tried to find the grub file by sudo find / -name 'grub*'
which returns amongst other:

/boot/grub
/usr/lib/grub
/rofs/usr/lib/grub
/rofs/var/lib/grub

I think the issue is that I am not in the right disk at all, since the disk is encrypted and I didn't get a prompt for a password.

and
sudo find / -type d -wholename "etc/default" which returns:

find: ‘/proc/1593/task/1593/net’: Invalid argument
find: ‘/proc/1593/net’: Invalid argument
find: ‘/proc/8949/task/8949/net’: Invalid argument
find: ‘/proc/8949/net’: Invalid argument
find: ‘/run/user/999/gvfs’: Permission denied
Kemeia
  • 101

0 Answers0