Re: Resetting bootloader on a CF

2011-09-01 Thread Michael Sierchio
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="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 noneunknown 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…
>>
>>
>> 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:
>
>        # fdisk -BI /dev/da0
>        # 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-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Resetting bootloader on a CF

2011-09-01 Thread Polytropon
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… 
> 
> 
> 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:

# fdisk -BI /dev/da0
# 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-unsubscr...@freebsd.org"


Re: Resetting bootloader on a CF

2011-08-31 Thread Gary Kline
On Wed, Aug 31, 2011 at 11:47:22PM +0200, bsd wrote:
> Date: Wed, 31 Aug 2011 23:47:22 +0200
> From: bsd 
> Subject: Resetting bootloader on a CF 
> To: Liste FreeBSD 
> X-Mailer: Apple Mail (2.1084)
> 
> Hi, 
> 
> I am trying to reset the bootloader of a pfSense nanoBSD CF card. 
> 
> I need the boot loader to be reset because 
> 
> > The embedded image set the bootloader to use a serial console.  That isn't 
> > necessary with the box I am trying to use (the BIOS does console 
> > redirection to the serial port for you) and causes the boot to hang.
> 
> 
> Part of the solution seems to be : 
> 
> 1. Mount the CF on a FBSD 
> 2. Initialize the bootloader with : 
> 
> # fdisk -B /dev/
> 
> 3. This is where I need you help? 
> 
> 
> 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. 
> 
> 
> Thanks for your support. 
> 
> 
> P.S. I'll check your answer in 10+ hours as I am already tired and It is 
> 11.45 pm in Paris where I leave. ;-) - thanks for your understanding. 
> 

Egad--or OMG--or whatever.  A friend helped me build a
pfsense "kit" (4watt) a few months ago.  It has worked 
perfectly so far.  Running 24*7 since.

I'll be watching this space... .

> 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a release of Jottings: http://jottings.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Resetting bootloader on a CF

2011-08-31 Thread bsd
Hi, 

I am trying to reset the bootloader of a pfSense nanoBSD CF card. 

I need the boot loader to be reset because 

> The embedded image set the bootloader to use a serial console.  That isn't 
> necessary with the box I am trying to use (the BIOS does console redirection 
> to the serial port for you) and causes the boot to hang.


Part of the solution seems to be : 

1. Mount the CF on a FBSD 
2. Initialize the bootloader with : 

# fdisk -B /dev/

3. This is where I need you help… 


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. 


Thanks for your support. 


P.S. I'll check your answer in 10+ hours as I am already tired and It is 11.45 
pm in Paris where I leave. ;-) - thanks for your understanding. 

––
-> Grégory Bernard Director <-
---> www.osnet.eu <---
--> Your provider of OpenSource appliances <--
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"