FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-30-2010, 03:03 PM
 
Default Simplifying making a USB install key

Ok, where/how do I submit this to the CentOS project?

Here's a complete script - anyone, *please* feel free to test it, and let
me know if I've missed anything.

Thanks in advance.

mark

#!/bin/bash
# ###################################
# Author: mark roth
# Date: 30 Apr. 2010
# Purpose: to create a working, bootable CentOS install on a USB key
#####################################

if [[ $# < 2 ]]; then
echo "usage: $0 <devname> <path/to/install.iso>"
echo " Example: $0 sdb /scratch/CentOS-5.4-bin-DVD.iso"
echo " Note: you must install livecd-tools before running this."
exit
fi

/sbin/sfdisk -n -uM /dev/$1 << EOF
,10,b,*
,,83
;
;
EOF

mkfs -t vfat /dev/${1}1
mkfs /dev/${1}2

/usr/bin/livecd-iso-to-disk /scratch/CentOS-5.4-i386-LiveCD.iso /dev/${1}1
mount /dev/${1}2 /mnt
cp $2 /mnt/

# end

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 01:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org