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.
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
-
- Posts: 13
- Joined: 2020-07-30 11:08
Minimal Bash-like line editing is supported
Last edited by emariz on 2020-08-05 00:16, edited 1 time in total.
Reason: Thread closed by original poster's request.
Reason: Thread closed by original poster's request.
-
- 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
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
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
- sunrat
- Administrator
- Posts: 6495
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 476 times
Re: Minimal Bash-like line editing is supported
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!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 13
- Joined: 2020-07-30 11:08
Re: Minimal Bash-like line editing is supported
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.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
-
- Posts: 13
- Joined: 2020-07-30 11:08
Re: Minimal Bash-like line editing is supported
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.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.
-
- 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
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:
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.
==== 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:
DO NOT, believe this: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)
You are not "stuck", there is a way solve that error, exactly how will depend on many things.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.
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!
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!
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Minimal Bash-like line editing is supported
Use efibootmgr(8) to clear unwanted NVRAM entries (or bcdedit from Windows).arianpranav wrote:please suggest any better approach
deadbang
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: Minimal Bash-like line editing is supported
Agreed - done.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.
AdrianTM wrote:There's no hacker in my grandma...
-
- 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
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!
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!