Author Topic: Unattended, multi-partition Win2K boot/setup CD  (Read 2101 times)

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« on: December 27, 2001, 01:21:58 PM »
hi,
i\'ve made the bootable win2k setup cd with sp2 slipstreamed in (using ezcd 5.x), but want to add some more beef:  i want to make it so that it will install at least 2 partitions - one for system/programs and another for user profile data (including the \"documents and settings\" folders that can be directed there using the registry switch) to avoid the loss of data when the system partition crashes.  anyone know if this is possible/how to do it?
also, is it possible to slipstream ie5.5 and the other updates (security, etc.) for win2k into this install?  i haven\'t tried this yet, but am guessing/hoping it\'s nearly the same as slipstreaming sp2...
thx,
kgb

Offline Big_Z

  • member
  • Global Moderator
  • Full Member
  • *****
  • Posts: 182
  • Karma: +0/-0
    • View Profile
Unattended, multi-partition Win2K boot/setup CD
« Reply #1 on: December 28, 2001, 09:50:56 AM »
This is documented in the Microsoft knowledge base and is done through an unatteded install. Go do a search in the M$ KB.
IE, DX8.1 and hotfixes cannot be slipstreamed, but you can use the unattended installation to deploy these progams after Windows is installed.

eekarum

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #2 on: December 31, 2001, 09:10:57 AM »
use my winnt.sif (unattended script for installing windows)
it will put your \"Program Files\" and \"Documents and Settings\" folders on another drive if you want it to.
 
in this forum , the topic is
here:
http://www.thetechguide.com/forum/showflat...b=5&o=&fpart=12

Anonymous

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #3 on: January 02, 2002, 05:06:38 PM »
Look for a utility called \"Diskpart\".  It will allow you to format your hardrives just about any way you want.  It has been a while since I used it so I could be wrong.  Best way is to do an unattended and use winnt.sif from a floppy like the guy above posted.  You can do some really cool stuff with unattended and even install applications and hotfixes during the setup. We have a complete unattended install of w2K server here at work that everyone loves.  Hell i have even incorporated RAID drivers that are not included on the CD right in also.  Check it out on M$ site.

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #4 on: January 03, 2002, 03:01:21 PM »
thanks.  i\'ve actually got the winnt.sif working from the cd, too.  i\'ll look for diskpart and see if that works - where should i look for it?

kgb

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #5 on: January 03, 2002, 03:19:33 PM »
where in your winnt.sif do you create the alternate partitions?  if you still have to create them at the beginning, how do you create multiple primary partitions (it seems that every time i use the installers partitioner, only the system partition comes out as a primary and the others come out as extended partitions & non-primary)?  is the winnt.sif file capable of specifying the sizes of the new partitions?  i also wonder whether the dispart util can be run before the full install takes place, so that the partitions are already there...

kgb

eekarum

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #6 on: January 03, 2002, 10:17:13 PM »
i have used partition magic , because of SETUPLDR\'s shortcomings

but.... i found a much better way to format primary partitions using DOS scripts, you can run them from your BOOT-CD menu.......

attached to this post are my .BAT scripts and .GHO ghost images used for formatting NTFS , Ext2 , and FAT32 from the DOS command line : (ALL ARE PRIMARY PARTIONS)

NTFS v.5 (win2000),
LINUX Ext2,
FAT16 (FAT32 if greater than 2gb)

i use a norton ghost-image of a tiny 300k primary partition formatted with NTFS - filesystem compression enabled(which is scalable in size -- fills and formats the entire disk to NTFS in about 2 seconds). So far it has worked up to 100 GB partitions.

This allows me to format NTFS primary partitions the way i want without using the MS Setup which usually destroys data and is very slow, can\'t be fully automated from answer file, etc..

extract all the files to your DOS directory in the root of your bootable CD,
assumes you have the following set:
a %CDROM% variable (set)
a %RAMD% variable (set)
a DOS directory
a DOSGHOST directory (where your ghost program is)
yes, you need to have ghost in order to use these scripts

(the included SEL.EXE came from Bart Lagerweij\'s old site)

eekarum

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #7 on: January 03, 2002, 10:22:36 PM »
oops, here is the file .

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #8 on: January 06, 2002, 01:52:52 AM »
i couldn\'t see/get those files you tried to post.

i did get ahold of diskpart and am trying to get it to work (crashed the hd once already).  it asks for a partition type, in hex - e.g. 0x06 is the default.  what is this?  what do i need to use for win2k ntfs?  what little i\'ve seen is that 0x06 might be for fat16 and that maybe 0x07 is for HPFS/NTFS?

another problem i\'m having is that i can\'t run diskpart until the GuiRunOnce part of the unattended install and by then windows has labelled the cdrom as drive d:.  i want the cd to be at the end of the \"alphabet chain\".  how can i do this?

kgb

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #9 on: January 06, 2002, 01:59:53 AM »
also, i\'ve gotten it to install ie5.5sp2 in the GuiRunOnce stage as well as the applicable hotfixes for pre-sp3.  i\'ve got it installing directx8.1 and media player 7.1, too, but i\'m having an issue suppressing the rebooting those installers trigger.  i have these scripted in batch files and separated and it seems that after one of them forces a reboot, the installer comes back into GuiRunOnce, only as if it has skipped the next batch file and gone to the one after that (say running batch files 1, 2, & 3, reboot while executing 1, after reboot, runs #3 - i\'ve upped the autologon count to handle this).  don\'t know why it\'s doing this, either, but am thinking a temp workaround might be something like inserting a dummy batch that is no problem when skipped...

kgb

eekarum

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #10 on: January 06, 2002, 12:41:38 PM »
i have gotten everything to install, using a VBS script. are you using a VBS script or a CMD, BAT, etc...(?) i will find my VBS script and post it soon.

Keep in mind, anything installed during Setup such as office XP, Exchange, SQL server, etc... will run with the default permissions for the SYSTEM user account, which i believe is better than \"Administrator\" but a few programs might fail because of this. it could also be a security risk, or enhancement, depending on your point of view.

Don\'t know why the files i attached aren\'t showing up here, so basically, here\'s how to make your own:
create and format a primary partition from within win XP using DISKMGMT.MSC, (this way it is truly NTFS, not originally converted from DOS)
Then go into partition magic and reduce that volume to as small as it will possibly go  (remember, it is an empty filesystem with no files or recycle bins ,system volume folders, etc)
now using ghost, make an image of that partition using max. compression. now you have an impossibly small partition inside that ghost img.
All FORMAT.EXE -type utilities have these kind of blueprint images embedded into their source code , that\'s how they work, anyway.

the batch file may look like this : (where NTFS.GHO is the name of your ghost img)

@ECHO OFF
path=%RAMD%:
cd %RAMD%:
copy %CDROM%:DOSGHOSTghost.exe %RAMD%:ghost.exe > NUL
copy %CDROM%:DOSGHOSTghost.env %RAMD%:ghost.env > NUL
%CDROM%:DOSattrib -r -a -s -h %RAMD%:*.* /S /D
%CDROM%:DOSsel.exe menu Select_fixed_disk 1 2 3 4 5 6 7 8 9
if \"%sel%\" == \"\" goto END
set dummy=%sel%
set disk=%dummy%
%CDROM%:DOSsel menu Format_which_partition_on_disk_%sel%_? 1 2 3 4 5 6 7 8 9
if \"%sel%\" == \"\" goto END
%RAMD%:ghost.exe -clone,mode=pload,src=%CDROM%:DOSNTFS.GHO:1,dst=%disk%:%sel% -QUIET -SURE -FX
echo Operation completed.

:CHOICE
@ECHO OFF
%CDROM%:DOSsel menu Reboot_? yes no
if \"%sel%\" == \"\" goto END
if \"%sel%\" == \"yes\" goto REBOOT
if \"%sel%\" == \"no\" goto END
goto CHOICE

:REBOOT
%CDROM%:DOSREBOOTFD.EXE

:END
set comspec=%CDROM%:DOScommand.com
path=%CDROM%:DOS

Old_Man

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #11 on: January 07, 2002, 02:59:57 AM »
You are presuming we have access to Partition Magic and Ghost!

I\'ve created a auto loading disk that uses a free version of FDISK that is scriptable. It can automatically remove existing partitions and create new ones of any size.  The program is at the following URL: http://www.23cc.com/free-fdisk/  There is a newer version of the program on this site then I have tested, however everything should work as listed.

Granted, this creates a FAT disk (either 16 or 32) for later conversion to NTFS (if required), but it still uses free utilities.

Basically I got the idea from Windows Admin Scripting Little Black Book. My script uses ideas from the book and a modified version of the Win98 recovery disk.  It boots to a basic install without CD-ROM drivers loaded and tests to see if the hard drive has already been FDISK\'d.

If the drive hasn\'t been formatted, it calls the Free-FDISK program to clear the partitions, reapplies new ones to whatever size you select by the option switches, then reboots.

During the reboot, the system loads the CD-ROM drivers. The existence of a test file indicates the drive has been FDISK\'d. The script starts formatting with the MS-DOS format commands undocumented /autotest switch.

Then using standard uninstall.txt files or MSBATCH.INF files, you can start your automatic install of NT/Win9X, etc... My example uses a network load point, but it is easily modified to use the CD

I used this script extensively when I shut down a corporate office recently.  I had to reload all the PC\'s with a standard download so they could be sold.  I set up a download on a network sharepoint, setup an automatic, random machine name generator, created multiple copies of this bootdisk and did a complete format/reload of over two dozen systems at the same time.

My sample script uses 3Com networking cards because they have a utility that tests for the differenct types of cards and can branch to a different link based on which card is present. I modified this script for home use and included a branch for Intel\'s NIC cards also, but now can\'t find the disk I modified.

My home disk also tests for the presence of a second hard disk, and if it detects one, offers to FDISK and format that one as well.

Example script follows:  (Please note, it is a compilation of two different scripts, a CD-ROM boot and a network boot, combined just in this posting.  I am aware of the fact I don\'t need CD-ROM drivers to do a network load.  Also because of the way I combined the two scripts, my label branching may not match up. I just included the extra code as an example of what I\'ve done.  It\'s commented and you should be able to use it yourself with modifications).

Also note that the ini.exe and unique.exe are old DOS utilities that I had laying around and put to use for the task.  INI.exe edits strings in INI files based on their titles.  Unique.exe generates a unique number that I append onto the end of my \"PCBoot\" string. They are needed only for a network load.  Since I am not a subscriber to this group, I cannot post attachments.  If you require the files, post a reply to this message and I\'ll email them to you.

@echo off
path a:;a:net

rem ***********************************************
rem ***  Test for new FDISK
rem ***********************************************
:newdisk
cls
if exist FORMAT.TXT goto :format
if not exist FORMAT.TXT goto :fdisk

rem ***********************************************
rem ***  Auto FDISK, change config.sys and Reboot
rem ***********************************************
:fdisk
echo This system will reboot when complete
echo.
echo Deleting all current partitions ...
fdisk /clear >nul
echo Creating new partitions ...
rem fdisk /auto >nul
fdisk /prio:2000 1
echo. >A:format.txt
copy a:config.cd config.sys >nul
fdisk /reboot


rem ***********************************************
rem ***  Auto Format and restore config.sys
rem ***********************************************
:format
echo Formatting Drive ...
format c: /autotest /v:home
del a:format.txt
copy config.cln config.sys >nul
echo Finished FDISK and Format
MSCDEX.EXE /D:oemcd001 /L:E
lh smartdrv

(NOTE: AT THIS POINT YOU CAN START AN INSTALL FROM THE CD OR CONTINUE WITH A NETWORK INSTALL)


goto :findnic

rem ***********************************************
rem ***  Find 3Com NIC
rem ***********************************************
:findnic
a:net3link-id.exe > nul:
if errorlevel 97 goto 90x
if errorlevel 96 goto 90x
if errorlevel 95 goto 90x
if errorlevel 94 goto 90x
if errorlevel 93 goto 90x
if errorlevel 92 goto 90x
if errorlevel 91 goto 90x
if errorlevel 90 goto 90x
if errorlevel 34 goto 5x9
if errorlevel 27 goto 5x9
if errorlevel 26 goto 5x9
if errorlevel 25 goto 5x9
if errorlevel 24 goto 5x9
if errorlevel 13 goto 5x9
if errorlevel 12 goto 5x9
if errorlevel 11 goto 5x9
if errorlevel 10 goto 5x9
goto nic_error


rem ***********************************************
rem ***  Copy Config Files for Network Client
rem ***********************************************
:5x9
a:netini.exe a:netsystem.ini \"network drivers\" \"netcard\" \"elnk3.dos\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"netcard\" \"ms$elnk3,1,MS$ELNK3,1\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"lana0\" \"ms$elnk3,1,ms$netbuei\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"lana1\" \"ms$elnk3,1,ms$ndishlp\" > nul:
a:netini.exe a:netprotocol.ini \"MS$NDISHLP\" \"BINDINGS\" \"ms$elnk3\" > nul:
a:netini.exe a:netprotocol.ini \"ms$netbuei\" \"BINDINGS\" \"ms$elnk3\" > nul:

goto network


:90x
a:netini.exe a:netsystem.ini \"network drivers\" \"netcard\" \"el90x.dos\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"netcard\" \"ms$el90x,1,MS$EL90x,1\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"lana0\" \"ms$el90x,1,ms$netbuei\" > nul:
a:netini.exe a:netprotocol.ini \"network.setup\" \"lana1\" \"ms$el90x,1,ms$ndishlp\" > nul:
a:netini.exe a:netprotocol.ini \"MS$NDISHLP\" \"BINDINGS\" \"ms$el90x\" > nul:
a:netini.exe a:netprotocol.ini \"ms$netbuei\" \"BINDINGS\" \"ms$el90x\" > nul:
goto network

rem ***********************************************
rem ***  Start Network and network download
rem ***********************************************
:network
a:netini.exe a:netsystem.ini \"network\" \"ComputerName\" nul > nul:
REM **BEGIN RANDOM COMPUTER NAME GENERATOR**
a:netunique.exe /f:a:netname.txt /s:ComputerName=PCBoot$
type a:netname.txt>>a:netsystem.ini
REM **END COMPUTER NAME GENERATOR*
a:netnet start
net use p: (Server sharepoint)
call p:netload.bat


:end

Offline Twinkie

  • member
  • Full Member
  • ***
  • Posts: 168
  • Karma: +0/-0
    • View Profile
Unattended, multi-partition Win2K boot/setup CD
« Reply #12 on: January 07, 2002, 12:56:56 PM »
I would like to see those files if possible.  Could you send me a zip of them.  Samples would be greatly appreciated.

Email me

Thanks,
Hope this Helps,

Twinkie

thatkgbagent

  • Guest
Unattended, multi-partition Win2K boot/setup CD
« Reply #13 on: January 07, 2002, 03:24:53 PM »
i would like a copy of the files, too, if possible.  if their size is not that big, email them to me here:  thatkgbagentEmail Removed
otherwise, email me there, and i\'ll get another address to you that can take larger sizes.

thanks,

kgb