From owner-freebsd-questions@FreeBSD.ORG Sat Sep 11 00:58:30 2010 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 851211065672 for ; Sat, 11 Sep 2010 00:58:30 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 37A278FC16 for ; Sat, 11 Sep 2010 00:58:29 +0000 (UTC) Received: by qyk4 with SMTP id 4so3689462qyk.13 for ; Fri, 10 Sep 2010 17:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=E+hyiRR/PNC4oGHVyF3FkXuj1nPFkik4ZDtuvrEy/R8=; b=Mczcz52zsMlYaZXWXMOEOgz12SZh3QVOFfOhm9tODMR7ZZ48NiQvtCYd8SjsogmEOw vs5iXeAx73Bbe+nIYwtO4xcUuNsdvci+HBBRvvGCOpdhAW1770ArhPD4KmMVth7BM/+A VAHbFdxV78bj8wva74yge0VtMGwQM8/hvBe+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=gtkOS+8OUOojfjypvnaPgYUiW2Dmrv1VUPu0GELjw1wzVxZRehh0R1xnhj0EjPujBC CE4+rxnZm/UC2F+Xe2LAfs/vFy3cq9AbC5xfUzl17fum6Fda3HyuncC7bX2UHFQgO1xL 7KOdB+glIjMWho1o9+1g3MMPq76l6t0ON0CaY= Received: by 10.229.182.3 with SMTP id ca3mr1207391qcb.173.1284166709168; Fri, 10 Sep 2010 17:58:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.213.203 with HTTP; Fri, 10 Sep 2010 17:57:59 -0700 (PDT) From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Sat, 11 Sep 2010 02:57:59 +0200 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: kernel replacement in installation media 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: Sat, 11 Sep 2010 00:58:30 -0000 Hi, I bought a QNAP ts-509. I'ld like to set up a gate, with a RAID ; I'm still waiting for the disks, 5*2T - Samsung, ecogreen, 5400rpm - to be delivered. I've seen managing a RAID may be quite difficult. That's my first one. I don't want to loose everything 'cause of a mistake. I've read zfs, and RAID-Z, may be helpfull, since there's no risk to loose data on read, and since zfs handle variable blob (is that the correct word?= ) size The thing is, it only have a 128M flash disk (seen as /dev/da0) GENERIC needs almost 250M. I though about using mfsBSD. But I'm not sure my drivers would be there (since at least the RAID one is quite new in FB-8). I tried to build nanoBSD in a 128M disk, without configuring that much (hoping it would be nano out-of-the-box), and it failed saying "no more space on device" Moreover, every small BSD with zfs I found was a custom FreeBSD. So I decided to make mine. First, from a USB stick, I installed FreeBSD on an other USB stick. Then, I looked at what I would have to get in the kernel (mainly: da, usb, ehci, kbd, vga, bge, ...) So I build a custom kernel, deleting some lines from the GENERIC configuration file. As my USB stick doesn't seem to handle write access that well, I had to compile the kernel on a VM, and the to send/extract the tarball on the NAS. But once installed, I still have a lot of .ko in boot/kernel. I'm not sure = I actually removed something, except symbols. Whatever, it worked I haven't that much time. Once I'll get some, I'll also try to reduce the /usr size. Then, I replaced the kernel from the installation stick with mine, updated the .mtree and checksums files, ... But, I didn't understood, what's the generic.inf file? How can I update it? In doubt, I deleted it. And maybe I shouldn't have. (or is it because my kernel is not called "GENERIC" any more, but "QNAP"?!) The thing is, the install failed, I finished it with the Fixit shell, untar my kernel, ... it's now "working" So, first question, how can I be sure I removed modules from my kernel? is there something to add to the config file? how can I have so much if_*.ko, while I deleted almost all device lines? Second one, how to generate .inf files for distribs? (I may have to do it a= t least for base too) And even if it's a dirty way to do it, is it ok to update a .img file (or the created stick)? or should I rebuild everything? (on my VM...) Regards, Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S