Hello dear guest!

Boot Land is a community driven pc software site established since 2006 and focused on recovery/backup boot disks, research of Microsoft Windows 2000/XP/2003/Vista/7 install/deployment/lease/antivirus/antispam tools, customizing Microsoft Windows PE administration systems and even learning how to recover computer data from disaster situations!

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register


Marietto2009

Members

***

Joined: 26-August 09
Profile Views: 18*
Last Seen: 24th June 2010 - 11:16 AM
Local Time: Jun 26 2010, 12:23 AM 122 posts (0.4 per day)

Marietto2009 doesn't have a personal statement currently.
http://www.tecsoft.org

Profile
Personal Photo
Personal Info
Contact Information

 

Marietto2009
Frequent Member
34 years old
Male
Italy
Born Oct-29-1975
AIM No Information
Yahoo No Information
ICQ No Information
MSN virtuoso2007@hotmail.it
Contact Send Message
Contact Send an Email

Topics
Posts
About Me
Files E2T
Comments
Friends
My Content
29 May 2010
Read Topic
Reinstall / Repair Windows automatically without formatting the disk.
Hello to everybody, in the past months I worked to some scripts to help people to reinstall /repair Windows automatically, because I realized that here, where I live, there are many inexperienced people who do not know how to do it. The automatic restoration job I created is divided into 3 phases:

1) The first part of the script starts when Windows is already running and it tries to include Windows PE 3.0 between the boot entries.

2) The second part of the script starts when you choose to use Windows PE 3.0 and it tries to provide the minimum tools to allow people to use the computer if Windows is very corrupted. For minimum tools (free tools) I mean:

a) A Client / Server remote desktop manager (2XClient)
b) A browser (Firefox)
c) A file manager (FreeCommander)
d) A file compressor / decompressor (PeaZip)
e) A multi chat application (Pidgin)
f) An Antivirus (VIPRERESCUE)

The second part of the script allows you to choose between:

-) Reinstall Windows, by using necessarily the original DVD, without formatting the hard disk, so that there are stored both the old installation and the new one.

-) Reinstall Windows, deleting permanently the old installation.

3) The third part of the script tries to move the old Windows configuration to the new one, including drivers, but excluding installed applications.

These are the problems of the script:

a) To backup and restore Windows drivers I used double driver 4.0, but it doesn't work very well in CLI mode. In this example I will explain to you why:

When I installed the Asus M4N82 Deluxe original drivers pack (it includes : AMD Cool'n'Quiet driver,Nvidia chipset driver and the Realtek audio driver)on Windows XP 64 everything worked fine.

After that,I did a backup of every Non-Microsoft driver (because in CLI mode I can't make a backup of everything) :

ddc b /target:c:\reinstallazione\backup_drivers_dd

and at the end I reinstalled Windows xp 64 and I tried to restore the drivers :

ddc r /source:c:\reinstallazione\backup_drivers_dd

it asked to me to :

1) provide the following files,because double driver didn't save them :

a) ASACPI.SYS
b) nvnetbus.sys
c) nvefdxp.sys
d) nvcosmb.dll
e) nvsmu.sys
f) rtkhda64.sys

and even if I provided the correct paths for these files,there was something that still didn't work : the display driver was still configured to standard vga graphic adapter.

b) When you install XP,and then you run the second part of the script,and finally you install Windows 7,you have 3 entries on the boot selection screen :

1) the previous Windows installation : when you choose it,it starts winPE 3

2) Windows 7 : it works great

3) WinPE 3 : when you choose it,you have this error :

error : File \grldr ; state : 0xc000007b : it is impossible to load the selected entry. Application missing or damaged.

c) To move the old configuration of Windows to a new one,I used the USMT (User State Migration Tool) scanstate and loadstate,the problem is that these commands don't move the installed applications. To do it could be a good idea.

d) When you install the Karyonix Firadisk driver,Windows 64 bit ask to you if you are sure to install it,and then you need to click on "Install". Could be a good idea to skip this question because it breaks the automatic execution of the script. I want that there is almost 0 interaction between the script and the user.

e) fully automate the script. The script should no more ask in which partition to install windows.

These are the scripts :

fase1.bat

CODE
@echo off
SET drive=c:

ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp

ver | find "2003" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

ver | find "2000" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

ver | find "NT" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

if not exist %SystemRoot%\system32\systeminfo.exe goto warnthenexit

:italiano
systeminfo | find "Nome SO" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto turco

:turco
systeminfo | find "Isletim Sistemi Adi" > %drive%\reinstallazione\os_name.txt
FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto norvegesedanese

:norvegesedanese
systeminfo | find "OS-navn" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto olandese

:olandese
systeminfo | find "Naam van besturingssysteem" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto inglese

:inglese
systeminfo | find "OS Name" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto polacco

:polacco
systeminfo | find "Nazwa systemu operacyjnego" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto brasiliano

:brasiliano
systeminfo | find "Nome do sistema operacional" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto francese

:francese
systeminfo | find "Nom du systme d'exploitation" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto portoghese

:portoghese
systeminfo | find "Nome do SO" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto persiano

:persiano
systeminfo | find "Opercis rendszer neve" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto tedesco

:tedesco
systeminfo | find "Betriebssystemname" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto suomi

:suomi
systeminfo | find "Kyttjrjestelm" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto svedese

:svedese
systeminfo | find "Operativsystemnamn" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto spagnolo

:spagnolo
systeminfo | find "Nombre del sistema operativo" > %drive%\reinstallazione\os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

:osversion
echo %vers% | find "Windows 7" > nul
if %ERRORLEVEL% == 0 goto ver_7

echo %vers% | find "Windows Server 2008" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

echo %vers% | find "Windows Vista" > nul
if %ERRORLEVEL% == 0 goto ver_vista

echo %vers% | find "Windows XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp

goto warnthenexit

:ver_7
echo Windows 7
pause
echo > %drive%\reinstallazione\script.txt select disk 0
echo >> %drive%\reinstallazione\script.txt select partition 1
echo >> %drive%\reinstallazione\script.txt assign letter=z
diskpart /s %drive%\reinstallazione\script.txt
set bcdedit=c:\windows\system32\bcdedit.exe
if exist %drive%\windows set store=%drive%\boot\bcd
if exist z: set store=z:\boot\bcd
for /f "tokens=3" %%a in ('%bcdedit% /store %store% /create /d "winpe 3" /application bootsector') do set guid=%%a
%bcdedit% /store %store% /set %guid% device boot
%bcdedit% /store %store% /set %guid% path \grldr.mbr
%bcdedit% /store %store% /displayorder %guid% /addlast
cd %drive%\reinstallazione\boot_Files
attrib ntdetect.com -s -h
attrib ntldr -s -h
xcopy *.* %drive%\ /y
attrib ntdetect.com +s +h
attrib ntldr +s +h
xcopy *.* z:\ /y
cd %drive%\reinstallazione
xcopy os_name.txt windows_7.txt /y
xcopy winPE3.vhd %drive%\ /y
xcopy drive_name.txt drive_c.txt %drive%\reinstallazione /y
xcopy drive_z.txt z:\ /y
cd %drive%\reinstallazione\DD\
ddc b /source:"%drive%\Windows" /target:"%drive%\reinstallazione\backup_drivers_dd"
pause
endlocal
goto exit

:ver_vista
echo Windows Vista
pause
echo > %drive%\reinstallazione\script.txt select disk 0
echo >> %drive%\reinstallazione\script.txt select partition 1
echo >> %drive%\reinstallazione\script.txt assign letter=z
diskpart /s %drive%\reinstallazione\script.txt
set bcdedit=%drive%\windows\system32\bcdedit.exe
if exist %drive%\windows set store=%drive%\boot\bcd
if exist z: set store=z:\boot\bcd
for /f "tokens=3" %%a in ('%bcdedit% /store %store% /create /d "winpe 3" /application bootsector') do set guid=%%a
%bcdedit% /store %store% /set %guid% device boot
%bcdedit% /store %store% /set %guid% path \grldr.mbr
%bcdedit% /store %store% /displayorder %guid% /addlast
cd %drive%\reinstallazione\boot_Files
attrib ntdetect.com -s -h
attrib ntldr -s -h
xcopy *.* %drive%\ /y
attrib ntdetect.com +s +h
attrib ntldr +s +h
xcopy *.* z:\ /y
cd %drive%\reinstallazione
xcopy os_name.txt windows_vista.txt /y
xcopy winPE3.vhd %drive%\ /y
xcopy drive_name.txt drive_c.txt %drive%\reinstallazione /y
xcopy drive_z.txt z:\ /y
cd %drive%\reinstallazione\DD\
ddc b /source:"%drive%\Windows" /target:"%drive%\reinstallazione\backup_drivers_dd"
pause
endlocal
goto exit

:ver_xp
echo Windows XP
pause
cd %drive%\
attrib boot.ini -s -h
ren boot.ini boot.ini_old
cd %drive%\reinstallazione\boot_Files
attrib boot.ini -s -h
xcopy boot.ini %drive%\ /y
xcopy grldr %drive%\ /y
xcopy grldr.mbr %drive%\ /y
xcopy menu.lst %drive%\ /y
cd %drive%\
attrib boot.ini +s +h
attrib boot.ini_old +s +h
cd %drive%\reinstallazione
xcopy os_name.txt windows_xp.txt /y
xcopy winPE3.vhd %drive%\ /y
copy drive_name.txt drive_c.txt /y
cd %drive%\reinstallazione\DriverSigning
driversigning-off.exe
cd %drive%\reinstallazione\DD\
ddc b /source:"%drive%\Windows" /target:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto exit

:warnthenexit
msg * Sistema operativo non supportato.
msg * Operating System Not Supported.
pause

:exit
if not exist %SystemRoot%\system32\wow64.dll goto devcon_x86

:devcon_x86
cd %drive%\reinstallazione\devcon\i386
devcon install %drive%\reinstallazione\firadisk_driver_0.0.1.18\x86\firadisk.inf root\firadisk

if exist %SystemRoot%\system32\wow64.dll goto devcon_amd64

:devcon_amd64
bcdedit -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON
cd %drive%\reinstallazione
REGEDIT /s TestSignRootCA.reg
cd %drive%\reinstallazione\devcon\x64\
devcon install %drive%\reinstallazione\firadisk_driver_0.0.1.18\amd64\firadisk.inf root\firadisk
devcon disable root\firadisk
devcon enable root\firadisk
:: reg delete HKLM\SYSTEM\CurrentControlSet\Control\FiraDisk /v StartOptions /f
msg * Ora puoi riavviare il tuo computer.
msg * Now you can reboot your computer.


fase2.bat

CODE
@Echo off

:start

cls

ECHO ---------------------------------------------
ECHO Ripristina Windows Script by Mario Felicioni
ECHO Versione 1.0
ECHO ---------------------------------------------
ECHO Restore Windows Script by Mario Felicioni
ECHO Version 1.0
ECHO ---------------------------------------------
ECHO 1. Usa Mini Windows.
ECHO 1.
ECHO Use Mini Windows.
ECHO --------------------
ECHO 2. Disinfetta Windows senza reinstallarlo.
ECHO 2.
ECHO Try to remove viruses without reinstalling Windows.
ECHO ------------------------------------------------------
ECHO 3. Reinstalla Windows mantenendo i programmi (non tutti funzioneranno),
ECHO i drivers e salvando i documenti presenti nelle cartelle standard di Windows.
ECHO 3.
ECHO Reinstall Windows using your old programs (some programs will not work)
ECHO /drivers and saving the documents located on the default windows folders.
ECHO --------------------------------------------------------------------------------
ECHO 4. Reinstalla Windows rimuovendo sia i programmi che i documenti.
ECHO 4.
ECHO Reinstall Windows removing old programs and documents.
ECHO --------------------------------------------------------------------------------
ECHO 5. X riavviare clicca sulla X nell'angolo in alto a destra della finestra nera.
ECHO 5.
ECHO To reboot click on the X in the upper right corner of the black window.
ECHO --------------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto usa_mini_windows
if '%scegli_menu_principale%'=='2' goto disinfetta_windows
if '%scegli_menu_principale%'=='3' goto mantieni_windows
if '%scegli_menu_principale%'=='4' goto reinstalla_windows

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto start

:usa_mini_windows

cls

ECHO ---------------------------------------------------------------
ECHO Mini Windows
ECHO ---------------------------------------------------------------
ECHO 1. Avvia il server e/o il client remoto del desktop.
ECHO 1.
ECHO Start server and/or client of the Remote Desktop Connection
ECHO ---------------------------------------------------------------
ECHO 2. Avvia il browser.
ECHO 2.
ECHO Start the browser.
ECHO ---------------------
ECHO 3. Avvia il gestore dei files.
ECHO 3.
ECHO Start the file manager.
ECHO ------------------------------
ECHO 4. Avvia il compressore/decompressore dei files.
ECHO 4.
ECHO Start the file compressor/decompressor.
ECHO ------------------------------------------------
ECHO 5. Avvia il programma di chat.
ECHO 5.
ECHO Start the chat application.
ECHO ------------------------------
ECHO 6. Torna al menu' precedente.
ECHO 6.
ECHO Come back to the previous menu.
ECHO -------------------------------------------------------------------------------
ECHO 7. X riavviare clicca sulla X nell'angolo in alto a destra della finestra nera.
ECHO 7.
ECHO To reboot click on the X in the upper right corner of the black window.
ECHO -------------------------------------------------------------------------------

set scegli_menu_mini_windows=
set /p scegli_menu_mini_windows=Scegli una opzione tra quelle proposte.
if '%scegli_menu_mini_windows%'=='1' goto 2xclient
if '%scegli_menu_mini_windows%'=='2' goto Firefox
if '%scegli_menu_mini_windows%'=='3' goto FreeCommander
if '%scegli_menu_mini_windows%'=='4' goto PeaZip
if '%scegli_menu_mini_windows%'=='5' goto Pidgin
if '%scegli_menu_mini_windows%'=='6' goto start

ECHO "%scegli_menu_mini_windows%" non una opzione valida.
ECHO.
goto usa_mini_windows

:2xclient

cd x:\Program Files\2xClient
start Port2xClient.exe
goto usa_mini_windows

:Firefox

cd x:\Program Files\FirefoxPortable
start FireFoxportable.exe
goto usa_mini_windows

:FreeCommander

cd x:\Program Files\FreeCommanderPortable
start FreeCommanderPortable.exe
goto usa_mini_windows

:PeaZip

cd x:\Program Files\PeaZipPortable
start PeaZipPortable.exe
goto usa_mini_windows

:Pidgin

cd x:\Program Files\PidginPortable
start PidginPortable.exe
goto usa_mini_windows

:disinfetta_windows

cls

ECHO ----------------------------------------------------------------
ECHO Disinfetta Windows
ECHO ----------------------------------------------------------------
ECHO Disinfect Windows
ECHO ----------------------------------------------------------------
ECHO 1. Disinfetta Windows (senza reinstallarlo).
ECHO 1.
ECHO Remove viruses without reinstalling Windows.
ECHO -----------------------------------------------
ECHO 2. Torna al menu' precedente.
ECHO 2.
ECHO Come back to the previous menu.
ECHO -------------------------------------------------------------------------------
ECHO 3. X riavviare clicca sulla X nell'angolo in alto a destra della finestra nera.
ECHO 3.
ECHO To reboot click on the X in the upper right corner of the black window.
ECHO -------------------------------------------------------------------------------

set disinfetta_windows=
set /p disinfetta_windows=Scegli una opzione tra quelle proposte.
if '%disinfetta_windows%'=='1' goto VIPRERESCUE
if '%disinfetta_windows%'=='2' goto usa_mini_windows

ECHO "%disinfetta_windows%" non una opzione valida.
ECHO.
goto disinfetta_windows

:VIPRERESCUE

x:
cd \Program Files\VIPRERESCUE
start deep_scan.bat
goto disinfetta_windows

:mantieni_windows

cls

ECHO -------------------------------------------------------------------------------
ECHO Mantieni Windows
ECHO -------------------------------------------------------------------------------
ECHO Keep Windows
ECHO -------------------------------------------------------------------------------
ECHO 1. Reinstalla Windows mantenendo i tuoi programmi (non tutti funzioneranno),
ECHO i drivers e salvando i documenti presenti nelle cartelle standard di Windows.
ECHO 1.
ECHO Reinstall Windows using your old programs (some programs will not work)
ECHO /drivers and saving the documents located on the default windows folders.
ECHO -------------------------------------------------------------------------------
ECHO 2. Torna al menu' precedente.
ECHO 2.
ECHO Come back to the previous menu.
ECHO -------------------------------------------------------------------------------
ECHO 3. X riavviare clicca sulla X nell'angolo in alto a destra della finestra nera.
ECHO 3.
ECHO To reboot click on the X in the upper right corner of the black window.
ECHO -------------------------------------------------------------------------------

set scegli_mantieni_windows=
set /p scegli_mantieni_windows=Scegli una opzione tra quelle proposte.
if '%scegli_mantieni_windows%'=='1' goto avvia_mantieni_windows
if '%scegli_mantieni_windows%'=='2' goto disinfetta_windows

ECHO "%scegli_mantieni_windows%" non una opzione valida.
ECHO.
goto mantieni_windows

:avvia_mantieni_windows

echo -----------------------------------------------------------------------
echo Inserire il disco di installazione di Windows e poi riavviare,
echo cliccando sulla X nell'angolo in alto a destra della finestra nera.
echo QUANDO REINSTALLATE WINDOWS,SCEGLIETE PERSONALIZZATA (UTENTI ESPERTI)
echo E METTETELO NELLA STESSA PARTIZIONE DOV'ERA STATO INSTALLATO PRIMA.
echo *NON DOVETE FORMATTARE IL DISCO RIGIDO*
echo SE AVETE SCELTO IN MODO CORRETTO,DOVREBBE APPARIRVI QUESTO MESSAGGIO :
echo .
echo La partizione selezionata potrebbe contenere i file di un altra
echo installazione precedente di Windows. In tal caso,i file e le cartelle
echo verranno spostati in una cartella di nome Windows.old.
echo Le informazioni contenute in tale cartella saranno accessibili,
echo ma non sar possibile utilizzare la versione precedente di Windows.
echo .
echo DOPO AVER REINSTALLATO WINDOWS,cliccate su Computer,poi cliccate su
echo (C:),infine cliccate con il tasto destro del mouse sul file fase3 ed
echo eseguitelo come amministratore.
echo .
echo ------------------------------------------------------------------------
echo Insert the Windows installation disc into the drive and reboot,
echo clicking on the X in the upper right corner of the black window.
echo WHEN YOU REINSTALL WINDOWS,CHOOSE CUSTOM INSTALLATION.
echo and put it in the same partition where it had been installed before.
echo .
echo *YOU DON'T HAVE TO FORMAT YOUR DISK*
echo if you did everything right,you should see this message :
echo .
echo The partition you selected might contain files from a previous Windows
echo installation. If it does,these files and folders will be moved to a folder
echo named Windows.old. You will be able to access the information in Windows.old
echo but you will not be able to use your previous version of Windows.
echo .
echo AFTER HAVING REINSTALLED WINDOWS,click on Computer,drive (C:) and then
echo click the right mouse button over fase3 and run it as administrator.
echo ------------------------------------------------------------------------
pause
shutdown -r -t 0

:reinstalla_windows

cls

ECHO -------------------------------------------------------------------------------
ECHO Reinstalla Windows
ECHO -------------------------------------------------------------------------------
ECHO Reinstall Windows
ECHO -------------------------------------------------------------------------------
ECHO 1. Reinstalla Windows rimuovendo sia i programmi che i documenti.
ECHO 1.
ECHO Reinstall Windows removing your old programs and documents.
ECHO -------------------------------------------------------------------------------
ECHO 2. Torna al menu' precedente.
ECHO 2.
ECHO Come back to the previous menu.
ECHO -------------------------------------------------------------------------------
ECHO 3. X riavviare clicca sulla X nell'angolo in alto a destra della finestra nera.
ECHO 3.
ECHO To reboot click on the X in the upper right corner of the black window.
ECHO -------------------------------------------------------------------------------

set scegli_reinstalla_windows=
set /p scegli_reinstalla_windows=Scegli una opzione tra quelle proposte.
if '%scegli_reinstalla_windows%'=='1' goto avvia_reinstalla_windows
if '%scegli_reinstalla_windows%'=='2' goto mantieni_windows

ECHO "%scegli_reinstalla_windows%" non una opzione valida.
ECHO.
goto reinstalla_windows

:avvia_reinstalla_windows

set drive=c:

if not exist %drive%\reinstallazione\drive_c.txt set drive=d:

if exist %drive%\reinstallazione\windows_xp.txt goto windows_xp
if exist %drive%\reinstallazione\windows_7.txt goto windows_7
if exist %drive%\reinstallazione\windows_vista.txt goto windows_vista

:windows_xp

cls

ren windows windows_old
ren "documents and settings" "documents and settings_old"
ren "program files" "program files_old"

echo -------------------------------------------------------------------
echo Inserire il disco di installazione di Windows e poi riavviare,
echo cliccando sulla X nell'angolo in alto a destra della finestra nera.
echo QUANDO REINSTALLATE WINDOWS,NON DOVETE FORMATTARE IL DISCO RIGIDO.
echo -------------------------------------------------------------------
echo Insert the Windows installation disc into the drive and reboot,
echo clicking on the X in the upper right corner of the black window.
echo WHEN YOU REINSTALL WINDOWS,YOU DON'T HAVE TO FORMAT YOUR HARD DISK.
echo -------------------------------------------------------------------

pause
shutdown -r -t 0

:windows_7

cls

ren windows windows_old
ren users users_old
ren "program files" "program files_old"

echo -------------------------------------------------------------------
echo Inserire il disco di installazione di Windows e poi riavviare,
echo cliccando sulla X nell'angolo in alto a destra della finestra nera.
echo QUANDO REINSTALLATE WINDOWS,NON DOVETE FORMATTARE IL DISCO RIGIDO.
echo -------------------------------------------------------------------
echo Insert the Windows installation disc into the drive and reboot,
echo clicking on the X in the upper right corner of the black window.
echo WHEN YOU REINSTALL WINDOWS,YOU DON'T HAVE TO FORMAT YOUR HARD DISK.
echo -------------------------------------------------------------------

pause
shutdown -r -t 0

:windows_vista

cls

ren windows windows_old
ren users users_old
ren "program files" "program files_old"

echo -------------------------------------------------------------------
echo Inserire il disco di installazione di Windows e poi riavviare,
echo cliccando sulla X nell'angolo in alto a destra della finestra nera.
echo QUANDO REINSTALLATE WINDOWS,NON DOVETE FORMATTARE IL DISCO RIGIDO.
echo -------------------------------------------------------------------
echo Insert the Windows installation disc into the drive and reboot,
echo clicking on the X in the upper right corner of the black window.
echo WHEN YOU REINSTALL WINDOWS,YOU DON'T HAVE TO FORMAT YOUR HARD DISK.
echo -------------------------------------------------------------------

pause
shutdown -r -t 0


fase3.bat

CODE
@echo off

set drive=c:
set USMT_WORKING_DIR=%drive%\reinstallazione\temp

if not exist %drive%\reinstallazione\drive_c.txt set drive=d:

goto fine_lavoro

:controlla_bit_vecchio_os

if exist %drive%\windows.old\windows\system32\wow64.dll goto controlla_bit_nuovo_os

:controlla_bit_nuovo_os

if not exist c:\windows\system32\wow64.dll goto esci

ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto windows_xp_x86

ver | find "2003" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

ver | find "2000" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

ver | find "NT" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

if not exist %SystemRoot%\system32\systeminfo.exe goto warnthenexit

:italiano
systeminfo | find "Nome SO" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto turco

:turco
systeminfo | find "Isletim Sistemi Adi" > %drive%\reinstallazione\new_os_name.txt
FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto norvegesedanese

:norvegesedanese
systeminfo | find "OS-navn" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto olandese

:olandese
systeminfo | find "Naam van besturingssysteem" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto inglese

:inglese
systeminfo | find "OS Name" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto polacco

:polacco
systeminfo | find "Nazwa systemu operacyjnego" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto brasiliano

:brasiliano
systeminfo | find "Nome do sistema operacional" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto francese

:francese
systeminfo | find "Nom du systme d'exploitation" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto portoghese

:portoghese
systeminfo | find "Nome do SO" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto persiano

:persiano
systeminfo | find "Opercis rendszer neve" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto tedesco

:tedesco
systeminfo | find "Betriebssystemname" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto suomi

:suomi
systeminfo | find "Kyttjrjestelm" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto svedese

:svedese
systeminfo | find "Operativsystemnamn" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto spagnolo

:spagnolo
systeminfo | find "Nombre del sistema operativo" > %drive%\reinstallazione\new_os_name.txt

FOR /F "usebackq delims=: tokens=2" %%i IN (%drive%\reinstallazione\new_os_name.txt) DO set vers=%%i

echo %vers% | find "" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

:osversion
echo %vers% | find "Windows 7" > nul
if %ERRORLEVEL% == 0 goto controlla_bit_windows_7

echo %vers% | find "Windows Server 2008" > nul
if %ERRORLEVEL% == 0 goto warnthenexit

echo %vers% | find "Windows Vista" > nul
if %ERRORLEVEL% == 0 goto controlla_bit_windows_vista

echo %vers% | find "Windows XP" > nul
if %ERRORLEVEL% == 0 goto controlla_bit_windows_xp

goto warnthenexit

:controlla_bit_windows_7

if exist %drive%\windows\system32\wow64.dll goto windows_7_amd64
if not exist %drive%\windows\system32\wow64.dll goto windows_7_x86

:controlla_bit_windows_vista

if exist %drive%\windows\system32\wow64.dll goto windows_vista_amd64
if not exist %drive%\windows\system32\wow64.dll goto windows_vista_x86

:controlla_bit_windows_xp

if exist %drive%\windows\system32\wow64.dll goto windows_xp_amd64
if not exist %drive%\windows\system32\wow64.dll goto windows_xp_x86

:windows_xp_amd64
echo windows_xp_amd64
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=64

xcopy %drive%\reinstallazione\usmt\amd64\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\amd64\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:windows_7_amd64
echo windows_7_amd64
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=64

xcopy %drive%\reinstallazione\usmt\amd64\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\amd64\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
rem ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:windows_vista_amd64
echo windows_vista_amd64
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=64

xcopy %drive%\reinstallazione\usmt\amd64\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\amd64\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:windows_xp_x86
echo windows_xp_x86
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=32

xcopy %drive%\reinstallazione\usmt\x86\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\x86\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:Miguser.xml /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:windows_7_x86
echo windows_7_x86
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=32

xcopy %drive%\reinstallazione\usmt\x86\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\x86\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:windows_vista_x86
echo windows_vista_x86
pause
cls

:ripristina_files_e_settaggi

ECHO --------------------------------------------------------------------------
ECHO 1. Ripristina i files e i settaggi della vecchia installazione di Windows.
ECHO Restore files and settings from the old Windows installation.
ECHO --------------------------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO --------------------------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristina_files_e_settaggi
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_files_e_settaggi

:avvia_ripristina_files_e_settaggi

set MIG_OFFLINE_PLATFORM_ARCH=32

xcopy %drive%\reinstallazione\usmt\x86\*.* /e /v /y %drive%\Windows\USMT\

cd %drive%\reinstallazione\usmt\x86\

scanstate.exe %drive%\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:%drive%\windows.old\windows
pause
loadstate.exe %drive%\store /v:13 /c /lac /lae /i:miguser.xml /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress
pause

:ripristina_drivers

ECHO ------------------------------------------------------
ECHO 1. Ripristina i drivers di Windows.
ECHO Restore Windows Drivers.
ECHO ------------------------------------------------------
ECHO 2. Termina lavoro.
ECHO End job.
ECHO ------------------------------------------------------

set scegli_menu_principale=
set /p scegli_menu_principale=Scegli una opzione tra quelle proposte.
if '%scegli_menu_principale%'=='1' goto avvia_ripristino_drivers
if '%scegli_menu_principale%'=='2' goto fine_lavoro

ECHO "%scegli_menu_principale%" non una opzione valida.
ECHO "%scegli_menu_principale%" is not a valid option.
ECHO.
goto ripristina_drivers

:avvia_ripristino_drivers
cd %drive%\Reinstallazione\DD
pause
ddc r /source:"%drive%\reinstallazione\backup_drivers_dd"
pause
goto fine_lavoro

:esci
msg * La migrazione da un sistema operativo a 64 bit verso uno a 32 bit non e' supportata.
msg * Migration from O.S 64 bit to O.S 32 bit is not supported.
pause

:warnthenexit
msg * Sistema operativo non supportato.
msg * Operating System Not Supported.
pause

:fine_lavoro
msg * Lo script ha terminato il ripristino di Windows.
msg * Windows restoring job ended.
pause
6 Dec 2009
Read Topic
Lguest + Firadisk : a new way to Boot and Run Windows in RAM under Linux ?
Hello,

I'm not so experienced,but I found an interesting project. You can read about it here :

http://swtch.com/lguest/

Is it possible to combine Lguest with Firadisk to Boot & Run an ISO image of Windows in RAM under Linux ?
21 Nov 2009
Read Topic
Let's talk about how to run Windows under Linux without virtualization/emulation
Hello,

with this project I want to find alternative ways to run Windows under Linux without virtualization. I'm looking for new kinds of technologies that might be interesting to use as the basis for this project,for example :

Cooperative Linux is the first working free and open source method for optimally running Linux on Microsoft Windows natively. More generally, Cooperative Linux (short-named coLinux) is a port of the Linux kernel that allows it to run cooperatively alongside another operating system on a single machine. For instance, it allows one to freely run Linux on Windows 2000/XP, without using a commercial PC virtualization software such as VMware, in a way which is much more optimal than using any general purpose PC virtualization software.

it is a good idea,but I want to do something better. Why ?

For a lot of reasons :

a) Linux has a better file system than Windows.
b) Linux is safer than Windows
c) Wine is good,but it doesn't offer the best compatibility with Windows
d) Virtualization software is good for almost every kind of Windows software (except for games) but it takes too much resources on the computer
e) Linux needs to offer the maximum compatibility for Windows professional applications and for newbies
f) Linux lacks a lot of drivers
10 Nov 2009
Read Topic
VHD image file + Ram disk file integration
I've installed Windows 7 on the USB disk,too. Now there are two partitions :

C:\ ---> Windows 7

C:\Windows\system32>bcdedit

Windows Boot Manager

CODE
identificatore          {bootmgr}
device                  boot
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {b4d91692-bae7-11de-be91-876037d6a2b5}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30


Caricatore di avvio di Windows

CODE
identificatore          {current}
device                  boot
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  it-IT
inherit                 {bootloadersettings}
testsigning             Yes
osdevice                boot
systemroot              \Windows
resumeobject            {b4d91692-bae7-11de-be91-876037d6a2b5}
nx                      AlwaysOff
detecthal               Yes


F:\ ---> Windows XP

boot.ini

CODE
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows FLP" /noexecute=optin /fastdetect
c:\grldr="Grub4Dos"


menu.lst

CODE
title Boot 7 from RAMDisk
find --set-root /7-ram_2_6G.vhd
map --mem /7-ram_2_6G.vhd (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr


my aim is to :

1) Boot Windows XP from the Windows 7 boot loader
2) Boot 7-ram_2_6G.vhd from the Windows 7 boot loader
3) Load 7-ram_2_6G.vhd into RAM memory after having chosen Windows XP instead of Windows 7 at the first boot selection

to do it I need to :

1) add an entry for Windows XP to the Windows 7 boot loader
2) fix boot.ini and menu.lst on drive F:
6 Nov 2009
Read Topic
Firadisk and .VHD /.IMG images
I'm running Windows 7 from RAM for all my days activites. No problems at all. I have two disks on my computer. On the first one I installed Windows Vista and on the second Windows XP. When my computer starts,I choose to boot from disk n.2. These are the boot configuration files located on disk 2 :

boot.ini

CODE
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows FLP" /noexecute=optin /fastdetect
c:\grldr="Grub4Dos"


menu.lst

CODE
title Boot 7 from RAMDisk
find --set-root /7-ram.img
map --mem /7-ram.img (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr


7-ram.img is saved on \disk 2. To make Windows 7 bootable from the RAM Disk,I used the Karyonix commands :

CODE
bcdedit /store "virtual ram drive:"\boot\bcd /set {bootmgr} device boot
bcdedit /store "virtual ram drive:"\boot\bcd /set {default} device boot
bcdedit /store "virtual ram drive:"\boot\bcd /set {default} osdevice boot

Extras
Options
Options
Interests
No Information
Other Information
Country:: Italy
Last Visitors


9 Jun 2010 - 15:47
exsolderman


2 Jun 2010 - 8:38
Todd


17 Jan 2010 - 4:20
Cherry


29 Dec 2009 - 7:58


22 Dec 2009 - 20:58
Comments
Other users have left no comments for Marietto2009.
Friends
There are no friends to display.
* Profile views updated each hour