Problem Solved!
So, I ended up plugging the boot drive to a windows pc. In windows, in order to read and write linux partition files you need Linux File Systems for Windows by Paragon Software. After installing the software I edited the file. Unfortunately after editing boot drive didn't boot. I started recovery from a usb drive and reinstalled Grub loader and it worked!
Thanks for advice!