initramfs - need to edit text file
Asked Answered
T

1

7

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.

Trilly answered 23/7, 2013 at 20:41 Comment(0)
L
8

Now there are options to do. I followed the below path:

  1. Make a temp directory.

  2. Mount the root filesystem (/) on the temp directory.

  3. Then chroot it.

    (initramfs) mkdir /mnt

    (initramfs) mount /dev/device-name /mnt

    (initramfs) chroot /mnt

    $ vi

Lexie answered 28/3, 2021 at 17:49 Comment(1)
here contain another make sense answer.Pages

© 2022 - 2024 — McMap. All rights reserved.