Help - Search - Members - Calendar
Full Version: Creating bootmenu from *.sna images
The CD Forum > Bart's PE Builder > General
j4hr0m
Hi there,

i heard, it should be possible to create all kind of bootdisks with BartPE. What about this one:

I have 2 physical harddisks in 5 different computers. On the 2nd harddisk, there is a folder with *.sna images created by Tom Ehlert's Snapshot.exe . Now i want to create a bootdisk which can list all available images from that cirtain computer in one bootmenu, so that snapshot.exe will restore that image, whenever i choose this cirtain entry in that bootmenu.

How would You do that? And is it possible at all?

Thanks in advance.
jaclaz
QUOTE (j4hr0m @ Jan 11 2012, 05:57 PM) *
How would You do that? And is it possible at all?

Not exactly through a "boot menu".
But yes, it is possible of course, the tool supports command line allright:
http://www.drivesnapshot.de/en/commandline.htm

Basically you always boot to the "same" BartPE, then you have a menu (not boot menu) that allows you to choose what image to restore to what drive.

Such a menu can be made in zillion ways, from simple batch to vbs or hta or using any number of third party tools, and can of course be autoexecuted when you boot to the BartPE.

Depending on the way you store the images, if you use a log file, etc. you can "hardcode" a given image name to a given drive in the script or dinamycally read this info from some file, or from the image title, etc.
The only issue there might be is that it would be possible that drive lettering is different in the BartPE then it is in the "normally booted" OS, and from a quick look it seems like the actual hard disk number and partition/volume number of original source is written in the .sna file:
http://www.drivesnapshot.de/en/rest1.htm
but there is no way to get this info from command line so maybe some direct parsing of the image file may be necessary. (but maybe it is possible and this info is simply not well highlighted on the site)

cheers.gif
jaclaz
j4hr0m
Thanks for the reply

actually, i already have a batch menu, which i call from running Windows OS. The entries are all hardcoded, this is lesser of a problem to me. The main problem is, that whenever i schedule a restore for the next reboot, system reboots, and loads a minimal Windows OS, there are still some filehandles open on the harddisk! I can add a parameter which harddisk should be resored (HD1) when executing snapshot.exe. After restore, which works, checkdisk is running however reports no errors, but this is not optimal. Resore should happen from a system loaded into RAM, maybe BartPE, still i need logging, which image was restored and when. Thanks for the help so far, i will see, how far i get.
Ed_P
QUOTE (j4hr0m @ Jan 12 2012, 06:02 PM) *
still i need logging, which image was restored and when. Thanks for the help so far, i will see, how far i get.

Modify your batch menu such that when done with the restore create a small txt file on the restored drive denoting the name of the restored file used and the current date and time. Should be able to be done with something along the lines of this:

CODE
MODE CON LINES=10 COLS=52
set _bkups=?:
C:
cd \
if exist BkupRSTRd.txt  del BkupRSTRd.txt
dir %_bkups%\*.sna /o-d
dir %_bkups%\*.sna /o-d              > BkupRSTRd.txt
echo.
echo.                               >> BkupRSTRd.txt
set hh=%time:~0,2%
if %hh% lss 12 (
  echo %date:~4,20%  %time:~0,5% AM
  echo %date:~4,20%  %time:~0,5% AM >> BkupRSTRd.txt
  goto VC_END)
if %hh% == 12 (
  echo %date:~4,20%  %time:~0,5% PM
  echo %date:~4,20%  %time:~0,5% PM >> BkupRSTRd.txt
  goto VC_END)
set    hhx=1%hh%
set /A hhx=%hhx%-12
set    hh=%hhx:~1,2%
echo %date:~4,20%  %hh%%time:~2,3% PM
echo %date:~4,20%  %hh%%time:~2,3% PM >> BkupRSTRd.txt

echo File restored: %1.sna
echo File restored: %1.sna            >> BkupRSTRd.txt


hth
j4hr0m
Thank you, too, Ed_P!

QUOTE (jaclaz @ Jan 11 2012, 06:52 PM) *
Basically you always boot to the "same" BartPE,...


Which image would this be from this list? http://www.nu2.nu/bootcd/ I just want a minimal BartPE, which can call me one .bat-file from the second partition.

best regards

j4hr0m
i have found out, that i will somehow need to mount the NTFS harddisk drives, so they can be easily accessed, maybe by a drive letter C:/, D:/, doing so, i would call D:\script.bat with my menu, which calls snapshot.exe. Any ideas? NTFSDOSPro is not free, as i got it and will not work, will it?
Ed_P
QUOTE (j4hr0m @ Jan 17 2012, 08:50 AM) *
Which image would this be from this list? http://www.nu2.nu/bootcd/ I just want a minimal BartPE, which can call me one .bat-file from the second partition.

The image we are discussing is not in that list, it's described here: http://www.nu2.nu/pebuilder/

And it supports NTFS formated drives, if they are PATA. If the hdds are SATA you need to add drivers.
j4hr0m
Sorry, but this is not, what i wanted. I guess, i have posted to the wrong forum..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.