Diff for /wikisrc/tutorials/how_to_install_netbsd_from_an_usb_memory_stick.mdwn between versions 1.1 and 1.6

version 1.1, 2011/11/20 20:55:21 version 1.6, 2012/12/18 12:07:02
Line 9  This describes how to install NetBSD (i3 Line 9  This describes how to install NetBSD (i3
 [[!toc levels=3]]  [[!toc levels=3]]
   
   
   #With an downloaded image
   From NetBSD 5.1.2 on for the i386 and amd64 ports it is possible to download a 
   memory stick image for installing instead of downloading and transforming a CD image.
   
   This section describes in detail how to use this method. If you want to create 
   an image yourself, please see below.
   
   ##Downloading the installation image
   Installation images are available on the [NetBSD
   mirrors](http://www.netbsd.org/mirrors/) under the images/ directory, their
   filenames match the *install.img.gz pattern.
   
   For example if we want to download NetBSD 6.0 for i386:
   
       # ftp ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-6.0/images/NetBSD-6.0-i386-install.img.gz
   
   ##Copying the installation image to the memory stick
   To prepare the memory stick under a Unix system you can just use
   [[!template id=man name="dd" section="1"]].
   For example if the memory stick is recognized as sd0 (**Warning: this will
   overwrite all the contents on your memory stick**):
   
       # gunzip NetBSD-6.0-i386-install.img.gz
       # dd if=NetBSD-6.0-i386-install.img of=/dev/rsd0d
   
   Whenever using dd(1), remember to set the blocksize by specifying the 
   <code>bs</code> parameter, at least with a value of 4K, i.e. the call would end 
   up with:
   
       # dd if=NetBSD-6.0-i386-install.img of=/dev/rsd0d bs=4K
   
   ##Installation process
   After NetBSD is booted from the memory stick the installation process is
   usual (you can find an example in
   [The NetBSD Guide](http://www.netbsd.org/docs/guide/en/chap-exinst.html)).
   Just pay attention when choosing the installation media: if you want
   to install using the installation sets on the memory stick when
   [choosing the installation 
   media](http://www.netbsd.org/docs/guide/en/chap-exinst.html#exinst-choose-media)
   select <code>g: local directory</code> and then clear the *base* (by default it points
   to release/).
   
   
   #Build your own image
   Use <code>build.sh -U release install-image</code>
   with your usual build settings from your src directory.
   
 #Easy method using mkmemstick.sh  Carry on with [the instructions after download](#index2h2) above.
   
   
   
 [Create an image using mkmemstick.sh](http://jmcneill.spaces.live.com/blog/cns!F507161C07E89CBE!170.entry)  
   
   
   
 This script depends on the sysutils/cdrtools package.  
   
   
   
 1 Fetch a copy of the ISO you wish to install along with [mkmemstick.sh](http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/mkmemstick.sh)  
   
   
   
 2 Create a disk image from the ISO:  
   
   
   
     $ sh mkmemstick.sh i386cd-5.0.1.iso i386memstick-5.0.1.img  
   
   
   
 3 Write the newly created image to the memory stick as root:  
   
   
   
     # dd if=i386memstick-5.0.1.img of=/dev/sd0d  
   
 4 Boot from the USB device and follow the [installation process below](/How_to_install_NetBSD_from_an_USB_Memory_Stick/#index3h2).   
   
   
   
 #Manual method  #Manual method

Removed from v.1.1  
changed lines
  Added in v.1.6


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb