简体   繁体   中英

Edit a file using grub

I did a really bad mistake in the rc.local boot file. I added a process with an infinte loop to the list in this file so that my arch linux distro is not able to boot completly because this process blocks the further boot procedure.

Is there a way to edit this rc.local file in grub so that I can remove this process?

Grub doesn't come with a text editor that I know of.

Your best solution here would probably be to boot using a liveCD for another distro (the Arch install media can do that), mount the drive upon which your file resides, and edit the file there. Then unmount and reboot normally.

尝试这样做https://www.maketecheasier.com/reset-root-password-linux/在 root 模式下你也可以编辑文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM