I'm stuck in initramfs on Linux Mint v15 and I need to edit /bin/grub/grub/cfg. I have the sda1 device mounted but not sure what to do to edit. I try exec ./usr/bin/vi and it throws a kernel panic.
Asked
Active
Viewed 1.3k times
1 Answers
5
Now there are options to do. I followed the below path:
Make a temp directory.
Mount the root filesystem (/) on the temp directory.
Then chroot it.
(initramfs) mkdir /mnt
(initramfs) mount /dev/device-name /mnt
(initramfs) chroot /mnt
$ vi

Ashfaq
- 1,054
- 8
- 13
-
1[here](https://superuser.com/questions/464071/how-can-i-edit-a-file-if-there-is-no-vi-vim-joe-etc) contain another make sense answer. – Adi Prasetyo May 10 '21 at 18:01