From owner-freebsd-questions@freebsd.org Mon Oct 2 12:07:24 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D941E3E0C6 for ; Mon, 2 Oct 2017 12:07:24 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp209.alice.it (smtp209.alice.it [82.57.200.105]) by mx1.freebsd.org (Postfix) with ESMTP id BCE5165BF9 for ; Mon, 2 Oct 2017 12:07:23 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (212.171.20.179) by smtp209.alice.it (8.6.060.28) id 59A3DB80043BE5EC for freebsd-questions@freebsd.org; Mon, 2 Oct 2017 14:01:40 +0200 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v92C1fti075988 for ; Mon, 2 Oct 2017 14:01:41 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Create Ultimate Boot CD USB Stick [SOLVED] Cc: freebsd-questions@freebsd.org References: <55EDBF5A.9010808@netfence.it> <55EE8445.9070901@sneakertech.com> From: Andrea Venturoli Message-ID: <8b835a99-7bb0-11f8-f313-b9cbaff47d15@netfence.it> Date: Mon, 2 Oct 2017 14:01:35 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <55EE8445.9070901@sneakertech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Oct 2017 12:07:24 -0000 On 09/08/15 08:46, Quartz wrote: >> Is there a way to create an UBCD stick from the ISO image without using >> Linux or Windows? > > UBCD uses the SYSLINUX package (specifically ISOLINUX) to boot to the > menu and load all its modules. I have not tested this, but it may be > possible to download and run the SYSLINUX scripts directly under *BSD to > create an 'empty' usb stick that just boots to a dummy menu. If that > works, you can then just cp the config and modules from the UBCD ISO > onto your stick afterwards and be good to go. (SYSLINUX, ISOLINUX and > PXELINUX all spawn an identical environment, so you can literally copy > and paste stuff between them). I know I'm replying to a more than two years old thread, but I thought I'd share with others the solution I found. I assume no responsibility in case something goes wrong :) One must first follow the instructions from ubcd/tools/linux/ubcd2usb/readme.txt. Of course we are not on Linux, so the actual commands are different. Point 2: I used "camcontrol devlist" to see that my USB drive was /dev/da6 (of course, in the following phases, it must be changed to whatever is correct). Point 3: A) dd bs=16M if=/dev/zero count=1 of=/dev/da6 B) gpart create -s MBR /dev/da6 gpart add -t fat16 /dev/da6 C) newfs_msdos /dev/da6s1 Point 4: > dd count=1 conv=osync if=ubcd/tools/linux/ubcd2usb/mbr.bin of=ubcd/tools/linux/ubcd2usb/mbr_padded.bin > gpart bootcode -b ubcd/tools/linux/ubcd2usb/mbr_padded.bin /dev/da6 > gpart set -a active -i 1 /dev/da6 ... Point 7: (after installing sysutils/syslinux and umounting the stick) syslinux -f --install -s -d /boot/syslinux /dev/da6s1 Now the additional part... Mount the USB stick and look into boot/syslinux: isolinux.bin, ldlinux.sys and every .c32 file in there (except localboot.c32) must be replaced from the ones from the syslinux port. E.g. > cp /usr/local/share/syslinux/bios/core/isolinux.bin .../boot/syslinux > cp /usr/local/share/syslinux/bios/com32/chain/chain.c32 .../boot/syslinux > ... Also add libcom32.c32 and libutil.c32. HTH. bye av.