Wednesday, January 1, 2014

Linux: Install ISO image from DVD (CentOS6)

From: http://wiki.centos.org/HowTos/InstallFromUSBkey

1.  Use fdisk to setup partitions (about 250M for the boot partition, "a" makes bootable):

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1          43      247657+   b  W95 FAT32
/dev/sdc2              44        5324    30418560   83  Linux


2. Make filesystems:

mkfs.vfat -n BOOT /dev/sdc1
mkfs.ext3 -m 0 -b 4096 -L DATA /dev/sdc2

3. Copy the isolinux directory from the DVD1 to the first /dev/sdc1 partition root.

4. Rename isolinux to syslinux.  Rename syslinux/isolinux.cfg syslinux/syslinux.cfg

5. Copy the images directory from DVD1 to the /dev/sdc1 partition root.

6. Create syslinux boot on the /dev/sdc1 partition.  syslinux /dev/sdc1

7. Mount the /dev/sdc2 partition and copy the .iso files to the root.

8. During install Ctrl-Alt-F2 umount /mnt/isodir ;  mount /dev/sda2 /mnt/isodir - as the installer needs to point to where the .iso files are kept.


No comments: