Jump to content











Photo
- - - - -

Hotkeys and Silent Boot


  • Please log in to reply
4 replies to this topic

#1 Terrapin2190

Terrapin2190
  • Members
  • 4 posts
  •  
    United States

Posted 30 March 2015 - 10:15 PM

Kind of new to Grub4dos, but I've been messing with sort of a minimal install of Lubuntu for the past 2 weeks, so I know how to work with commands now! Yay! Frustration!! haha

 

Anyways, I'm testing out Clonezilla Backup to create my own custom recovery partition. I found the more recent thread talking about the PatchMe.g4d file and am about to test that out. Not sure if it's version specific or if it's universal for all Grub4dos releases. I'm not sure which version is implemented in Clonezilla Backup even... buuut I figure I'll test it out and see if it works. If I break something I'll find a way to restore my bcd again :D

 

(Edit: I just read the PatchMe instructions on the Clonezilla Backup page. My eyes are a bit selective when it comes to reading instructions)

 

As for the hotkey command, I can't for the life of me get it to work in menu.lst. I've put this at the top of menu.lst using Notepad and copied menu.lst to the C:\ partition:

/grubinst.exe  --boot-prevmbr-first --time-out=1 --hot-key=0x8500 --key-name=F11  (hd0)

I've also tried replacing '/grubinst.exe' with '/clonezilla/grubinst.exe' since that's where the file resides in my Clonezilla Backup partition, but didn't get any results.

 

 

 

 

 

I'm also trying to figure out my system's native boot screen resolution, as it seems the bootloader image is cut off at the top and bottom of the screen. It could just be the way the image is set up? My max resolution is 1280x800 which is 16:10...

 

Any help would be appreciated :) I love messing around with this stuff. Not to mention the program itself is genius!

 

Goodbye set of recovery DVD's, goodbye 3 days worth of Windows updates! :good:



#2 Terrapin2190

Terrapin2190
  • Members
  • 4 posts
  •  
    United States

Posted 30 March 2015 - 10:25 PM

Reporting back - I downloaded the PatchMe file from the Clonezilla Backup page, loaded Grub4dos and entered:

find --set-root /grldr
/clonezilla/patchme

As instructed and didn't notice any change in the pre-boot messages. I guess I'll try to updated PatchMe.zip I found here in the forums and see how that works.

 

I suppose, once I find my native boot screen resolution, I can get rid of a few commands in menu.lst to minimalize the pre-boot command popups.



#3 Terrapin2190

Terrapin2190
  • Members
  • 4 posts
  •  
    United States

Posted 30 March 2015 - 10:29 PM

Here is my menu.lst

/grubinst.exe  --boot-prevmbr-first --time-out=3 --hot-key=0x8500 --key-name=F11  (hd0)

/clonezilla/hotkey
# allow vbeprobe command to output text
#debug 1
# list all available BIOS modes
vbeprobe > (md)0x220+5
# clear the display to keep it clean!
clear
#debug 0
# look for 800x600 modes
cat --locate=", 800x600x16"  (md)0x220+5 > nul &&  set GM=800_16 && echo 800x600x16     supported
cat --locate=", 800x600x32"  (md)0x220+5 > nul &&  set GM=800_32 && echo 800x600x32     supported
cat --locate=", 800x600x24"  (md)0x220+5 > nul &&  set GM=800_32 && echo 800x600x32     supported
# wait 1 second so the user can see the modes supported by the BIOS
pause --wait=1
# now change to the highest resolution supported and load the matching bitmap
if "%GM%"=="800_32"  graphicsmode -1 800  100:1000 24:32 && splashimage /clonezilla/aurora24.bmp.gz
if "%GM%"=="800_16"  graphicsmode -1 800  100:1000 16 && splashimage /clonezilla/aurora256.bmp.gz
# allow text output from any future commands  so we can debug the menu items


# find source volume for Windows and our backup volume - use hda instead of sda if IDE HDD
if exist (hd0,0)/windows/explorer.exe set WDRV=sda1
if exist (hd0,1)/windows/explorer.exe set WDRV=sda2
if exist (hd0,2)/windows/explorer.exe set WDRV=sda3
if exist (hd0,3)/windows/explorer.exe set WDRV=sda4
if exist (hd0,0)/clonezilla/live/vmlinuz set BAKDRV=sda1
if exist (hd0,1)/clonezilla/live/vmlinuz set BAKDRV=sda2
if exist (hd0,2)/clonezilla/live/vmlinuz set BAKDRV=sda3
if exist (hd0,3)/clonezilla/live/vmlinuz set BAKDRV=sda4
if exist (hd0,4)/clonezilla/live/vmlinuz set BAKDRV=sda5
if exist (hd0,5)/clonezilla/live/vmlinuz set BAKDRV=sda6
if exist (hd0,6)/clonezilla/live/vmlinuz set BAKDRV=sda7
if exist (hd1,0)/clonezilla/live/vmlinuz set BAKDRV=sdb1
if exist (hd1,1)/clonezilla/live/vmlinuz set BAKDRV=sdb2
if exist (hd1,2)/clonezilla/live/vmlinuz set BAKDRV=sdb3
if exist (hd1,3)/clonezilla/live/vmlinuz set BAKDRV=sdb4
if exist (hd1,4)/clonezilla/live/vmlinuz set BAKDRV=sdb5
if exist (hd1,5)/clonezilla/live/vmlinuz set BAKDRV=sdb6
if exist (hd1,6)/clonezilla/live/vmlinuz set BAKDRV=sdb7
if exist (hd2,0)/clonezilla/live/vmlinuz set BAKDRV=sdc1
if exist (hd2,1)/clonezilla/live/vmlinuz set BAKDRV=sdc2
if exist (hd2,2)/clonezilla/live/vmlinuz set BAKDRV=sdc3
if exist (hd2,3)/clonezilla/live/vmlinuz set BAKDRV=sdc4
if exist (hd2,4)/clonezilla/live/vmlinuz set BAKDRV=sdc5
if exist (hd2,5)/clonezilla/live/vmlinuz set BAKDRV=sdc6
if exist (hd2,6)/clonezilla/live/vmlinuz set BAKDRV=sdc7
if exist (hd3,0)/clonezilla/live/vmlinuz set BAKDRV=sdd1
if exist (hd3,1)/clonezilla/live/vmlinuz set BAKDRV=sdd2
if exist (hd3,2)/clonezilla/live/vmlinuz set BAKDRV=sdd3
if exist (hd3,3)/clonezilla/live/vmlinuz set BAKDRV=sdd4
if exist (hd3,4)/clonezilla/live/vmlinuz set BAKDRV=sdd5
if exist (hd3,5)/clonezilla/live/vmlinuz set BAKDRV=sdd6
if exist (hd3,6)/clonezilla/live/vmlinuz set BAKDRV=sdd7

set WDRV=sda1
set BAKDRV=sda3

timeout 10
default 0

# set menu colors - white normal menu text, purple highlighted, green heading, white console text, black menu border
color normal=31 highlight=0x75 helptext=0x1D heading=0x0A standard=0x0F border=0x00
write (md)0x220+1 !BAT\necho -n -P:0000 $[0133]                      --- CLONEZILLA BACKUP\\RESTORE MENU --- \necho -n -P:2300 www.rmprepusb.com\0
initscript (md)0x220+1

# autonumber menu entries
write 0x8274 0x2001



title Windows\nBoot to Windows
find --set-root --devices=h /bootmgr && chainloader /bootmgr
find --set-root --devices=h /ntldr && chainloader /ntldr

title ^F6 F6 Restore Backup Image to %WDRV% (from images in %BAKDRV% \\images folder)\nOverwrites your current Windows installation and all files
find --set-root /clonezilla/live/vmlinuz
set BOPT=boot=live quiet live-config noswap nolocales edd=on nomodeset ip=frommedia ocs_live_keymap="NONE"
set RUN=ocs_live_run="ocs-live-general" keyboard-layouts="NONE" locales="en_US.UTF-8" live-media-path=/clonezilla/live bootfrom=/dev/%BAKDRV% toram=filesystem.squashfs ocs_live_batch="yes" 
set PRERUN=ocs_prerun="mount /dev/%BAKDRV% /mnt" ocs_prerun1="mount --bind /mnt/clonezilla/images /home/partimag/"
set RUN1=ocs_live_run="ocs-sr --batch -g auto -e1 auto -e2 -j2 -k -p reboot restoreparts ask_user %WDRV%"
#echo kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
#pause
kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
initrd /clonezilla/live/initrd.img

title Create Backup Image of %WDRV% (in %BAKDRV% \\images folder)\nMakes an image backup of your current Windows installation
find --set-root /clonezilla/live/vmlinuz
set BOPT=boot=live quiet live-config noswap nolocales edd=on nomodeset ip=frommedia ocs_live_keymap="NONE"
set RUN=ocs_live_run="ocs-live-general" keyboard-layouts="NONE" locales="en_US.UTF-8" live-media-path=/clonezilla/live bootfrom=/dev/%BAKDRV% toram=filesystem.squashfs ocs_live_batch="yes" 
set PRERUN=ocs_prerun="mount /dev/%BAKDRV% /mnt" ocs_prerun1="mount --bind /mnt/clonezilla/images /home/partimag/"
set RUN1=ocs_live_run="ocs-sr -q2 --batch -j2 -z1 -i 2000 -sc -rm-win-swap-hib -p reboot saveparts ask_user %WDRV%"
#echo kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
#pause
kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
initrd /clonezilla/live/initrd.img

title ^F4 F4 Auto-Restore Windows\nRestore Windows from IMG
find --set-root /clonezilla/live/vmlinuz
set BOPT=boot=live quiet live-config noswap nolocales edd=on nomodeset ip=frommedia ocs_live_keymap="NONE"
set RUN=ocs_live_run="ocs-live-general" keyboard-layouts="NONE" ocs_lang="en_US.UTF-8" live-media-path=/clonezilla/live bootfrom=/dev/%BAKDRV% toram=filesystem.squashfs ocs_live_batch="yes"
set PRERUN=ocs_prerun="mount /dev/%BAKDRV% /mnt" ocs_prerun1="mount --bind /mnt/clonezilla/images /home/partimag/"
set RUN1=ocs_live_run="ocs-sr -c --batch -e1 auto -e2 -j2 -k -p reboot restoreparts IMG %WDRV%"
#echo kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
#pause
kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
initrd /clonezilla/live/initrd.img

title Auto-Backup Windows\nBackup Windows to IMG
find --set-root /clonezilla/live/vmlinuz
set BOPT=boot=live quiet live-config noswap nolocales edd=on nomodeset ip=frommedia ocs_live_keymap="NONE"
set RUN=ocs_live_run="ocs-live-general" keyboard-layouts="NONE" ocs_lang="en_US.UTF-8" live-media-path=/clonezilla/live bootfrom=/dev/%BAKDRV% toram=filesystem.squashfs ocs_live_batch="yes"
set PRERUN=ocs_prerun="mount /dev/%BAKDRV% /mnt" ocs_prerun1="mount --bind /mnt/clonezilla/images /home/partimag/"
set RUN1=ocs_live_run="ocs-sr -q2 -sc -rm-win-swap-hib -c --batch -j2 -z1 -i 2000 -p reboot saveparts IMG %WDRV%"
#echo kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
#pause
kernel /clonezilla/live/vmlinuz %BOPT% %RUN% %PRERUN% %RUN1%
initrd /clonezilla/live/initrd.img

title Clonezilla (manual)\nRun backup/restore program manually (experts only)
find --set-root /clonezilla/live/vmlinuz
kernel /clonezilla/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts="" locales="" ip=frommedia nosplash live-media-path=/clonezilla/live bootfrom=/dev/%BAKDRV% toram=filesystem.squashfs ocs_live_batch="no"
initrd /clonezilla/live/initrd.img

I added # in front of 'debug 1' and 'debug 0' in hopes that it would get rid of the debug prompts upon initializing Grub4dos.

 

Aside from that and the top line, everything else is the original menu.lst.



#4 Terrapin2190

Terrapin2190
  • Members
  • 4 posts
  •  
    United States

Posted 30 March 2015 - 10:46 PM

Okay, I downloaded the newest version of PatchMe.zip found here in the forums, placed it in /clonezilla directory, removed the .g4d exstension from Patchme.g4d, loaded Grub4dos and ran the commands again (listed on Clonezilla Backup page) and got the same results.

 

I also replaced grldr (in my recovery partition) with a fresh copy from ClonezillaBackup.zip before running the patch.

 

Upon boot I still recieve debug messages. I saw:

 

No grldr

No grldr

 

followed by a blank screen, then:

 

800x600

800x600



#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 31 March 2015 - 10:50 AM

This appears to be specific to this:

http://www.rmprepusb...ials/clonezilla

and to this:

http://www.rmprepusb...essages-silent-

 

It would be a good idea to post a link to the specific page/topic you are referencing, so that people can understand at a glance what you are talking about.

 

:duff:

Wonko






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users