Topic: Q about Silent Grub4Dos  (Read 4941 times)

Q about Silent Grub4Dos
« on: February 14, 2013, 08:16:27 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
...
« Last Edit: February 20, 2017, 06:10:38 PM by Atari800xl »

Re: Q about Silent Grub4Dos
« Reply #1 on: February 14, 2013, 09:44:25 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Several have already expressed this request on these messages at startup (eg: hangup means you have a problematic config...) http://code.google.com/p/grub4dos-chenall/issues/detail?id=95
I do not know more, I just took here a trick of steve6375, who is a good specialist.
A new command at the beginning of menu.lst (or other) would be a good thing rather than patch grldr.

I *know* they serve a purpose, and it's not very wise to remove those info lines, but of course you can also edit back your menu.lst...
Yep, indeed, it is not very wise and there is a good reason if they have coded these messages, so to remain cautious, I put the options disabled by default.



Quote from: Steve6375
Patch grub4dos to be silent  on bootup.
 
The following code at the start of a menu.lst will patch your USB boot device  (assumes it is hd0 when booted) so that there are no startup messages.
Once it has been run once, there is no need to keep the code in the menu.lst file. If you prefer you can just run it once whenever you make a new stick or replace the grldr file with a newer version.
 
Menu.lst
Code: [Select]
# Patch hd0 and the grldr file to be silent on bootup
/patchg4d.g4b
 

patchg4d.g4b
Code: [Select]
!BAT
#patch to get rid of grub4dos startup text!
#first check if already done and exit if it has!
cat --locate="Running menu" --number=1  ()/grldr  > nul || goto :EOF

cat --locate="Try (hd0,0 )" --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="EXT2: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="NTFS5: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="FAT32: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="FAT16: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="FAT12: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="non-MS: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="skip " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="Extended: " --number=1 --replace=\0\0 (hd0)+20 > nul
cat --locate="invalid or null" --number=1 --replace=\0\0 (hd0)+20 > nul

cat --locate="Initialize var" --number=1 --replace=\0\0 ()/grldr > nul
cat --locate="Starting cmain" --number=1 --replace=\0\0 ()/grldr > nul
cat --locate="Running menu" --number=1 --replace=\0\0 ()/grldr > nul

#optional - reboot to make patch effective...
reboot


in "Create ISO" and "Copy to usb", only the grldr part is done by using gsar.

:cheers: 

Re: Q about Silent Grub4Dos
« Reply #2 on: February 14, 2013, 11:57:10 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
ChrisR, thanks for your reply, very informative! (Sorry to take up your valuable time!)

Great work on Steve6375's part, I will keep this message in my "archives" as a reference.

I believe I'm not quite comfortable enough with patching etc. to make this a permanent solution for me. Besides, I also use Grub4Dos on my HD's, so I'd still have the "Try..." prompts there (I would never use patching on my HD's, again because I'm not experienced enough in that area).

Still, your reply is very much appreciated, now I know I'm not the only one who would like to see a "silent" Grub4Dos option. As I said, I *understand* why there isn't, but I believe it would just look a little more "professional"/ streamlined without the prompts.

But on the other hand I know that it really isn't a "problem" at all, WinPESE is a wonderful system that leaves hardly anything to be desired....



Re: Q about Silent Grub4Dos
« Reply #3 on: February 15, 2013, 08:22:03 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
...
« Last Edit: February 20, 2017, 06:12:35 PM by Atari800xl »

Re: Q about Silent Grub4Dos
« Reply #4 on: February 15, 2013, 09:34:27 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Wow, I do not control well the subject
cat --locate="Try (hd0,0 )" --number=1 --replace=\0\0 (hd0)+20 > nul
for other partitions!
I risk to say wrong things, it's better that you ask someone who knows.
With a post in "remove uneccessary messages on loading grldr" topics, started by fuwi.

for the grldr part, I believe that there is no worries with the patch until they change, improve management message at startup in a future version.
Since you are in the subject, maybe you can post a message on Issue 95, ably written to TinyBit, if you feel it  :wink:
With user's vision of these messages displayed long enough to be read on some computers and which leaves to think that there is a problem.

:cheers:

Re: Q about Silent Grub4Dos
« Reply #5 on: February 15, 2013, 09:53:00 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
...
« Last Edit: February 20, 2017, 06:12:07 PM by Atari800xl »

Re: Q about Silent Grub4Dos
« Reply #6 on: February 15, 2013, 10:08:09 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
...
« Last Edit: February 20, 2017, 06:11:46 PM by Atari800xl »

Re: Q about Silent Grub4Dos
« Reply #7 on: February 15, 2013, 12:21:03 PM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
...
« Last Edit: February 20, 2017, 06:11:31 PM by Atari800xl »

Re: Q about Silent Grub4Dos
« Reply #8 on: February 15, 2013, 10:37:21 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Just a reminder,

There is bbs forum dedicated for Grub4dos Chenall development, where Frontend Development taking place  :thumbsup:
http://bbs.wuyou.com/forumdisplay.php?fid=60
Aside catching development,
I am sure You can find a lot more interesting usages, when you spend time on reading, if one have high interest and wide time  :cool:

also don't forget Google Translator Bookmarklet (advice, use "English") on your browser-bar  :wink:
http://translate.google.com/translate_buttons

See you
:ymca:

 

Powered by EzPortal