== AsteriskInst/FromUsb == * make installation usb * linux 시스템에 syslinux 를 설치한다. (버전 3.35 이후) * usb 를 연결한 후, 사용되는 디바이스명을 알아내다.(dmesg 사용) * mount 명령을 사용하여 usb 를 마운트한다. * mount /dev/sdc1 /mnt/sdc1 * syslinux 디렉토리를 만든다. * cd /mnt/sdc1 * mkdir syslinux * cd * usb 를 unmount 시킨다. * umount /mnt/sdc1 * syslinux 명령을 사용하여 ldlinux.sys 를 usb 에 생성한다. * syslinux -d syslinux /dev/sdc1 * isolinux 디렉토리밑의 파일들을 usb 의 syslinux 디렉토리에 복사한다. * isolinux.cfg 파일명을 syslinux.cfg 로 바꾼다. * syslinux 가 fat32 를 지원하는 것은 버전 3.0 이후이다. * gparted 를 이용하여 sdc1 을 3G 로 축소 * mount /dev/sdc1 /mnt/sdc1 * cd /mnt/sdc1 * ls {{{ [root@localhost sdc1]# ls ImationLOCK.exe ImationLOCKv108-BManual.pdf }}} * cd * umount /mnt/sdc1 * syslinux /dev/sdc1 {{{ [root@localhost ~]# mount /dev/sdc1 /mnt/sdc1 [root@localhost ~]# cd /mnt/sdc1 [root@localhost sdc1]# ls ImationLOCK.exe ImationLOCKv108-BManual.pdf ldlinux.sys }}} * make sdc1 bootable (fdisk) * Could not find kernel image: linux * syslinux 3.35 부터 디렉토리 지원 * create syslinux * syslinux -d syslinux /dev/sdc1 * root 에 있던 ldlinux.sys 는 없어지고, syslinux 디렉토리 밑에 생김 * syslinux 밑에 커널과 필요한 파일들을 복사함. * syslinux.cfg 도 이곳에 둠 * syslinux.cfg {{{ label auto kernel vmlinuz append ks=hd:sdc1/kickstart/ks.cfg initrd=initrd.img append ks=hd:sdc1:/kickstart/ks.cfg initrd=initrd.img }}} * iso file 을 root 밑에 복사 * ks.cfg 를 이용 {{{ install harddrive --partition=sdc1 --dir= }}} * ks.cfg 에서 /tmp/cdrom 은 cdrom 이 올라와 있는 inode 다. * /tmp/hddev 는 파티션이 올라와 있는 inode 일것이다. * /tmp/cdrom 의 경우는 iso file 이 풀려 올라온다. * /tmp/hddev 의 경우는 iso file 그대로 올라온다. * 그러므로 astererisk.tar.gz 파일을 별도로 가지고 있어야 한다. * NTLDR missing * syslinux -s -d syslinux /dev/sdc1