From owner-freebsd-questions@FreeBSD.ORG Sun Dec 21 19:46:38 2008 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 473DD1065679 for ; Sun, 21 Dec 2008 19:46:38 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DBC078FC16 for ; Sun, 21 Dec 2008 19:46:37 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LEUFz-0002uL-SJ for freebsd-questions@freebsd.org; Sun, 21 Dec 2008 19:46:31 +0000 Received: from 77.22.112.43 ([77.22.112.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Dec 2008 19:46:31 +0000 Received: from ino-news by 77.22.112.43 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Dec 2008 19:46:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: clemens fischer Date: Sun, 21 Dec 2008 14:47:54 +0100 Lines: 38 Message-ID: References: X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77.22.112.43 X-Archive: encrypt=none User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/8.0-CURRENT (i386)) Sender: news Subject: Re: [solved] Re: usb-stick accessible, but doesn't boot 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: Sun, 21 Dec 2008 19:46:38 -0000 clemens fischer wrote: > On Fri, 19 Dec 2008 22:29:15 +0100 clemens fischer wrote: > >> My USB-stick (trekstore, identifies as "USB DISK SMI Corporation") is >> sliced using sade(8), labelled using bsdlabel, accessible using "mount >> /dev/da0s1a /mnt/usb", it has kernel and world, but doesn't boot. > > The problem had nothing to do with kernel features or setup, except for > etc/fstab. I had a what I thought quick&simple md for /var: "md /var > mfs rw,-s100M,noatime 0 0", but this doesn't account for all the preset > stuff in /var needed to run a system. > > The current version looks like: > > # /etc/fstab > # > /dev/ad6s2b none swap sw 0 0 > /dev/da0s1a / ufs rw,noatime 1 1 > /dev/da0s1g /home ufs rw,noatime,noexec 0 0 > /dev/da0s1f /usr ufs rw,noatime 0 0 > md /tmp mfs rw,-s24M,noatime 0 0 > md /var/run mfs rw,-s4M,noatime 0 0 > md /var/log mfs rw,-s32M,noatime 0 0 > # > proc /proc procfs rw 0 0 > > Of course the directory structure had been setup with "make > DESTDIR=/mnt/usb/ufs distrib-dirs distribution". I am very sorry for this inaccurate information. As it turns out, only the GENERIC kernel is bootable, my custom configuration doesn't. On the bright side, this indicates some feature missing from my normally very lean kernels, nothing is kaputt beyond repair. I'll just have to find out which module just has to be in the kernel to make it boot from an USB stick. -c