Samstag, 13 Jun 2009
A friend of mine posted in the German BSDGroup.de a
nice howto to use an USB-Stick as a installmedium.
(German only i’ve translated to english
)
here is a quick howto:
1: clear your stick:
dd if=/dev/zero of=/dev/da0 bs=1k count=1
2: make the USB-Stick bootable
bsdlabel -Bw da0 auto
3: create an UFS2 Filesystem with GEOM Lable “FreeBSD”
newfs -L FreeBSD /dev/da0a
4: mount ISO-Image:
mdconfig -a -t vnode -f 8.0-HEAD-20090609-JPSNAP-i386-dvd1 -u 0 && mount -r -t cd9660 /dev/md0 /mnt/iso
5: mount your USB-STICK
mount /dev/da0a /mnt/USB-Stick
Now copy all files from your mounted cd
in to your USB-Stick, after that you need
to create a fstab for your USB-Stick:
vi /mnt/USB-Stick/etc/fstab and put following in:
/dev/ufs/FreeBSD / ufs ro 0 0
save it. Now you can boot from the USB-Stick.
That’s nice to have for Netbooks or PCs without
a cd/dvd drive.
.
Juni 14th, 2009 at 07:19
[...] [...]
Juni 14th, 2009 at 15:16
Oh it’s even nicer to have such a thumb drive in your pocket than burn some cd/dvd media again and again
Juni 14th, 2009 at 16:24
Btw. it’s bsdgroup.de not bsdforen.de
Juni 14th, 2009 at 16:30
[...] FreeBSD 8.0 install with a USB-Stick. [...]
Juni 15th, 2009 at 09:40
damn, fixed
Juni 15th, 2009 at 09:59
Thank you for the howto.
I think fstab must be in /mnt/USB-Stick/etc/fstab instead of /mnt/USB-Stick/fstab – am i right or wrong?
Juni 15th, 2009 at 21:12
@ xert yes you’re a right. I’ll fix that.
Juni 15th, 2009 at 22:20
[...] Wilke has a useful step-by-setp guide (via bsdgroup.de) to install FreeBSD 8.0 (stable version yet to be released) from a USB [...]
Juni 16th, 2009 at 14:26
[...] posted here: FreeBSD 8.0 install with a USB-Stick | Martin Wilke Tags: 7-2-release, and-security, explore-first, german, machine-running, nice-howto, [...]
Juni 17th, 2009 at 01:12
Why not use a UFS file system instead of ISO9660?
Juli 7th, 2009 at 08:49
@Andrew Lankford:
Actually the filesystem of the USB Thumb Drive is UFS.
Only the ISO-Image is cd9660.
Just thinking of making a custom USB release with
a customized graphical bootloader.
See http://wiki.freebsd.org/OliverFromme/BootLoader
for the BootLoader.
August 24th, 2009 at 10:18
Thanks for the guide!
September 10th, 2009 at 12:41
Thanks you!
Oktober 1st, 2009 at 19:10
Hi fellas!
I was wondering how to make an USF2 filesystem?? Anyone who can explain? I’ve tried with GParted Live CD but it doesn’t support this format…
Holla at me
Oktober 30th, 2009 at 11:59
I tried to repeat the process with 7.2 release and have no success…
If i do /dev/ufs/FreeBSD / ufs ro 0 0 on flash fstab, then FreeBSD starts from flash untill login prompt. Then if i do sysinstall – i have conflict of mountpoints
here is df -h:
/dev/ufs/FreeBSD /
and if we try to install to / – error write coz we have ufs ro mode.
so i tried another variant – /dev/ufs/FreeBSD /distr on flash fstab.
Here we go – installation script starts automatically, like from DVD, but when i select “Install from an existing filesystem” and set /distr as root of distribution – i have “Unable to transfer the base distribution from ufs”… What’s wrong with my hands?
Oktober 30th, 2009 at 13:32
maybe this is about BOOT from usb-flash, not about INSTALL?
Dezember 3rd, 2009 at 23:29
Or, you can just download the “memstick” image from http://freebsd.org then do the following
dd if=8.0-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync
and you will achieve the same result. I guess the advantage of doing it the way in this post is that you can install from the DVD which has all the packages in.
März 10th, 2010 at 20:15
tried this, a few years ago.
Unless something changed dramatically, your stick will have to be *much* larger than the original CD, since there is no way to recreate the hard links on the iso by copying. ISO does not know inode numbers, so the cd9660 driver creates them out of thin air. And it does not understand the hardlinking used on iso file systems.
Mai 7th, 2010 at 20:48
I had to do the following to get FreeBSD 8.0 install to boot up on an ATCA-4500 platform:
% mount /dev/da0a /mnt/usb-stick
% cd /mnt/usb-stick
% echo “-P” >> boot.config
Otherwise, It hangs after the load menu. I’m wondering if I should have modified /boot/loader.conf to use the comconsole as it’s default?
Patrick
Juni 16th, 2010 at 20:04
[...] a memstick install… but how do I install it to usb in linux? it says something about /dev/da0? http://miwi.bsdcrew.de/2009/06/freeb…h-a-usb-stick/ is there a floppy net-install for freebsd? the lappy has no cdrom and cant boot from usb without [...]