Minimal Bash-like line editing is supported

If it doesn't relate to Debian, but you still want to share it, please do it here

Minimal Bash-like line editing is supported

Postby arianpranav » 2020-08-02 04:48

While installing Debian along with Windows i usually take below route if i want fresh Debian at any point of time:
Open Windows
Open Disk Management
Delete Linux Partitions (usually two : swap about size of RAM and native as you provided = sum of unallocated space left free where you installed linux)
Reboot With bootable Debian disk and install fresh

Though this works fine most of the time but at times the GRUB installer fails to start with error : Minimal Bash-like line editing is supported stops everything and you are stuck.

For above issue i tried and read couple of methods but below worked fine for me with sure shot :
Login windows
Run Diskpart
Type: list disk
Type: select disk 0 (the disk with boot partition usually first in list , please check)
Type: list partition
Type : select partition 2 (usually second partition around 100 mb as type system)
Type: assign letter=x

Now open cmd as admin
Type: x:
Type: Dir
Type: cd EFI
Type: Dir
Type: rd debian /s (delete any linux folders like Ubuntu,Fedora or Debian)

Please note i also tried BootRec /fixmbr and windows repair and windows re-install etc. which did not fixed above issue so in my case above two sets of instructions solved it easily. Hope this helps someone who is gated due to above problem and looking for quick fix.
Last edited by emariz on 2020-08-05 00:16, edited 1 time in total.
Reason: Thread closed by original poster's request.
arianpranav
 
Posts: 13
Joined: 2020-07-30 11:08

Re: Minimal Bash-like line editing is supported

Postby p.H » 2020-08-02 12:24

What do you mean by "GRUB installer" ?

To me, grub-installer is the Debian installer component in charge of installing GRUB.
But the above message cannot be displayed by grub-installer. It is displayed at boot time by the GRUB core image when failing to load files required to display the boot menu. The cause is likely to be either :
- the computer booted on the internal drive (now containing an incomplete GRUB) instead of the installation media
- or the installation media was not properly prepared
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Re: Minimal Bash-like line editing is supported

Postby sunrat » 2020-08-02 22:08

Could a mod move this to off-topic? It is in no way a recommended way to repair grub in Linux. It shows Windows tools only and deleting contents from EFI is like chopping your head off to remove a pimple.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3125
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Minimal Bash-like line editing is supported

Postby arianpranav » 2020-08-03 18:12

p.H wrote:What do you mean by "GRUB installer" ?

To me, grub-installer is the Debian installer component in charge of installing GRUB.
But the above message cannot be displayed by grub-installer. It is displayed at boot time by the GRUB core image when failing to load files required to display the boot menu. The cause is likely to be either :
- the computer booted on the internal drive (now containing an incomplete GRUB) instead of the installation media
- or the installation media was not properly prepared


Yes the message is displayed when it fails to load the required files if the drive with Linux is removed or it is not properly installed. The message comes when one try to install the Debian or any other Linux Distro on dual boot system.
arianpranav
 
Posts: 13
Joined: 2020-07-30 11:08

Re: Minimal Bash-like line editing is supported

Postby arianpranav » 2020-08-03 18:15

sunrat wrote:Could a mod move this to off-topic? It is in no way a recommended way to repair grub in Linux. It shows Windows tools only and deleting contents from EFI is like chopping your head off to remove a pimple.


It is not grub repair to be precise, further deleting contents from EFI is only option if you want to install any Linux Distro in that machine in future, please suggest any better approach if you have any.
arianpranav
 
Posts: 13
Joined: 2020-07-30 11:08

Re: Minimal Bash-like line editing is supported

Postby cuckooflew » 2020-08-03 18:34

I don't use grub and don't use windows, that is the best approach, in my opinion,...But even if I did use Grub, none of this would do me any good, it all requires "MS windows" tools,... so Yes, I do agree , it belongs in off topic, it is not at all a "How to" that supports Linux or Debian,
==== edit ===
IMPORTANT: IF you are new to Linux or Debian, DO NOT follow this guide, it could leave you with more problems the you started with
Ask us on the forum, and give a good description of exactly what problem you have, be it grub repair or other,... DO NOT:
Delete Linux Partitions (usually two : swap about size of RAM and native as you provided = sum of unallocated space left free where you installed linux)

DO NOT, believe this:
Though this works fine most of the time but at times the GRUB installer fails to start with error : Minimal Bash-like line editing is supported stops everything and you are stuck.
You are not "stuck", there is a way solve that error, exactly how will depend on many things.
DO NOT: Delete anything in the EFI directory, with out consulting advice from knowledgeable Linux users, obviously any one silly enough to be using MS windows, will not be qualified to give any instructions for a Linux or Debian system.
Last edited by cuckooflew on 2020-08-03 18:50, edited 1 time in total.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 546
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Minimal Bash-like line editing is supported

Postby Head_on_a_Stick » 2020-08-03 18:39

arianpranav wrote:please suggest any better approach

Use efibootmgr(8) to clear unwanted NVRAM entries (or bcdedit from Windows).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimal Bash-like line editing is supported

Postby dilberts_left_nut » 2020-08-03 18:46

sunrat wrote:Could a mod move this to off-topic? It is in no way a recommended way to repair grub in Linux. It shows Windows tools only and deleting contents from EFI is like chopping your head off to remove a pimple.

Agreed - done.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5063
Joined: 2009-10-05 07:54
Location: enzed

Re: Minimal Bash-like line editing is supported

Postby cuckooflew » 2020-08-03 18:51

Thank you
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 546
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable