Wednesday 5 December 2012

grub4dos and the blocklist command

It has always been there, but I have just found that the grub4dos blocklist command can be used to display the groups of contiguous sectors that make up a file. So you can use this command to check if an ISO file (for instance) is contiguous (and can therefore be directly mapped under grub4dos using map /xxx.iso (0xff)) or if it is not contiguous.
The file pe.bs is 512 bytes long and thus occupies one sector on the disk. The file knoppix511.iso however is split into two contiguous sector 'runs', one starting at block 24856 (1425152 sectors long) and the other at 1450616 (976 sectors long).
WinContig is included in RMPrepUSB and can be used to make all files on the drive contiguous if you run into this problem.

Monday 12 November 2012

Windows 7 To Go tutorial download updated

I was recently contacted by James Leyden who was running the Installer.cmd script on his Dell M15X Alienware laptop from 2008 to prepare a 1TB USB HDD drive.
The resulting USB drive would not boot:

BOOTMGR is missing
Press Ctrl+Alt+Del to restart

 and indeed did not even have \bootmgr in the root of the drive. Upon investigation, we found that the bcdboot command was not working in the Installer.cmd script and further investigation revealed that James' Dell was in EFI mode (this was confirmed by running the command line utility testefi.exe).
The bcdboot command used in the script was modified to use the /f BIOS parameter but still the bcdboot command did not work. Finally, James downloaded the Windows 8 WAIK files and replaced the Win 7 WAIK version of BCDBOOT.EXE with the Win8 version. At last his Windows 7 To Go now boots!
I have now modified the NT6FastInstaller.zip download in tutorial #43 so that it uses the /f BIOS parameter and also now checks that both the bcdboot and bootsect commands actually complete successfully!
For your reference, the error that the Win7 version of bcdboot reports, if you attempt to use it to prepare a Win 7 USB drive on a system running 64-bit EFI Win 7, is:
BSFVC: Failed to create a new system store. Status = [c000003a]

See Tutorial 47 for the revised download files.

92 - BITS Intel BIOS Implementation Test Suite added

This is a BIOS test suite from Intel. It can be added as an ISO to a multiboot grub4dos USB drive and is useful to test BIOSes for compatibility. It is most useful for testing BIOSes on new or pre-production systems but can be use on any Intel CPU-based system.

http://www.rmprepusb.com/tutorials/92bits 

Sunday 4 November 2012

Boot Splash Screen

A user wanted to use the Clonezilla auto-restore tutorial, but did not want the user to see any menu text at all. They just wanted a splash screen and then a 10 seconds delay to allow them to hit F4 if they wanted a restore, otherwise they just wanted the system to boot to Windows as normal. This is similar to the way the Windows 7 F8 key works.
I found you could hide the menu completely and use hotkeys by adding two grubutils utilities, menusetting and hotkey - see here for more details.

Saturday 3 November 2012

Windows 8 install from ISO #43 updated

The technique in Tutorial 43 required the unattend.xml file to be pre-populated with the Windows 8 Product Key. This is OK for volume licence versions where the same key is used each time, however, for Retail versions, a different key is required each time for each different system. I have therefore added a user prompt to the grub4dos menu which asks the user for the Product Key before the installation begins.
Note that the set /p prompt string cannot be over 80 characters and should be less than 70 characters to avoid an error!

If you are prepared to make a small modification to the iso and edit the ei.cfg file in the \sources folder within the iso file, then you can avoid the need for the unattend.xml file needing to contain the product key.

Thursday 25 October 2012

New QEMU options added to RMPrepUSB

v2.1.651 now has two new options under the File menu tab.


Boot from ISO file using QEMU Emulator Ctrl+F11 - User can select an ISO file and optionally create a virtual hard disk and then boot QEMU from the ISO (for instance you can install XP to a virtual hard disk using this option)
Boot from Virtual HDD image using QEMU emulator Shift+F11 - Boot from a previously installed virtual hard disk image (for instance, you can install linux to a virtual hard disk using Ctrl+F11 and then boot to the hard disk at any time later using Shift+F11)

For instance, if you hit Ctrl+F11, you can select an XP install ISO, choose to create a new virtual hard disk image of any size and then choose how much memory to allocate to QEMU. The ISO will then boot and you can install Phase 1 (textmode) XP to the virtual hard disk. When the XP setup phase 1 reboots, it will reboot to the ISO file again but this time do NOT press a key to boot from the 'CD'. The QEMU BIOS will then boot from the hard disk and the ISO will be attached as the CD and the 2nd Phase (GUI Mode) of the XP install will continue to completion successfully. Note: Because QEMU is verrrry slow, this can take 4-6 hours!

You now have a virtual hard disk which is installed with XP. You can now run this at any time using Shift+F11. Again verrry slow to boot!

This allows you to quickly test boot an ISO to see what it looks like, without needing to set up QEMU Manager or use a different virtual machine.

Tuesday 23 October 2012

CloneZilla Windows Backup/Restore partition Tutorial added (Tut89)

Whilst discussing how to make a grub4dos menu.lst file show only one 'boot to Windows' option, a solution was posted by ndog37 on reboot.pro here for how to add CloneZilla to an existing Windows system. With this solution added, you can quickly backup your copy of Windows at any time and then later restore any of the previous Windows backup images. An XP backup takes approximately 5 minutes. Restoring an XP image takes approximately 1 to 5 minutes. The backup is made on the hard disk, so it is not suitable for off-line backups.

See YouTube vidoes here and here.

See also here for UEFI or here for MBR Tutorials.

You just need to add the files to your backup partition and then install grub4dos (I provide a script file in the download to do this with just one click) and then hide the files to protect them from accidental deletion (again using a script provided in just one click).
This makes it very quick to install onto any simple Windows PC or notebook (e.g. your grannies PC) so that they can quickly restore a working image if their Windows installation gets infected or becomes SNAFU'd.

Monday 22 October 2012

Avira Rescue, ImDisk and RockRidge!

Recently, I was asked to look at making Avira Rescue ISO boot from a bootable grub4dos USB drive (see Tutorial here). It turns out that most of the Avira Rescue iso's content actually needs to be in 'flat file' form (i.e. exist as files and folders on the USB drive) and so I needed to extract the contents of the iso file to the USB drive.

Now my favourite tool for this is ImDisk to mount the iso as a virtual drive volume and then copy over the files and folders that I think (guess!) that Avira might need. However, when I did this I found a problem - the resulting Avira linux boot pen did not fully boot to the Avira GUI desktop and stopped at ' Press Alt+F7 to return to the graphical User Interface '.



After much head-scratching, I found that the problem was caused by the case of the files. All of the files appeared in the ImDisk virtual drive as upper-case file names and folder names, yet when the Avira iso file contents were displayed by the 7Zip GUI, most of the files were lower-case. If I extracted all the files from the Avira ISO using 7Zip and copied them to the USB stick, it booted fine, up to the full GUI.


I realised that this must be due the ISO standard that the Avira ISO file was made with and an interesting discussion evolved on my favourite boot forum reboot.pro (see here).

It turns out that we just can't trust the Windows CD filesystem as it does not support the RockRidge enhancements used by *nix OS's. This means that utilities like ImDisk and SlySoft Virtual CloneDrive may shows filenames as all uppercase if a non-Joliet (i.e. RockRidge only) ISO is mounted under Windows.

Windows 8 supports the mounting of ISO files natively, no utility is needed - but it still does not support RockRidge! (come on MS - this is 2012!).

The moral of this story is, if you are extracting files from a linux ISO file, don't use a virtual drive to mount the ISO because the filenames 'case' cannot be trusted - instead use an extraction utility like 7Zip which will detect that the ISO is a RockRidge ISO and use the correct case for the files and folders.

Wednesday 10 October 2012

v2.1.650 new feature for multi-partition flash drives

If you have a flash drive with more than one primary partition on it, then Windows Explorer will only allow access to the first partition defined in the partition table. The new option allows you to re-order the table so that any one of the four primary partitions will be instantly accessible under Windows.
To create a multi-partition USB flash drive, I recommend the free Easeus Partition Master Home Edition.
RMPrepUSB version2.1.650 now has a new option in the Drive menu tab which allows you to make any one of 4 primary partitions on a USB or removable media drive visible to Windows. You do not need to remove the USB drive - the change is instant. So now you can quickly change the contents on each partition using Windows Explorer.

Sunday 26 August 2012

Was YLMF now StartOS

Tutorial 17 has been updated for the latest version of YLMF which is now called StartOS.
This is a Vista-like liveCD/installer but starts up in Chinese. I have added some cheat codes to get it to start in English. Take a look here.