Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Minimal Bash-like line editing is supported

Off-Topic discussions about science, technology, and non Debian specific topics.
Locked
Message
Author
arianpranav
Posts: 13
Joined: 2020-07-30 11:08

Minimal Bash-like line editing is supported

#1 Post by arianpranav »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Minimal Bash-like line editing is supported

#2 Post by p.H »

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

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Minimal Bash-like line editing is supported

#3 Post by sunrat »

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!

arianpranav
Posts: 13
Joined: 2020-07-30 11:08

Re: Minimal Bash-like line editing is supported

#4 Post by arianpranav »

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

#5 Post by arianpranav »

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.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Minimal Bash-like line editing is supported

#6 Post by cuckooflew »

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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Minimal Bash-like line editing is supported

#7 Post by Head_on_a_Stick »

arianpranav wrote:please suggest any better approach
Use efibootmgr(8) to clear unwanted NVRAM entries (or bcdedit from Windows).
deadbang

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Minimal Bash-like line editing is supported

#8 Post by dilberts_left_nut »

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...

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Minimal Bash-like line editing is supported

#9 Post by cuckooflew »

Thank you
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

Locked