From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 05:23:45 2009 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 9316A1065753 for ; Fri, 16 Jan 2009 05:23:45 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from angel.comcen.com.au (angel.comcen.com.au [203.23.236.69]) by mx1.freebsd.org (Postfix) with ESMTP id 53C378FC27 for ; Fri, 16 Jan 2009 05:23:45 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from [192.168.0.199] (unknown [202.172.126.254]) by angel.comcen.com.au (Postfix) with ESMTP id A54EA5C2F707 for ; Fri, 16 Jan 2009 16:25:05 +1100 (EST) From: Da Rock To: freebsd-questions@freebsd.org Content-Type: multipart/mixed; boundary="=-dLA+lfYi0mfokD338kDj" Date: Fri, 16 Jan 2009 15:23:30 +1000 Message-Id: <1232083410.22938.86.camel@laptop2.herveybayaustralia.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Subject: [Fwd: Re: FreeBSD USB Install] 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: Fri, 16 Jan 2009 05:23:46 -0000 --=-dLA+lfYi0mfokD338kDj Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-dLA+lfYi0mfokD338kDj Content-Disposition: inline Content-Description: Forwarded message - Re: FreeBSD USB Install Content-Type: message/rfc822 Subject: Re: FreeBSD USB Install From: Da Rock To: freebsd-questions In-Reply-To: <1231517488.6087.13.camel@lenzix.cwb.casa> References: <2b5f066d0901081136n257f114akb9ebd628fd6f93a2@mail.gmail.com> <49671922.8040906@snaffler.net> <2b5f066d0901090709m6c1000efi7d411800f16cf732@mail.gmail.com> <2b5f066d0901090743v494c4c08ufeeec2dec319d0f0@mail.gmail.com> <1231517488.6087.13.camel@lenzix.cwb.casa> Content-Type: text/plain Message-Id: <1232071700.22938.27.camel@laptop2.herveybayaustralia.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Date: Fri, 16 Jan 2009 12:08:21 +1000 Content-Transfer-Encoding: 7bit On Fri, 2009-01-09 at 14:11 -0200, Sergio de Almeida Lenzi wrote: > 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. This seems to be a bit of a sideline... but how does it work if you move the disk around? Assuming generic kernel, you should be boot that kernel on practically any machine- right? But I had trouble with it not finding the drive- boot manager ok, install fine, just won't boot. I assumed that the da0xxx was simply a pointer (programming speak) so that if you inserted the disk somewhere else (another port, another m/c, etc) it may not "point" to the same place for booting. Would this be right? --=-dLA+lfYi0mfokD338kDj--