出现minimal bash-like...的问题如何解决?

本文介绍了如何解决在卸载或安装双系统后遇到的引导程序问题。当引导界面出现问题时,可以通过exit命令进入完好系统,使用easyuefi删除不需要的引导。若安装新系统时卡住,需手动引导,包括识别磁盘分区,设置启动参数等步骤。文章还分析了两种情况的区别及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2021.9.4写下此文,以备查阅。

问题如图:

 一般出现这个界面即为引导程序出现问题,根据下面两种情况看待:

  1. 卸载双系统之一(比如之前是win+deepin双系统,现在卸载了deepin系统)重启时出现。
  2. 安装新的双系统时出现。

对应的解决办法:

  1. 这种很简单,因为此时win系统是完好无损的,直接输入exit回车就好,进入win系统后下载easyuefi,删除不需要的引导程序。
  2. 如果是安装新的双系统时候出现,那除了长按电源键强制重启,就只能手动引导启动了,以下是手动引导的步骤:
  • 输入ls,回车,此时可以看到列出了一些磁盘分区,每一对括号代表一个磁盘分区。
  • 输入ls 磁盘分区/boot/grub,比如:ls (hd0,gpt1)/boot/grub,回车。(注意ls后面有空格,一定不能少)
  • 重复上一步,将每个磁盘分区都执行一遍,直到你看到哪个磁盘下面找到了同时含有.img和.cfg文件的时候,记住这个分区(我的是(cd0),下面就以它为例)。
  • 输入set root=(cd0),回车,注意等号后面是上述引导文件所在的分区号;
  • 输入set prefix=(cd0)/boot/grub,回车;
  • 输入normal,引导完成,回车即可进入系统。

 

 

下面我试图分析一下二者的区别,有兴趣看看,没兴趣划走。为了方便表述,我将win以外的系统称为第二系统。

由第一种情况引发的话,很大概率是由于该引导程序是由第二系统创建的,而且该引导程序默认优先启动第二系统,但是由于第二系统已经被删除,而引导程序还在,这就导致引导程序找不到第二系统,自然也就启动失败卡在这里,那么我们exit退出并选择win系统即可启动win系统。

若是由第二种情况引发的话,那就代表用的是windows的引导程序,但是它又找不到引导文件来启动第二系统的安装,所以卡在了这里,而且用exit命令根本无效,我猜测是因为windows的引导程序开始引导第二系统,到了这里找不到引导文件继续,又没办法退出,所以我说除了长按电源键重启还真没有什么办法,不过我没试过shutdown命令,不知道能不能用shutdown命令重启。

### Minimal BASH-like Line Editing Support in Shell Environments Minimal BASH-like line editing provides users with a set of keyboard shortcuts and commands that facilitate easier command-line interaction within shell environments. This feature allows for more efficient navigation, editing, and recall of previous commands without the need to fully rely on external tools or complex configurations. In many Unix-like operating systems, including Linux distributions and macOS, shells such as Bash (Bourne Again SHell), Zsh (Z-shell), and others offer built-in support for this functionality through readline libraries[^1]. These libraries enable features like: - **Command History Navigation**: Using arrow keys (`↑` `↓`) to scroll through previously entered commands. - **Text Movement Shortcuts**: Utilizing Ctrl+A (move cursor to beginning of line) and Ctrl+E (move cursor to end of line). - **Word-based Editing**: Employing Alt+B (move backward one word) and Alt+F (move forward one word). For demonstration purposes, consider an example where a user wants to edit a long command string interactively using these minimal BASH-like keybindings inside any compatible terminal session: ```bash $ python manage.py runserver --settings=myproject.settings.local ``` If the user needs to modify part of this command quickly, instead of retyping everything from scratch, they can use combinations mentioned above to navigate around efficiently before pressing Enter again to execute it anew after modifications are done. Additionally, some advanced shells provide even richer sets of functionalities beyond basic ones provided by default settings; however, those enhancements usually require additional configuration steps not covered under 'minimal' scope here discussed[^2].
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值