Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Jan 2009 14:11:28 -0200
From:      Sergio de Almeida Lenzi <lenzi@k1.com.br>
To:        Brian McCann <bjmccann@gmail.com>, freebsd-questions <questions@freebsd.org>
Subject:   Re: FreeBSD USB Install
Message-ID:  <1231517488.6087.13.camel@lenzix.cwb.casa>
In-Reply-To: <2b5f066d0901090743v494c4c08ufeeec2dec319d0f0@mail.gmail.com>
References:  <D15082B223DE564698EA1AB5E47F732A931238@MK-MSX3-VS3.uk.tiscali.intl> <2b5f066d0901081136n257f114akb9ebd628fd6f93a2@mail.gmail.com> <49671922.8040906@snaffler.net> <2b5f066d0901090709m6c1000efi7d411800f16cf732@mail.gmail.com> <2b5f066d0901090743v494c4c08ufeeec2dec319d0f0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello

I notice that when you write zeros to the first sectors
of the pen drive it gets mad about it
and you must make fsck and disklabel TWICE...

the first time, it complains,
the second time it works fine

I assume you have grub installed   (pkg_add -r grub)

I use the folowing procedure:
1) put the pen drive on the computer  it finds at da0
2) dd bs=512 if=/dev/zero of=/dev/da0 count=20  
2) fdisk  -BI /dev/da0
3) disklabel -w -B /dev/da0s1
4) fdisk -BI /dev/da0      
5) disklabel -w -B  /dev/da0s1
6) newfs -L FreeBSDstick /dev/da0s1a
7) mount -o async /dev/da0s1a /mnt
8) mkdir /mnt/boot/grub
9) cd /usr/local/share/grub/*/
10 cp * /mnt/boot/grub
11) cat <<% > /mnt/boot/grub/menu.lst
title FreeBSD on USB
root (hd0,0,a)
kernel /boot/loader
%
12) umount /mnt
13) grub --batch <<%
device (hd7) /dev/da0
root (hd7,0,a)
setup (hd7)
%
=========================
now just populate the /mnt with bsd and your system 
should come up...

=================================


Hope this will help...


Here i use 4gb pen-drivers running FreeBSD 7 with zfs...
it works fine and very fast...

Sergio.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1231517488.6087.13.camel>