Jump to content











Photo
- - - - -

Get rid of the timeout countdown before booting the previous MBR


  • Please log in to reply
7 replies to this topic

#1 melshafei

melshafei
  • Members
  • 5 posts
  •  
    Egypt

Posted A week ago

I think me and system admins all around the world are very grateful to this forum, we owe our success in our career -I'm for sure- to the geniuses on this from like Steve(steve6375), Wonko and others.

 

I used Steve tutorial from rmprepusb.com website to achieves Grub4dos silent boot from the previous MBR

 

 

If you want to entirely suppress the 'Press F10 to start...' message and the Timeout message and just have the 3..2..1..0 countdown displayed, the following grub4dos commands will patch the disk that grub4dos is installed on, to suppress these messages (omit !BAT if you are typing this into the console):
 
!BAT
cat --locate="Press " --number=2 --replace=\0\0 (hd0)+20 > nul
cat --locate=" to start GRUB," --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="Timeout : " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="F10" --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="hot-key" --number=1 --replace=\0\0 (hd0)+20 > nul

 

and I had a very beautiful silent boot but I hope for more silent and seamless boot without the time-out countdown, I tried to achieve this by patching the grubinst.exe in a Hex Editor -which I'm very new to- but I failed, I gut the countdown  numbers written beside each other along the line (07 05 04 03 02 01 ).

 

I hop you can guide me and direct me to the right way to achieve this.



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 6943 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

Are you referring to the menu entry timeout?

Recent versions of grub4dos display this on the same line as the menu entry itself.

You can change the position and color of the timeout numbers using the command

setmenu --timeout=x=y=color

e.g.

setmenu --timeout=0=37=0

should set the timeout counter off the screen (line 37) 

 

If this is not what you mean, please explain how we can see this counter?

 

https://www.rmprepus...commands-primer


Edited by steve6375, A week ago.


#3 melshafei

melshafei
  • Members
  • 5 posts
  •  
    Egypt

Posted A week ago

I'm very happy and appreciative for your reply

 

I meant the countdown that you set when you install Grub4dos like this:

 

grubinst.exe --boot-prevmbr-first --time-out=7 --hot-key=0x1e61 --key-name=A  (hd0)



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 6943 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

So you want a timeout, but you don't want the countdown to be visible?



#5 melshafei

melshafei
  • Members
  • 5 posts
  •  
    Egypt

Posted A week ago

Yes, that's exactly what I'm hoping for.



#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 6943 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted A week ago

That is difficult to do because it uses a print_decimal call to print the number.

You cannot look for a string.

You could look for specific code bytes, but these may change from version to version.

 

You should be able to suppress ALL output by patching the print_message subroutine in the stage1 loader code...

cat --locate=\x2e\xac\x3c\x00\x75\xf6\xc3  --number=1 --replace=\xc3 (hd0)0+1 > nul


#7 melshafei

melshafei
  • Members
  • 5 posts
  •  
    Egypt

Posted A week ago

I'll try this right away and report back to you once I tested it



#8 melshafei

melshafei
  • Members
  • 5 posts
  •  
    Egypt

Posted A week ago

Yeah that works like a charm, l don't know how could I thank you enough?

I'm really depends on your tutorials, and tools like Easy2Boot on my day to day work tasks .






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users