Home > centOS, Fedora 12 > Linux how to make iso file and write to usb as bootable. Or how to make iso to customized iso and then repack to use in cdrom or usb

Linux how to make iso file and write to usb as bootable. Or how to make iso to customized iso and then repack to use in cdrom or usb

Download the iso file original one. Extract it to somewhere first. Lets say /tmp/centos

To make USB bootable

1. Modify or Add isolinux/ks.cfg

install

lang en_US.UTF-8

keyboard us

timezone –utc Europe/Brussels

rootpw –iscrypted $6$i5qEWD.

selinux –disabled

authconfig –enableshadow –passalgo=sha512

firewall –service=ssh

bootloader –location=mbr –driveorder=sda –append=”rhgb quiet”

vnc –password=1234

network –bootproto=static –ip=192.168.1.125 –netmask=255.255.255.0 –gateway=192.168.1.1 –nameserver=192.168.1.1

 

2. Make ISO

# mkisofs -o /tmp/cd.iso /home/sun/Downloads/centos/
I: -input-charset not specified, using utf-8 (detected in locale settings)
Using RPM_G000.;1 for  /RPM-GPG-KEY-CentOS-Security-6 (RPM-GPG-KEY-CentOS-Testing-6)
Using RPM_G001.;1 for  /RPM-GPG-KEY-CentOS-Testing-6 (RPM-GPG-KEY-CentOS-Debug-6)
Using RPM_G002.;1 for  /RPM-GPG-KEY-CentOS-Debug-6 (RPM-GPG-KEY-CentOS-6)
Using KS000.CFG;1 for  /home/sun/Downloads/centos/isolinux/ks.cfg (ks.cfg~)
Using DEVIC000.RPM;1 for  /home/sun/Downloads/centos/Packages/device-mapper-event-1.02.53-8.el6.i686.rpm (device-mapper-multipath-libs-0.4.9-31.el6.i686.rpm)
Using DEVIC001.RPM;1 for  /home/sun/Downloads/centos/Packages/device-mapper-multipath-libs-0.4.9-31.el6.i686.rpm (device-mapper-1.02.53-8.el6.i686.rpm)
Using IPTAB000.RPM;1 for  /home/sun/Downloads/centos/Packages/iptables-1.4.7-3.el6.i686.rpm (iptables-ipv6-1.4.7-3.el6.i686.rpm)
Using SELIN000.RPM;1 for  /home/sun/Downloads/centos/Packages/selinux-policy-targeted-3.7.19-54.el6.noarch.rpm (selinux-policy-3.7.19-54.el6.noarch.rpm)
Using OPENS000.RPM;1 for  /home/sun/Downloads/centos/Packages/openssh-server-5.3p1-20.el6.i686.rpm (openssh-clients-5.3p1-20.el6.i686.rpm)
Using NCURS000.RPM;1 for  /home/sun/Downloads/centos/Packages/ncurses-base-5.7-3.20090208.el6.i686.rpm (ncurses-5.7-3.20090208.el6.i686.rpm)
Using OPENS001.RPM;1 for  /home/sun/Downloads/centos/Packages/openssh-clients-5.3p1-20.el6.i686.rpm (openssh-5.3p1-20.el6.i686.rpm)
Using E2FSP000.RPM;1 for  /home/sun/Downloads/centos/Packages/e2fsprogs-libs-1.41.12-3.el6.i686.rpm (e2fsprogs-1.41.12-3.el6.i686.rpm)
Using CRACK000.RPM;1 for  /home/sun/Downloads/centos/Packages/cracklib-2.8.16-2.el6.i686.rpm (cracklib-dicts-2.8.16-2.el6.i686.rpm)
Using COREU000.RPM;1 for  /home/sun/Downloads/centos/Packages/coreutils-8.4-9.el6.i686.rpm (coreutils-libs-8.4-9.el6.i686.rpm)
Using NCURS001.RPM;1 for  /home/sun/Downloads/centos/Packages/ncurses-5.7-3.20090208.el6.i686.rpm (ncurses-libs-5.7-3.20090208.el6.i686.rpm)
Using NSS_S000.RPM;1 for  /home/sun/Downloads/centos/Packages/nss-softokn-freebl-3.12.7-1.1.el6.i686.rpm (nss-softokn-3.12.7-1.1.el6.i686.rpm)
Using FIPSC000.RPM;1 for  /home/sun/Downloads/centos/Packages/fipscheck-1.2.0-4.1.el6.i686.rpm (fipscheck-lib-1.2.0-4.1.el6.i686.rpm)
Using DEVIC002.RPM;1 for  /home/sun/Downloads/centos/Packages/device-mapper-1.02.53-8.el6.i686.rpm (device-mapper-multipath-0.4.9-31.el6.i686.rpm)
Using NFS_U000.RPM;1 for  /home/sun/Downloads/centos/Packages/nfs-utils-lib-1.1.5-1.el6.i686.rpm (nfs-utils-1.2.2-7.el6.i686.rpm)
Using PLYMO000.RPM;1 for  /home/sun/Downloads/centos/Packages/plymouth-0.8.3-17.el6.centos.i686.rpm (plymouth-scripts-0.8.3-17.el6.centos.i686.rpm)
Using DEVIC003.RPM;1 for  /home/sun/Downloads/centos/Packages/device-mapper-multipath-0.4.9-31.el6.i686.rpm (device-mapper-event-libs-1.02.53-8.el6.i686.rpm)
Using CRYPT000.RPM;1 for  /home/sun/Downloads/centos/Packages/cryptsetup-luks-1.1.2-2.el6.i686.rpm (cryptsetup-luks-libs-1.1.2-2.el6.i686.rpm)
Using LIBSE000.RPM;1 for  /home/sun/Downloads/centos/Packages/libselinux-2.0.94-2.el6.i686.rpm (libselinux-utils-2.0.94-2.el6.i686.rpm)
Using PLYMO001.RPM;1 for  /home/sun/Downloads/centos/Packages/plymouth-scripts-0.8.3-17.el6.centos.i686.rpm (plymouth-core-libs-0.8.3-17.el6.centos.i686.rpm)
Using DEVIC004.RPM;1 for  /home/sun/Downloads/centos/Packages/device-mapper-event-libs-1.02.53-8.el6.i686.rpm (device-mapper-libs-1.02.53-8.el6.i686.rpm)
  3.80% done, estimate finish Sun Sep  4 00:47:49 2011
  7.60% done, estimate finish Sun Sep  4 00:47:49 2011
 11.40% done, estimate finish Sun Sep  4 00:47:57 2011
 15.19% done, estimate finish Sun Sep  4 00:47:55 2011
 18.98% done, estimate finish Sun Sep  4 00:47:59 2011
 22.78% done, estimate finish Sun Sep  4 00:47:57 2011
 26.58% done, estimate finish Sun Sep  4 00:47:56 2011
 30.37% done, estimate finish Sun Sep  4 00:47:58 2011
 34.17% done, estimate finish Sun Sep  4 00:47:57 2011
 37.96% done, estimate finish Sun Sep  4 00:47:56 2011
 41.76% done, estimate finish Sun Sep  4 00:48:00 2011
 45.56% done, estimate finish Sun Sep  4 00:48:02 2011
 49.36% done, estimate finish Sun Sep  4 00:48:03 2011
 53.15% done, estimate finish Sun Sep  4 00:48:02 2011
 56.94% done, estimate finish Sun Sep  4 00:48:03 2011
 60.74% done, estimate finish Sun Sep  4 00:48:05 2011
 64.53% done, estimate finish Sun Sep  4 00:48:04 2011
 68.34% done, estimate finish Sun Sep  4 00:48:05 2011
 72.13% done, estimate finish Sun Sep  4 00:48:04 2011
 75.93% done, estimate finish Sun Sep  4 00:48:04 2011
 79.72% done, estimate finish Sun Sep  4 00:48:04 2011
 83.52% done, estimate finish Sun Sep  4 00:48:04 2011
 87.31% done, estimate finish Sun Sep  4 00:48:03 2011
 91.11% done, estimate finish Sun Sep  4 00:48:04 2011
 94.90% done, estimate finish Sun Sep  4 00:48:04 2011
 98.70% done, estimate finish Sun Sep  4 00:48:05 2011
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 18432
Path table size(bytes): 86
Max brk space used 22000
131714 extents written (257 MB)

3. yum -y install unetbootin.i686
4. unetbootin load
5. load your /tmp/cd.iso and burn it to your USB stick

Done.
Advertisements
Categories: centOS, Fedora 12
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: