From owner-freebsd-questions@FreeBSD.ORG Thu Sep 1 15:21:15 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 7D677106564A for ; Thu, 1 Sep 2011 15:21:15 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 44AD38FC17 for ; Thu, 1 Sep 2011 15:21:15 +0000 (UTC) Received: by yxn22 with SMTP id 22so562755yxn.13 for ; Thu, 01 Sep 2011 08:21:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.151.200 with SMTP id f8mr241230icw.420.1314890474304; Thu, 01 Sep 2011 08:21:14 -0700 (PDT) Received: by 10.43.131.67 with HTTP; Thu, 1 Sep 2011 08:21:14 -0700 (PDT) In-Reply-To: <20110901095942.1ea34df8.freebsd@edvax.de> References: <20110901095942.1ea34df8.freebsd@edvax.de> Date: Thu, 1 Sep 2011 08:21:14 -0700 Message-ID: From: Michael Sierchio To: Polytropon Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: Liste FreeBSD Subject: Re: Resetting bootloader on a CF 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: Thu, 01 Sep 2011 15:21:15 -0000 It occurs to me that there may be a couple of other wrinkles. There are kernel boot parameters that tell which kind of console to use, and there are switches you can twiddle in /boot/loader.conf, notably #console=3D"vidconsole" # A comma separated list of console(s) console (``vidconsole'') ``comconsole'' selects serial console= , ``vidconsole'' selects the video console, and ``nullconsole'' selects a mute console (useful for sys= - tems with neither a video console nor a serial port). Also make sure that /etc/ttys launches a getty process for whatever console you are using. I.e., make sure it doesn't look like this one (mine) - make sure that at least ttyv0 is on. console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 off secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 off secure ttyv2 "/usr/libexec/getty Pc" cons25 off secure ttyv3 "/usr/libexec/getty Pc" cons25 off secure ttyv4 "/usr/libexec/getty Pc" cons25 off secure ttyv5 "/usr/libexec/getty Pc" cons25 off secure ttyv6 "/usr/libexec/getty Pc" cons25 off secure ttyv7 "/usr/libexec/getty Pc" cons25 off secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyd0 "/usr/libexec/getty std.9600" dialup on secure On Thu, Sep 1, 2011 at 12:59 AM, Polytropon wrote: > On Wed, 31 Aug 2011 23:47:22 +0200, bsd wrote: >> Part of the solution seems to be : >> >> 1. Mount the CF on a FBSD >> 2. Initialize the bootloader with : >> >> # fdisk -B /dev/ > > Erm... You should _not_ mount (as in /sbin/mount) the CF > in order to change MBR data; mounting should be restricted > to its humano-mechanical part. :-) > > > >> 3. This is where I need you help=85 >> >> >> How can I re-install a boot loader ? >> >> Should I use the command : >> >> # fdisk -B -b /boot/boot0 device >> >> >> Any other suggestion, guidance will be welcome. > > You can use sysinstall for that: Configure, select the CF card > to work on, don't chance anything with the slices in the fdisk > editor, just make sure the slice is marked active, and in the > next step, select the default MBR to be written. > > The command line way should be: > > =A0 =A0 =A0 =A0# fdisk -BI /dev/da0 > =A0 =A0 =A0 =A0# fdisk -B -b /boot/mbr /dev/da0 > > (Assumption: /dev/da0 is the CF card.) > > Note that the first step will re-initialize the card. If you don't > want to build it from scratch, i. e. _only_ modify the MBR, the > second command should do it. > > See "man fdisk" for details on the fdisk commands. > > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >