Installing to USB-HDD - Modifications to UBCD Install Script

Discussion/announcements about test/beta releases of UBCD will be posted here.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
delicatepc
Posts: 49
Joined: Mon Jun 01, 2009 8:30 am

Installing to USB-HDD - Modifications to UBCD Install Script

#1 Post by delicatepc » Mon Jul 27, 2009 12:12 pm

I was having trouble installing UBCD to USB HDD so modified the install script slightly. The script after modifications works great for USB sticks and USB HDDs.

Code: Select all

SET VOLUME_ID=

format "%a2%" /FS:fat32 /V:%VOLUME_ID% /x /q

"%~dp0\syslinux" -ma -d boot\syslinux %a2% -f

xcopy "%a1%\*" %a2% /s /h /q
Notice the removed volume label? Thats because windows will want you to type in the volume label during format. Removing the label allows to proceed normally. Also added "-f" to force install in the syslinux part (otherwise it complains about it being a non removal HDD.

I also have put together a prep-guide of what you need to do to the USB HDD before running the install script:
Only required on USB HDDs! Don’t use on USB STICKS!

1. Run administrator command prompt
2. diskpart
3. list disk
4. select Disk 1 (Replace 1 with number reflecting your USB Drive)
5. clean ----- NOTE: THIS WILL DELETE ALL DATA AND PARTITIONS OFF THE DRIVE.
6. create partition primary size=16000 - I choose 16GB but its up to you
7. select partition 1
8. format fs=fat32 quick
9. active
10. assign
11. You now have a 16GB partition that we can install GoldStick to.
Is it possible to integrate the Dispart portion into the script (assume you would have to indicate whether you installing to a USB stick or USB HDD in the beginning though).

thanks,
dpc

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#2 Post by Icecube » Mon Jul 27, 2009 12:32 pm

It is not necessary to format the drive (USB stick or USB HDD) every time (or even the first time) in most cases.

The only thing you need to do is to run the Syslinux installer (if X: is the partition on the USB drive.)

Code: Select all

syslinux -ma -f -d boot\syslinux X:
and to extract the files of the UBCD iso to the root of your USB drive.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

delicatepc
Posts: 49
Joined: Mon Jun 01, 2009 8:30 am

#3 Post by delicatepc » Tue Jul 28, 2009 2:15 pm

Icecube wrote:

Code: Select all

syslinux -ma -f -d boot\syslinux X:
I had to put the -f last otherwise it (syslinux) would complain. It didnt make sense on why it wanted it last though.

Code: Select all

syslinux -ma -d boot\syslinux X: -f 

Post Reply