It is currently Sat Oct 25, 2014 8:00 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Installing to USB-HDD - Modifications to UBCD Install Script
PostPosted: Mon Jul 27, 2009 12:12 pm 
Offline

Joined: Mon Jun 01, 2009 8:30 am
Posts: 49
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:
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:
Quote:
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 27, 2009 12:32 pm 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
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:
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/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 28, 2009 2:15 pm 
Offline

Joined: Mon Jun 01, 2009 8:30 am
Posts: 49
Icecube wrote:
Code:
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:
syslinux -ma -d boot\syslinux X: -f


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group