Basically, the goal is to install the grub4dos loader to the MBR of the usb drive and copy its program/configuration files to the drive's root. To do this, you download grub4dos (the program) and grubinst (a utility to add the program's loader to a MBR).
Happy new year to everybody !
I'm trying to improve a bit "grubinst.exe" and "grubinst_gui.exe".
It's my first time I'm modifying other programmer(s)'s source code. I hope Bean, Tinybit and Chenall won't be upset
What I did so far:
grubinst_gui.exe:
1. The window is now a DS_MODALFRAME instead of a WS_POPUP, meaning it can't be resized anymore. Which it's a good thing, because resizing doesn't help the user, on the contrary.
2. In the Options groupbox I added 2 checkboxes: "Skip MBR test" and "Silent boot". The first one is adding "--skip-mbr-test" to the command line, the second is adding "--silent-boot".
3. If Device "File" is used, it is adding quotes to the path to file in the command line. This way you can use even a file name with spaces in it.
4. When the user is clicking on the first Refresh button, the Part List combobox is cleared.
5. When the user is choosing a disk in the first combobox, the Part list combobox is not just cleared; the disk will be scanned for partitions and the list will be added to that combobox.
Now I have to actually modify the grub4dos MBR in the code.
2 ways:
1. In grubinst.c I can search for the messages in the grub_mbr variable and replace each of their chars with \0.
This is easy to implement but it is not so professional and the result will not be 100% complete.
2. Modify the asm code from grldrstart.S to not display those messages when the 4th bit in 0x80 byte is 1 (or to display the messages when the 4th bit in 0x80 byte is 0).
But this is not that easy.
From what I understand the compilation is done this way (it's simplified a bit):
1. grldrstart.S + ntfsbs.S >> grldr.mbr
2. bin2h.c + grldr.mbr >> grub_mbr.h
3. grubinst.c + grub_mbr.h >> grubinst.exe
Adding extra code to grldrstart.S means that grub_mbr variable will increase size and all bytes after the extra code will be shifted. Meaning probably I have to "resynchronize" it in grubinst.c
Also, since I'm not an assembler pro, I don't know how to modify this to work for the 4th bit:
This error appears because grubinst_gui uses the old WinExec function instead of a newer one like CreateProcess(W).
Only CreateProcess(W) is able to start another process with the same security context as the calling proceess.
Btw, in VMUB I use CreateProcessW...
I will try to implement it also in grubinst_gui.
It will take some time to figure out how to properly modify grldrstart.S so, for the moment, I implemented the first way. Btw, it wasn't so easy as I thought...
Another issue: I'm thinking of adding a new switch "--force-standard-mbr". Or at least to try to improve the filesystem type detection in get_fstype function.
Because it's not working properly. For example on all my USB flash drives and on the mounted virtual drives grubinst is saying "Unknown image type". No matter which combination of parameters I try, can't install grub4dos.
Unfortunately, RMPrepUSB is no different...
However, if in code I force the use of a standard MBR, all is fine. Grub4dos finally boots and the drives show no error.
I will take a look at the code. Just post it here.
But right now I'm thinking at a way to make grldr read the MBR byte where the options are stored (including --silent-boot) and not show those unnecessary messages on screen. The problem is I have to make it work in any situation: current MBR style + new grldr, new MBR style + current grldr, your current MBR style + new grldr and so on.
Plus I have to take into account the differences between grub4dos versions too...
Because of these I have chosen to modify grub_mbr in grubinst instead of modifying grldrstart.S (for the time being).
grubinst.exe is an executable file that is part of the EaseUS Partition Master 10.0 program developed by EaseUS. The software is usually about 155.4 MB in size.
The .exe extension of a file name displays an executable file. In some cases, executable files can damage your computer. Please read the following to decide for yourself whether the grubinst.exe file on your computer is a virus or trojan horse that you should delete, or whether it is a valid Windows operating system file or a reliable application.
The first thing that will help you determine if a particular file is a legitimate Windows process or a virus, is the location of the executable itself. For example, a process like grubinst.exe should run from C:\Program Files\easeus\easeus partition master 10.0\bin\epm0.exe and not elsewhere.
If you suspect that you may be infected with a virus, then you must attempt to fix it immediately. To delete the grubinst.exe virus, you should download and install a full security application like Malwarebytes. Note that not all tools can detect every type of malware, so you may need to try several options before you're successful.
In addition, the functionality of the virus may itself affect the deletion of grubinst.exe. In this case, you must enable Safe Mode with Networking - a secure environment that disables most processes and loads only the most required services and drivers. When there, you can run a security program and a complete system analysis.
According to various sources online, 7% of people remove this file, so it may be harmless, but it is recommended that you check the trustworthiness of this executable yourself to determine if it is safe or a virus. The best diagnosis for these suspicious files is a complete system analysis with Fortect. If the file is classified as malicious, these applications will also delete grubinst.exe and get rid of the associated malware.
However, if it is not a virus and you need to delete grubinst.exe, then you can uninstall EaseUS Partition Master 10.0 from your computer using its uninstaller, which should be located at: "C:\Program Files\EaseUS\EaseUS Partition Master 10.0\unins000.exe". If you cannot find it's uninstaller, then you may need to uninstall EaseUS Partition Master 10.0 to completely delete grubinst.exe. You can use the Add/Remove Program function in the Windows Control Panel.
These .exe error messages can occur during the installation of a program, during the execution of it's associate software program, EaseUS Partition Master 10.0, during the startup or shutdown of Windows, or even during the installation of the Windows operating system. Keeping a record of when and where your grubinst.exe error occurs is important information when it comes to troubleshooting.
To help you analyze the grubinst.exe process on your computer, you may find the following programs useful: Security Task Manager displays all Windows tasks running, including built-in hidden processes such as keyboard and browser monitoring or auto-start entries. A single security risk rating indicates the probability that it is spyware, malware or a potential Trojan horse. This anti-virus detects and removes spyware, adware, Trojans, keyloggers, malware and trackers from your hard disk.
It is not recommended to download replacement exe files from any download sites, as these may themselves contain viruses etc. If you need to download or reinstall grubinst.exe, then we recommend that you reinstall the main application associated with it EaseUS Partition Master 10.0.
Hey, I just bought a Patriot X-Mini II and for some reason it wont let me install grub with the grubinst_gui program. I tried with a different [small] flash drive and it worked perfectly, but I can't get my new drive to boot from usb. I noticed when I try to install to the x-mini, it automatically checks the "Floppy Image" box. I tried with it both on and off, and it still gives me the same error when I try to boot from it [Disk error]. I also noticed that where it lets you choose the part [Parts List], it only has "Whole Disk (FAT32)" when on the other drive it had "Whole Disk (MBR)" and then the drive partition. Does anyone know how I could get this drive bootable?
hi,i have been using ur boot cd for a long time.tried to find official forums before,today i stumbled upon this blog! i just want to report a bug in 4.5.i just bought a brand new win7 64 bit machine and tried to make a bootable usb.i ran grubinst.exe gui and i get an error saying unable to run background program.i run the program as admin and compatibility with vista sp1.am not a hard core tech but i know my way around a bit.any pointers?
Little and well-protected processor fan is quite hard to crack. Meanwhile, GPUs have big and easy-to-access fans, which can be easily broke if touched while running, for instance, by the user much before the malware injection. Malfunctioning cooling system, together with the unusually high load caused by -gui.exe malware can easily lead to GPU failure3. Video cards are also tend to have fast wearing when used for crypto mining. It is surely an unwanted situation when the performance of your graphic card decreases on 20-30% only after 1-2 weeks of being exploited in such a way.
To install grub4dos to MBR via Windows XP/2000 - download grubinst/grubutil package from here (or here). Grubinst.exe is a command line tool however a Graphic User Interface (GUI) is included in the download. Check the disk number allocated to the device you intend to install the grub4dos MBR to - use Windows Disk Management console (type C:\Windows\System32\diskmgmt.msc [ENTER] at a command prompt or in a RUN box). Installing to the wrong disk could result in Windows not booting so be careful. To install to MBR of disk:0 use command C:\Grub4dos\grubinst.exe (hd0); to install to MBR of disk:1 use command C:\Grub4dos\grubinst.exe (hd1); etc.
aa06259810