Rescue Boot partition on HDD
#1
Posted 01 June 2011 - 06:47 PM
I love bootland! Been using it for years, and find it very useful, thanks to everyone who contributes.
I have a query, I want all the windows xp and windows 7 computers on our company network to have a recovery partition for our support staff to use.
But we cannot visit each PC....we can discuss that later.
Question 1) Firstly i would like to know can winpe or Linux based boot discs be booted from HDD, for example as a dual boot?
Querstion 2) If so when they are booted will it be entirely loaded into memory or will it be running from the HDD after its loaded initially?
If someone can help with those questions it would be very useful, we can then move onto the next thing should be pretty simple.
Thanks everyone!
Indigo.
#2
Posted 01 June 2011 - 09:36 PM
.ISOs do not, in general, expect to be booted as-is from an HDD. Why does it fail? Because when the OS goes looking for its CD/DVD, there isn't one available. Why do you wish to use a "boot disc"? Why not use a Windows PE or Linux right from the recovery partition?I have a query, I want all the windows xp and windows 7 computers on our company network to have a recovery partition for our support staff to use.
But we cannot visit each PC....we can discuss that later.
Question 1) Firstly i would like to know can winpe or Linux based boot discs be booted from HDD, for example as a dual boot?
That really depends on what you install to the recovery partition.Querstion 2) If so when they are booted will it be entirely loaded into memory or will it be running from the HDD after its loaded initially?
For example, if you have a BartPE .ISO with WinVBlock in it, then you would boot the virtual disc to RAM. If you boot a Linux kernel and all the files you need are in the initramfs "initrd", then all of that would be in RAM, too. If you boot a newer Windows PE from a .WIM file, then that'd be in RAM, too. If you boot a BartPE on the recovery partition, that would run from the partition and would not have such hefty RAM requirements. If you boot Linux and that Linux uses the recovery partition, then that would not have such hefty RAM requirements.
#3
Posted 01 June 2011 - 11:47 PM
#4
Posted 02 June 2011 - 09:05 AM
So my first questions was probably wrong terminology, you've answeered it though very well.
1)So i can put winpe or linux based recovery partition as a dual boot....yes
2) and both can be entirely loaded into RAM...yes
So the next stage is to decide which recovery parition to use, it must be the same for XP and Windows 7 computers and must be able to be fully loaded into RAM with a few tools so that the HDD can be manipulated without the tools being read from the HDD.
Example: disk wipe tools, disk checking tools etc,
-Any advice on that?
-once thats decided it would be great if we could discuss how we can distribute this to multiple computers via some kind of script or i can package it into an .exe....
Thanks again,
Indigo.
#5
Posted 02 June 2011 - 11:39 AM
Good, now that your initial questions have been answered, it seems to me like you need some thinking about what you later posted.
First thing:
- a recovery partition is ONLY meaningful IF some basic structure on the hard disk are still operational
Since we are talking of a "dual boot", there is the need to provide a "fork" in the booting to allow to choose between the "normal" boot and the "recovery" one.
This fork can happen:
- at the MBR level
- at the PBR level
- at the bootmanager level
Simplest is at the MBR level, using a single sector MBR code that can "switch" between partitions.
There are a few such MBR's freely (besides Commercial solutions) available, most notably partita, mbldr and terabyte's mbr.
This may prove to be a non-viable solution for Windows 7's using bitlocker feature, though.
Loading/setting things at the PBR level involves anyway the use of a bootmanager (like grub4dos or Syslinux/etc.).
The "least intrusive" solution is using the default OS bootloader to chainload a bootmanager, but this has a few drawbacks for "corporate use", like the fact that every user will be presented the choice to boot from the recovery partition.
In ANY case, the idea of loading something in RAM and from it being able to WIPE the system disk drive is IMNSHO "pure folly".
If anything goes wrong, a blackout, a hardware failure that triggers the PSU shutdown protection, a software lock/error of any kind, and you can easily have a system that has NO OS NOR recovery partition anymore, thus vanifying the whole idea.
Also keep in mind that from what you write you are looking for a foolproof solution, and creating one may be a lot of work, as Douglas Adams put it :
A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
Consider also a "plan B", i.e. having a CD/DVD or USB device capable of "recovering the recovery partition" or however boot the machine/fix it if anything goes wrong.
Wonko
#6
Posted 02 June 2011 - 12:39 PM
Good advice there, Im comfortable with what im trying to achieve here, your right with everything you said, but im definitely looking to get this sorted and as soon as possible too.
its sole purpose is NOT to wipe but its an example of a tool that would need to be loaded into memory, thats why i used it as an example. I understand your point though, thanks.
So heres the solution so far right?
- use standard OS bootloader, chainload a boot manager that will start WinPE (a user prompt is fine i expected that)
- or use an MBR loader (bit locker will not be an issue, its not used)
- load the Winpe with the tools required
if we went with an mbr would i be required to have a seperate partition, if so thats not workable as the machines are already built and so doing that in retrospect would be hard without visiting each machine i think(?)
Any reccomendations on a bootmnanager that car boot to .wim or vmdk or .iso...it must boot into memory though.
This is really taking shape now, i new this was the right place to come!
#7
Posted 02 June 2011 - 01:15 PM
The "single sector MBR" implies having a dedicated partition.
Since you want to boot a recovery image and you want to do it from the "main" OS bootloader, you can use grub4dos allright, as it can (yes, in RAM, if you have enough - be aware that since you are looking for a "company wide" solution you have to take as target the single machine in the company with less RAM on board):
- boot *any* Linux based image
- boot a PE 2.x/3.x image
- with the addition of firadisk or WinVblock, boot a PE 1.x image (or, by itself, use a Ramdisk Server 2003 SP1 image)
Wonko
#8
Posted 02 June 2011 - 02:20 PM
...
if we went with an mbr would i be required to have a seperate partition, if so thats not workable as the machines are already built and so doing that in retrospect would be hard without visiting each machine i think(?)
Well, not necessarily. If you have a partition image file, let's say WinPE.FAT, and you make it contiguous and find out which sector it starts at (relative to the beginning of the disk) you can spoof that image file as a partition in an MBR. Ghost has done this for years as one means of booting their DOS client. It seems fairly attractive as it involves the single file and a single MBR change and no user intervention. However, it is used in deployment scenarios and so is not typically initiated by a user (but could be). It also depends on having a functional (and reachable) OS at some point.Well, you asked about a recovery partition, remember?
The "single sector MBR" implies having a dedicated partition.
PXE-based strategies are pretty popular too, as they do no have any HDD requirement. I strongly recommend PXE-based strategies, where possible.
#9
Posted 02 June 2011 - 02:32 PM
Yep , you are right, but still it is an (necessarily contiguous) image addressed as a partition.Well, not necessarily. If you have a partition image file, let's say WinPE.FAT, and you make it contiguous and find out which sector it starts at (relative to the beginning of the disk) you can spoof that image file as a partition in an MBR.
There is no problem in making an entry for it in the MBR, but what will happen (since we are talking of already configured and running systems) at next Defrag/File optimization?
Wonko
#10
Posted 02 June 2011 - 03:14 PM
Yes, there is the issue that if the machines are already deployed/built, but it is something to think about...
#11
Posted 02 June 2011 - 03:38 PM
Exactly.Yep , you are right, but still it is an (necessarily contiguous) image addressed as a partition.
If I recall correctly, Ghost builds the image file and modifies the MBR any time it is going to boot the image file (as a partition). Upon completion, the special partition entry is removed from the MBR. In this way, I don't think that the image file is expected to be persistent.There is no problem in making an entry for it in the MBR, but what will happen (since we are talking of already configured and running systems) at next Defrag/File optimization?
What the strategy might be especially good for is as a "run-once," where one could boot a utility to then resize/re-partition and then add a true utility/recovery partition.
#12
Posted 02 June 2011 - 03:49 PM
We dont want to change the partition size of each machine, although its one for the future perhaps.
So Wonko, you feel Grub is best then for my situation;
Grub4Dos: can it boot to .wim/iso/vmdk files?
Grub4Dos: can it be installed via script or .exe (the users are administrators but are not technical...lol!)
we need to be able to bundle the whole lot into a script/exe package which includes the grub4dos and the recovery image, they run it and they will be able to reboot and see the boot selection screen>>>?
#13
Posted 02 June 2011 - 04:08 PM
With Make_PE3.exe you can create 7pe_x86_E.iso file (= Portable 7 PE Explorer version with Ghost) .
You can load the 7 PE ISO from Grub4dos Menu on HDD or USB and then boot from RAMDISK.
You are free then to do anything with the HDD including e.g. restore with Ghost.
You can let others use BOOT_IMG.exe to install 7pe_x86_E.iso as Grub4dos Boot option on HDD of any computer (Win7 or XP).
An improved compatible version of BOOT_IMG.exe is available in IMG_XP package.
Required files in IMG_XP folder of IMG_XP package:
\BOOT_IMG.exe \makebt\listusbdrives\ListUsbDrives.exe \makebt\Boot_XP\Bootfont.bin \makebt\Boot_XP\ntldr \makebt\Boot_XP\NTDETECT.COM \makebt\dsfo.exe \makebt\dsfi.exe \makebt\grldr.mbr \makebt\grldr \makebt\menu.lst
Anyway it will be useful to have portable USB-harddisk with same 7PE Boot option available,
which might be used in case after booting from RAMDISK and
while restoring with Ghost an unlikely powerfailure or so would have ruined the process ...
EDIT: June 3, 2011 - BOOT_IMG_38.exe Selfextractor available as download.
This package contains the necessary files and can be used for the above given approach.
Download - IMG_XP
#14
Posted 02 June 2011 - 04:32 PM
Yep , OT , but not much , and JFYI:If I recall correctly, Ghost builds the image file and modifies the MBR any time it is going to boot the image file (as a partition). Upon completion, the special partition entry is removed from the MBR. In this way, I don't think that the image file is expected to be persistent.
What the strategy might be especially good for is as a "run-once," where one could boot a utility to then resize/re-partition and then add a true utility/recovery partition.
http://www.wd-3.com/...e/luserland.htm
http://www.codeproje...iles/FDump.aspx
http://www.chrysocome.net/dd-backdoor
@indigo5
Be aware that you are nearing the border line between legitmate questions and otiose ones
Do you think that I would suggest you something that won't work?So Wonko, you feel Grub is best then for my situation;
Would it be "the best"? Heck cannot say, it's "good enough" IMHO, there may be (actually there are) other solutions, you find them, try them, do a comparison, then choose the one that suits you better....
As a friendly advice, when exploring options, do NOT focus on the minutiae like the actual format of the image....Grub4Dos: can it boot to .wim/iso/vmdk files?
The actual answer is Yes/No, meaning that it will be able to boot some of those formats BUT NOT some other ones.
You have ALREADY enough good answers to get you started, and started in the right directions , maybe it's time you start doing some of your own homework....
Of course nothing personal , but there is a limited amount of free spoon-feeding vouchers available ...
Axiom #1:Grub4Dos: can it be installed via script or .exe (the users are administrators but are not technical...lol!)
we need to be able to bundle the whole lot into a script/exe package which includes the grub4dos and the recovery image, they run it and they will be able to reboot and see the boot selection screen>>>?
- If you can do it manually, you can also script it.
Wonko
#15
Posted 03 June 2011 - 01:47 PM
It has been really very helpful, time to build the first version.
Thanks again,
Indigo.
#16
Posted 03 June 2011 - 02:00 PM
Keep us informed with your progresses/results.It has been really very helpful, time to build the first version.
Wonko
#17
Posted 14 March 2012 - 09:22 AM
Im back, and instead of starting a new post I though perhaps I would revive this one as its very relevant to what im doing, the above posts slipped off the company agenda but im being asked to get on with it again now so here i am.
Heres where we are with our workstations
-Windows xp sp3
-Grub4Dos loading from boot.ini (grldr is on root of C: )
-were trying the following menu.lst file to boot an .iso into memory
title x
map --mem (hd0,0)/ERD.iso (hd32)
map --hook
chainloader (hd32)
boot
The iso were testing is ERD commander 2007 but its only to test, the test machines have 256MB RAM the iso is 145MB so I thought that would be fine...
The issue is we get a blue screen, ive ensured ERD iso works fine when booting from CD but when we chain it from Grub4Dos it blue screens the PC. It does start to boot ERD but then BSOD...!?
Any suggestions? incorrect menu.lst syntax?
Also to accomdate absolutely every pc we have we would prefer to use a variable for the HD 0,0 in the menu.lst file, is there a hex variable we can insert there? Thanks for your help all!
Edited by indigo5, 14 March 2012 - 09:27 AM.
#18
Posted 14 March 2012 - 10:02 AM
Post the EXACT STOP ERROR CODE you get with it.
You can use find --set-root allright:
title x find --set-root /ERD.iso map /ERD.iso (hd32) map --hook root (hd32) chainloader (hd32)you do not need the boot command inside a menu.lst entry (though it is needed on command line).
You do NOT want to use the --mem option on low-ram machines.
The map --mem will load the WHOLE .iso in RAM, then the "normal" ERD booting process will attempt to load the contens of the .iso in RAM, again, and this will lead to a blue screen (if this happens is to be confirmed by the STOP ERROR CODE)
The .iso will NEED to be contiguousif mapped without the --mem.
BUT the STOP ERROR you are getting is currently - most probably - a 0x0000007b, compare with:
http://reboot.pro/8827/
Wonko
#19
Posted 14 March 2012 - 10:49 AM
you menu.lst suggestion works great.
It still does the BSOD and yes it is the 0x0000007b error, thanks for the link.
So it would seem that weve chosen the wrong iso to test with, ERD is not the final boot disc we intend to use for this solution it was just to prove the concept, so I wil now find another boot disc .iso to use.....perhaps a linux based one...
#20
Posted 14 March 2012 - 10:59 AM
It still does the BSOD and yes it is the 0x0000007b error, thanks for the link.
So it would seem that weve chosen the wrong iso to test with, ERD is not the final boot disc we intend to use for this solution it was just to prove the concept, so I wil now find another boot disc .iso to use.....perhaps a linux based one...
You seem like having fallen in the "usual" logical error of considering "any" .iso, compare with:
http://reboot.pro/8944/
if you want to boot that ERD 2007 .iso you will need to make some changes to it's contents (as seen in the given thread - presuming that ERD 2007 has the same "base" as ERD50).
If you want to boot "something else", it may be possible without modifying it, or some other modifications may be needed, or it could be plainly "impossible" to have it boot from .iso.
Wonko
#21
Posted 14 March 2012 - 12:04 PM
Yes i am aware that .iso files are not ALL the same.
I will choose the final set of tools that the company requires, that will then dictate which type of boot disc we will need.
Then i can come back to the challenge of getting that boot disc to work.
I am ever grateful to you!
Indigo
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users