Bootable FreeBSD 6.1-BETA4 on USB-Flash-Drive

2009-05-13 15:02:30来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

Source:  
http://groups.google.com/group/lucky.freebsd.questions/msg/5c759b1c87376b22
  
  
  
  
  
  Grossmann Martin
   
  
  
  
  
檢視個人資料
  
  
  
  
   更多選項
  
  2006年3月31日, 下午1時44分
  
  
  
  
  
  
  
  
  新聞群組: lucky.freebsd.questions
  寄件者: "Grossmann Martin"
  日期: Fri, 31 Mar 2006 20:44:08 +0200
  當地時間: 2006年3月31日(星期五) 下午1時44分
  主旨: bootable FreeBSD on USB-Flash-Drive [SOLUTION]
  
  
  
回覆作者
  |
  
轉寄
|
列印
|
檢視串連
  |
顯示原始檔
  |
回報此訊息
|
尋找此作者的訊息
  
  
  
  
  
  
  a little success story with freebsd and a tiny usb stick:
[tried with FreeBSD 6.1-BETA4 install-cd and a kingston 256MB
usb-flash-drive]

prepare yourself to work on the command-line ;-)
- attach the usb-stick to the server
- boot the freebsd installation cd-rom
- go to the "fixit" shell
- CHECK YOUR DMESG WHAT DEVICE YOUR USB STICK ACTUALLY IS!!! (here /dev/da0)

create the future "/"-filesystem on your usb-drive:

wipe everything on the usb-drive:
# dd if=/dev/zero of=/dev/da0 bs=1m
create a new partition table on it with a default slice 1 and make it
bootable
# fdisk -BI /dev/da0
label it for booting freebsd:
# bsdlabel -wB /dev/da0s1
you'll have to edit the disklabel (sometimes you'll have to: # export
EDITOR=/mnt2/usr/bin/vi):
# bsdlabel -e /dev/da0s1
... and change partition a from "unused" to "4.2BSD" as partition type
create the future "/" a.k.a. root-filesystem on it:
# newfs -m 0 -o space /dev/da0s1a

mount the filesystem for installation:
# mount /dev/da0s1a /mnt

install freebsd on /mnt:
# export DESTDIR=/mnt
# cd /dist/
# for i in base manpages catpages
# do
#   cd $i; echo y|./install.sh; cd ..;
# done

go to the kernels directory and install a kernel of your choice:
[default is GENERIC kernel; change to "smp" for smp-machines]
# rmdir /mnt/boot/kernel
# cd kernels;

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:How I have installed FreeBSD 7.0-RELEASE in the As

下一篇:[小技巧]FreeBSD[V7.0]使用小技巧 ----更新中