From owner-freebsd-questions@FreeBSD.ORG Mon Aug 8 05:28:37 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C229106566B for ; Mon, 8 Aug 2011 05:28:37 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id DCC548FC0C for ; Mon, 8 Aug 2011 05:28:36 +0000 (UTC) Received: by iye7 with SMTP id 7so8586620iye.17 for ; Sun, 07 Aug 2011 22:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=McAiFEkcCZkxKq+Ciuor+0TiCvdouxrw8JrGLUr8dA8=; b=ljEgxrCQdMmBbU6UrhQGo5X6MdKT2u7hHF9m66SeFD1MqrQMaqLQBvLCezm5rgQobv N9J9Qwh+J2+7mUibzxZ1EZ+M/DYUScLTsjBNG8664pyC2V0OFnEWWfMzoSO92Fqye0nR 3eGCcRcFNxR6lFkkZ+gu/XoMD+Dpj+Cih32Pw= MIME-Version: 1.0 Received: by 10.42.29.129 with SMTP id r1mr4886715icc.360.1312781316015; Sun, 07 Aug 2011 22:28:36 -0700 (PDT) Received: by 10.42.169.134 with HTTP; Sun, 7 Aug 2011 22:28:35 -0700 (PDT) In-Reply-To: <000c01cc4d88$bd57a330$3806e990$@fisglobal.com> References: <000c01cc4d88$bd57a330$3806e990$@fisglobal.com> Date: Mon, 8 Aug 2011 00:28:35 -0500 Message-ID: From: Antonio Olivares To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions Subject: Re: Howto's, Advice, Hints/Gotchas about livecd creation in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 05:28:37 -0000 > Though still in its infancy, my project brings some features that no others > have: > > http://druidbsd.sourceforge.net/ > > I've not seen any other project utilize ISOLINUX as the boot-loader. Doing so > has freed me from many restrictions. For example, my one single ISO can be > written to either CD/DVD or USB or Hard Disk or SSD (without modification). > > Naturally, I'm not going to document how to burn an ISO (that should be pretty > straight forward), but here's a link on how to write the ISO to either USB thumb > drive (process is similar for HDD/SSD, just skip steps 2 and 3 because you > presumably already know the device name associated with your target disk): > > 1. Visit http://sourceforge.net/projects/druidbsd/files/Druid-0.0.iso/download > and download "Druid-0.0.iso" to a local directory. > > 2. Insert USB thumb drive > > 3. Execute: camcontrol devlist > > NOTE: find the `daN' device associated with your thumb drive > > 4. Execute: dd if=Druid-0.0.iso of=/dev/da5 > > NOTE: assuming `da5' is your thumb drive > > --- At this point, your thumb drive is ready to rock and roll -- > > However, continue with the remaining below steps to create a 2nd [visible] > partition beyond the primary [invisible] bootable partition (allowing you to use > the remainder of your thumb drive for usable storage)... > > 5. Execute: echo "p 2 0x0c * *" | fdisk -f - /dev/da5 > > NOTE: again, assuming `da5' is your thumb drive > > 6. Execute: newfs_msdos /dev/da5s2 > > NOTE: again, assuming `da5' is your thumb drive > > NOTE: You'll get a "class not found" response. Just ignore this. It's completely > spurious. > > That's it. You now have a thumb drive with: > > a. An invisible boot partition for booting into Druid (a disc full of tools) > b. A visible partition for storage, usable under Mac, Windows, Linux, and UNIX. > > NOTE/RECAP: Don't be fooled into thinking that this will work with just any-ol' > ISO file. This works because (a) I am using the ISOLINUX boot-loader to > chain-load to the FreeBSD mfsroot and (b) I've post-processed my ISO file > (generated with mkisofs) with the ISOLINUX-isohybrid utility. > > > Other advantages include the fact that the smallest possible ISO is 28MB, but > can be grown to any size you want (my mfsroot remounts the CD-ROM through > /dev/iso9660 GEOM structure). > -- Thank you for this information. I built the package on my machine, but it replicates the effort. I just built the same iso that you have on your website. I would like to use the concept to make an iso of my running system, but don't know how. I had freesbie port installed, cd /usr/ports/sysutils/freesbie/; make install clean; Did not know how to proceed, found a powerpoint and it said, /usr/local/share/freesbie/freesbie, and it was going to be configured and one selects options. That was not the case, but I found a makefile in that directory and several options, so I try one, make and it fails :( See the error message: tricorehome# cd /usr/local/share/freesbie/ tricorehome# ls COPYING README extra Makefile conf scripts tricorehome# make #### Building world for amd64 architecture #### >>> World build started on Sun Aug 7 22:52:50 CDT 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Mon Aug 8 00:13:52 CDT 2011 #### Building kernel for amd64 architecture #### >>> Kernel build for FREESBIE started on Mon Aug 8 00:13:52 CDT 2011 >>> stage 1: configuring the kernel Something went wrong, check errors! Log saved on /usr/obj/usr/local/share/freesbie/.tmp_buildkernel *** Signal 15 Stop in /usr/local/share/freesbie. tricorehome# cat /usr/obj/usr/local/share/freesbie/.tmp_buildkernel | more make __MAKE_CONF=/usr/local/share/freesbie/conf/make.conf TARGET_ARCH=amd64 SRCCONF=/dev/null buildkernel -------------------------------------------------------------- >>> Kernel build for FREESBIE started on Mon Aug 8 00:13:52 CDT 2011 -------------------------------------------------------------- ===> FREESBIE mkdir -p /usr/obj/usr/src/sys -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /usr/src/sys/amd64/conf; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/FREESBIE /usr/local/share/freesbie/conf/amd64/FREESBIE Mapping option COMPAT_IA32 to COMPAT_FREEBSD32. /usr/local/share/freesbie/conf/amd64/FREESBIE: unknown option "TCP_DROP_SYNFIN" *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Has anyone succeeded making a FreeBSD LiveCD from an amd64 system? What does one need to do, to achieve this successfully? I would like to clone my system onto a livecd and have the same system that can be bootable on other 64 bit machines. Thanks in Advance, Antonio P.S. I looked at other system, /usr/ports/sysutils/livecd, but again don't know how the scripts work as their appears to be no new instructions on how to build a livecd using that tool. If I have to use the other(harder method), I'll probably take a chance on it, but I am afraid to screw my working system up. This is why I ask for advice.