Monday 11 May 2015

Easy2Boot 1.67 released


  • $NAME$ now supported in .mnu and .txt files
  • QAUTO.g4b and AUTOMN.g4b changed so .txt files with no \n (help) now end in \n to suppress g4d default help text. 
  • Only first line in .txt files are now used (others ignored). 
  • RMPartUSB and grubinst added so RMPrepUSB no longer needs to be installed to make a USB drive. 
  • Update_E2B_Drive.cmd updated to use xcopy if robocopy not available for XP systems. 
  • Fixed problem with spaces in pathnames in Update_E2B_Drive.cmd.
  • New grub4dos 0.4.6a can now write to small NTFS files (fixes long-standing bug/'feature') + blocklist command enhanced.

WIth the new version of grub4dos, small 'resident data' files now display the location of the resident data inside the $mft entry - e.g. screenshot above shows /menu.lst data contents are stored in the $mft resident record in relative sector 94 (and 95), from bytes 328 to 901.

Friday 8 May 2015

E2B 1.67 Beta D with new grub4dos

yaya (a grub4dos developer) has fixed a long-standing problem with grub4dos with the latest 0.4.6a version (2015-05-08). E2B 1.67 Beta D uses this new version of \grldr.

In all previous versions, grub4dos could not write to small files on an NTFS volume. This was due to the way that NTFS stores the data of small files inside it's 'directory' record. This type of data is called resident data. Once the file exceeds the available space in the resident area (typically between 700 and 800 bytes) then it stores all the data in clusters outside of this area (the data space in the resident area is thus unused and used to store the used cluster information, if the file is larger than 800-ish bytes).

Older versions of grub4dos could not update the resident data area:
e.g.
echo fred > file300bytes.txt
did not work with older versions of grub4dos, but now it does!

Note that grub4dos still cannot write more bytes than was originally contained in the file - i.e. you cannot overwrite a file containing 300 bytes with 301 bytes - the last byte will not be written.

You can detect these small 'resident data' NTFS files using the blocklist command:


f700 is a 700 byte resident file and does not list any used sectors.
f800 is an 800 byte files and lists two used 512-byte sectors.

Note that it is possible for a small file (e.g. 100 bytes) to be a non-resident file. This usually occurs when a larger, non-resident file has been reduced in length (e.g. a 900-byte file has been edited to be 100 bytes and saved as the same file).

The latest version of grub4dos shows the position of the resident data.

Wednesday 6 May 2015

Download Windows 8.1 ISO from Microsoft

Microsoft have released a new tool (mediacreationtool.exe) which lets you download any version of Windows 8 (except Win8 with Bing) as an ISO or to USB drive.

Monday 4 May 2015

E2B 1.67BetaC

A few tweaks to the scripts

  • Update_E2B_drive now uses Xcopy if Robocopy is not available (for XP users). Also problem with paths containing spaces now fixed.
  • Now includes RMPartUSB.exe and grubinst.exe so it is not necessary to download and install RMPrepUSB to make an E2B USB drive using Make_E2B_USB_Drive.cmd.
  • Latest version of E2B_Editor included.

Thursday 30 April 2015

Get the day of the week from grub4dos

The next E2B 1.67 Beta c will include the grub4dos batch file dow.g4b

dow.g4b takes 3 parameters:   year    month    day-of-month
and returns the grub4dos variable dow which is a number from 0-6 (0-Sunday, 1-Monday, etc.).
This means you can call it to test what day of the week it is.
For instance, you can call dow.g4b like this:

call /%grub%/dow.g4b   %@date:~0,4%    %@date:~5,2%   %@date:~8,2% 

and test dow like this:

# only allow use at weekends
if not "%dow%"=="0" if not "%dow%"=="6" halt

# don't allow at weekends, just shutdown!
if "%dow%"=="0" halt
if "%dow%"=="6" halt

Tuesday 28 April 2015

E2B 1.67 Beta available

As well as recognising $HOME$ in .txt and .mnu files, E2B now will replace $NAME$ with the filename of the .txt or .mnu file.

This means that a .mnu file can contain $NAME$ and all you have to do is make sure the .mnu file has exactly the same filename as the ISO that it uses.

e.g. before we had this type of .mnu which we had to edit, in order to use a different ISO file.

Puppy_Precise_USB_HDD_Persistence.mnu
================================
iftitle [if exist $HOME$/precise-5.4.3.iso] Puppy Precise 5.4.3\n Puppy with persistence (save on reboot/shutdown)
set ISO=$HOME$/precise-5.4.3.iso
if "%E2BDEV%"=="" set E2BDEV=hd0 && pause E2BDEV forced to hd0!
partnew (%E2BDEV%,3) 0x00 %ISO%
map %ISO% (0xff) 
map --hook 
root (0xff) 
kernel /vmlinuz pmedia=usbhd psavemark=1 fix=fsck 
initrd /initrd.gz 

It can now be re-written as:

precise-5.4.3.mnu
=============
iftitle [if exist $HOME$/$NAME$.iso] Puppy Precise ($NAME$)\n Puppy with persistence (save on reboot/shutdown)
set ISO=$HOME$/$NAME$.iso
if "%E2BDEV%"=="" set E2BDEV=hd0 && pause E2BDEV forced to hd0!
partnew (%E2BDEV%,3) 0x00 %ISO%
map %ISO% (0xff) 
map --hook 
root (0xff) 
kernel /vmlinuz pmedia=usbhd psavemark=1 fix=fsck 
initrd /initrd.gz


As long as the filename of the .mnu is identical to the filename of the .ISO file, you do not have to edit the contents of the .mnu file to use it on different ISOs - just copy it and change it's filename.

Monday 27 April 2015

E2B v1.66 released

Basically same as v.1.65 with + a few Spanish/German tweaks and the E2B_Editor.exe added.

Sunday 26 April 2015

E2B_Editor update (v1.0.53-v1.065)

More changes - I can't stop tinkering!
  • If you tick 'Other E2B options -  AUTONUM'  then the display now reflects the changes in the menu (i.e. numbers are removed from the menu)
  • Can now click on CENTREHD and bdwidth fields to auto-increment/cycle the values
  • v1.0.58 - mouse tooltip displays RGB value under cursor
  • v1.0.61 - CTRL+Z Undo added + help button
  • v1.0.65 - file + extension show in menu items (no file extension if EXTOFF=1)

Saturday 25 April 2015

E2Bed now reads and writes UTF-8 .cfg files

                                               Checkout the accent over the Ãš  in  MENÚ PRINCIPAL.
  • ANSI language sets supported (not Chinese/Japanese/Persian glyphs)
  • %@DATE% and %@TIME% now interpreted by E2Bed
  • Improved parsing of color commands
  • standard (console) color now supported
  • (config file path) - click on text to edit the .cfg file in Notepad
  • (image file path) - click on text to launch the file (view\edit) - depends on Windows file association for .bmp on your system
v1.0.50
  • Extra dropdown list options added

Note that the grub4dos password will never be ticked after  loading a .cfg file (even if it has a password set or reset in it). Before saving the .cfg file you must tick the 'No grub4dos password' checkbox each time if you want that option.
Also note that the AUTONUM=0 will be ticked if your .cfg file contains any type of AUTONUM setting (it assumes you have set AUTONUM=0 even if it was set to something else!).