Difference between revisions of "Burning the Installation Media/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(Brasero)
(Undo revision 19231 by Tigersharke (talk) oops)
(31 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
Once you have downloaded PC-BSD® and verified its checksum, burn the file to the correct media type. This section demonstrates how to do so using several different applications and operating systems. Each application assumes that the correct media (CD, DVD, or USB flash drive) for the type of file is inserted.
 
Once you have downloaded PC-BSD® and verified its checksum, burn the file to the correct media type. This section demonstrates how to do so using several different applications and operating systems. Each application assumes that the correct media (CD, DVD, or USB flash drive) for the type of file is inserted.
  
=== Burning the CD/DVD ISO File on Windows ===
+
=== Burning the CD/DVD ISO File on a BSD or Linux System ===
  
Several burning applications are available for Windows. This section will demonstrate how to use Windows 7's Disc Image Burner, ImgBurn, and InfraRecorder.
+
This section demonstrates how to burn the installation ISO on a Linux or BSD system using the following tools: K3B, Brasero, and '''growisofs'''.  
  
==== Windows 7 Disc Image Burner ====
+
==== K3B ====
  
Windows 7 has built-in support for writing ISO images to disc. Right-click on the ''.iso'' file in Windows Explorer and select "Open with ➜ Windows Disc Image Burner" to open the screen shown in Figure 2.5a. Click "Burn" to write the disc. See the Microsoft article {{citelink|url=http://windows.microsoft.com/en-US/windows7/Burn-a-CD-or-DVD-from-an-ISO-file|txt=Burn a CD or DVD from an ISO file}} for more detailed instructions.
+
{{citelink|url=http://www.kde.org/applications/multimedia/k3b/|txt=K3B}} is an easy-to-use graphical burning application for Linux and BSD systems. On a PC-BSD® system, it is installed with the KDE desktop. You can also install the K3B PBI using [[Using AppCafe®]].
  
'''Figure 2.5a: Windows Disc Image Burner'''
+
To burn your ISO, launch K3B, browse to the location of the ''.iso'' file in the screen shown in  Figure 2.5f and click ''Tools'' ➜ ''Burn Image...'' to see the screen in Figure 2.5g.
  
[[File:Diskburner1.png]]
+
[[File:K3b1c.png|left|thumb|385px|'''Figure 2.5f: Selecting the Burn Image Tool Within K3B''']][[File:K3b2c.png|right|thumb|385px|'''Figure 2.5g: K3B's Burn Image Screen''']]
  
==== ImgBurn ====
+
Click the "Start" button to burn the file. K3B will automatically eject the media once the burn is complete.
  
{{citelink|url=http://www.imgburn.com/|txt=ImgBurn}} is an easy to use ISO burner for Windows that is available for free download. After installing and launching ImgBurn, select "Write image file to disk" from the main menu, seen in Figure 2.5b:
+
==== Brasero ====
  
'''Figure 2.5b: Initial ImgBurn Screen'''
+
{{citelink|url=http://projects.gnome.org/brasero/|txt=Brasero}} is an easy to use burning application included with the [[GNOME2|GNOME desktop]]. A PBI is also available within [[Using AppCafe® | AppCafe®]]. To launch Brasero within GNOME, click ''Applications'' ➜ ''Multimedia'' ➜ ''Brasero Disk Burner'' and the dialog window shown in Figure 2.5h will be displayed. Alternately, type '''brasero''' from within any window manager.
  
[[File:Imgburn1a.png]]
+
Click ''Burn image'' to open the screen seen in Figure 2.5i. Use the ''Click here to select a disk image'' button to select your ''.iso'' file.
  
You can then use File ➜ Browse for a source file... to select the ''.iso'' file to burn; once selected, your screen should look similar to Figure 2.5c. Click the Write icon in the lower left corner to begin the burn.
+
[[File:Brasero1a.png|left|thumb|385px|'''Figure 2.5h: Brasero's Initial Screen''']]
 +
[[File:Brasero2b.png|right|thumb|385px|'''Figure 2.5i: Brasero Image Burning Setup''']]
  
'''Figure 2.5c: Selecting the Source and Destination in ImgBurn
+
The name and size of your ''.iso'' file should appear and Brasero will indicate the size of the media. The lower portion of Figure 2.5i shows the menu that appears if you click on the "Properties" button. You can change these options if you wish, but the default settings are fine in most cases. When you are ready, click the "Burn" button and Brasero will burn your ISO.
  
[[File:Imgburn2b.png]]
+
==== Xfburn ====
  
ImgBurn will provide a status bar to indicate the progress of the burn. When it is finished, ImgBurn will eject the burner tray then reclose it in order to verify the burn. If the tray does not return itself, which may occur on a laptop, push the tray back in if you wish to verify the burn.
+
{{citelink|url=http://goodies.xfce.org/projects/applications/xfburn|txt=Xfburn}} is available to [[Using AppCafe®#Installing and Uninstalling PBI Software | install as PBI Software]] and is installed with [[XFCE4]].<!-- Instructions had to be added here for 9.2 User Handbook.-->
  
==== InfraRecorder ====
+
==== growisofs ====
  
{{citelink|url=http://infrarecorder.org/|txt=InfraRecorder}} is an open source burning application for both CDs and DVDs. Once installed, open InfraRecorder and click on the "Write Image" button shown in Figure 2.5d:
+
If you are familiar with using the command line on a FreeBSD or PC-BSD® system, you can use the '''growisofs''' command line utility to burn the DVD. This utility is included with the dvd+rw-tools FreeBSD port which is installed by default on a PC-BSD® system. If that software is not yet installed on a FreeBSD system, issue this command as the superuser:
  
'''Figure 2.5d: Initial InfraRecorder Screen'''
+
{{txtbox|pre|box='''pkg_add -r dvd+rw-tools'''}}
  
[[File:Pic1.png]]
+
Depending upon the type of DVD burner hardware, you may have to configure the system to use it. If the device is ATAPI (i.e. not USB or SCSI), the ATAPI driver must be loaded. The superuser can issue this command:
  
InfraRecorder will display a screen where you can browse to the location of the ''.iso'' file. Once selected, you will be presented with an options screen shown in Figure 2.5e:
+
{{txtbox|pre|box='''kldload atapicam'''}}
  
'''Figure 2.5e: Burn Options in InfraRecorder'''
+
If you just get your prompt back, the driver successfully loaded. If you get the message "kldload: cannot load atapicam: File exists", this means that the driver was already loaded. If the device is USB or SCSI, no additional drivers need to be loaded if you are running the generic FreeBSD kernel. After inserting the DVD media into the device, you can start the burn using this command:
  
[[File:Infrarecorder1b.png]]
+
{{txtbox|pre|box='''growisofs -Z /dev/cd0=PCBSD9.1-x64-DVD.iso'''}}
  
You can accept the defaults and click "OK" to start the burn. When finished, the burner tray will open and a dialog box will appear indicating that the burning process has finished.
+
If your device is not the first CD device, change the number 0 accordingly. If your ISO has a different name, substitute the correct name in the command shown above.
  
=== Burning the CD/DVD ISO File on a BSD or Linux System ===
+
=== Burning the CD/DVD ISO File on a Mac&nbsp;OS&nbsp;X System ===
  
This section demonstrates how to burn the installation ISO on a Linux or BSD system using the following tools: K3B, Brasero, and '''growisofs'''.  
+
To burn the ISO on a Mac&nbsp;OS&nbsp;X system, go to "Finder ➜ Applications ➜ Utilities ➜ Disk Utility". With a blank media inserted into the burner, highlight the device representing the CD/DVD writer and click the "Burn" button. [[File:Mac1a.png|thumb|400px|'''Figure 2.5j: Using Disk Utility on Mac&nbsp;OS&nbsp;X''']] This will open up a browser where you can select the ISO to burn. In the example shown in Figure 2.5j, the DVD ISO has been selected and the device is a Sony DVD writer.
  
==== K3B ====
+
Once the ISO is highlighted, click the "Burn" button. A pop-up message will indicate that the device is ready to burn. Click "Burn" once more and "Disk Utility" will write the ISO to the CD/DVD media.
   
+
{{citelink|url=http://www.kde.org/applications/multimedia/k3b/|txt=K3B}} is an easy-to-use graphical burning application for Linux and BSD systems. On a PC-BSD® system, it is installed with the KDE desktop. You can also install the K3B PBI using [[Using AppCafe®]].
+
  
To burn your ISO, launch K3B, browse to the location of the ''.iso'' file in the screen shown in  Figure 2.5f and click ''Tools'' ➜ ''Burn Image...'' to see the screen in Figure 2.5g.
+
=== Burning the CD/DVD ISO File on a Windows System ===
  
'''Figure 2.5f: Selecting the Burn Image Tool Within K3B'''
+
Several burning applications are available for Windows. This section will demonstrate how to use Windows 7's Disc Image Burner, ImgBurn, and InfraRecorder.
  
[[File:K3b1c.png]]
+
==== Windows 7 Disc Image Burner ====
  
'''Figure 2.5g: K3B's Burn Image Screen'''
+
Windows 7 has built-in support for writing ISO images to disc. Right-click on the ''.iso'' file in Windows Explorer and select "Open with ➜ Windows Disc Image Burner" to open the screen shown in Figure 2.5a. Click "Burn" to write the disc. See the Microsoft article {{citelink|url=http://windows.microsoft.com/en-US/windows7/Burn-a-CD-or-DVD-from-an-ISO-file|txt=Burn a CD or DVD from an ISO file}} for more detailed instructions.
  
[[File:K3b2c.png]]
+
<div style="overflow: hidden; margin-left: 12px">[[File:Diskburner1.png|left|thumb|300px|'''Figure 2.5a: Windows Disc Image Burner''']][[File:Imgburn1a.png|right|thumb|400px|'''Figure 2.5b: Initial ImgBurn Screen''']]</div>
  
Click the "Start" button to burn the file. K3B will automatically eject the media once the burn is complete.
+
==== ImgBurn ====
  
==== Brasero ====
+
{{citelink|url=http://www.imgburn.com/|txt=ImgBurn}} is an easy to use ISO burner for Windows that is available for free download. After installing and launching ImgBurn, select "Write image file to disk" from the main menu, seen in Figure 2.5b:
  
{{citelink|url=http://projects.gnome.org/brasero/|txt=Brasero}} is an easy to use burning application included with the [[GNOME2|GNOME desktop]]. A PBI is also available within [[Using AppCafe® | AppCafe®]]. To launch Brasero within GNOME, click ''Applications'' ➜ ''Multimedia'' ➜ ''Brasero Disk Burner'' and the dialog window shown in Figure 2.5h will be displayed. Alternately, type '''brasero''' from within any window manager.
+
You can then use File ➜ Browse for a source file... to select the ''.iso'' file to burn; once selected, your screen should look similar to Figure 2.5c. Click the Write icon in the lower left corner to begin the burn.
  
'''Figure 2.5h: Brasero's Initial Screen'''
+
[[File:Imgburn2b.png|thumb|400px|'''Figure 2.5c: Selecting the Source and Destination in ImgBurn''']]
  
[[File:Brasero1a.png]]
+
ImgBurn will provide a status bar to indicate the progress of the burn. When it is finished, ImgBurn will eject the burner tray then reclose it in order to verify the burn. If the tray does not return itself, which may occur on a laptop, push the tray back in if you wish to verify the burn.
  
Click ''Burn image'' to open the screen seen in Figure 2.5i. Use the ''Click here to select a disk image'' button to select your ''.iso'' file.
+
==== InfraRecorder ====
  
'''Figure 2.5i: Brasero Image Burning Setup'''
+
{{citelink|url=http://infrarecorder.org/|txt=InfraRecorder}} is an open source burning application for both CDs and DVDs. Once installed, open InfraRecorder and click on the "Write Image" button shown in Figure 2.5d:
  
[[File:Brasero2b.png]]
+
[[File:Image_writer.png|thumb|410px|'''Figure 2.5k: Using ImageWriter in Windows''']]
 +
[[File:Pic1.png|thumb|400px|'''Figure 2.5d: Initial InfraRecorder Screen''']]
  
The name and size of your ''.iso'' file should appear and Brasero will indicate the size of the media. The lower portion of Figure 2.5i shows the menu that appears if you click on the "Properties" button. You can change these options if you wish, but the default settings are fine in most cases. When you are ready, click the "Burn" button and Brasero will burn your ISO.
+
InfraRecorder will display a screen where you can browse to the location of the ''.iso'' file. Once selected, you will be presented with an options screen shown in Figure 2.5e:
  
==== Xfburn ====
+
[[File:Infrarecorder1b.png|thumb|300px|'''Figure 2.5e: Burn Options in InfraRecorder''']]
  
Available as PBI. Add instructions for 9.2 Handbook.
+
You can accept the defaults and click "OK" to start the burn. When finished, the burner tray will open and a dialog box will appear indicating that the burning process has finished.
 
+
==== growisofs ====
+
 
+
If you are familiar with using the command line on a FreeBSD or PC-BSD® system, you can use the '''growisofs''' command line utility to burn the DVD. This utility is included with the dvd+rw-tools FreeBSD port which is installed by default on a PC-BSD® system. If that software is not yet installed on a FreeBSD system, issue this command as the superuser:
+
 
+
'''pkg_add -r dvd+rw-tools'''
+
 
+
Depending upon the type of DVD burner hardware, you may have to configure the system to use it. If the device is ATAPI (i.e. not USB or SCSI), the ATAPI driver must be loaded. The superuser can issue this command:
+
 
+
'''kldload atapicam'''
+
 
+
If you just get your prompt back, the driver successfully loaded. If you get the message "kldload: cannot load atapicam: File exists", this means that the driver was already loaded. If the device is USB or SCSI, no additional drivers need to be loaded if you are running the generic FreeBSD kernel. After inserting the DVD media into the device, you can start the burn using this command:
+
 
+
  '''growisofs -Z /dev/cd0=PCBSD9.1-x64-DVD.iso'''
+
 
+
If your device is not the first CD device, change the number 0 accordingly. If your ISO has a different name, substitute the correct name in the command shown above.
+
 
+
=== Burning the CD/DVD ISO File on a Mac OSX System ===
+
 
+
To burn the ISO on a Mac OSX system, go to "Finder ➜ Applications ➜ Utilities ➜ Disk Utility". With a blank media inserted into the burner, highlight the device representing the CD/DVD writer and click the "Burn" button. This will open up a browser where you can select the ISO to burn. In the example shown in Figure 2.5j, the DVD ISO has been selected and the device is a Sony DVD writer.
+
 
+
'''Figure 2.5j: Using Disk Utility on Mac OSX'''
+
 
+
[[File:Mac.png]]
+
 
+
Once the ISO is highlighted, click the "Burn" button. A pop-up message will indicate that the device is ready to burn. Click "Burn" once more and "Disk Utility" will write the ISO to the CD/DVD media.
+
  
 
=== Writing an ISO File to USB Using SUSE Studio ImageWriter ===
 
=== Writing an ISO File to USB Using SUSE Studio ImageWriter ===
  
'''THIS DOES NOT RESULT IN A BOOTABLE STICK, NEEDS MORE TESTING, DITTO FOR UNETBOOTIN'''
+
'''{{redlight|THIS DOES NOT RESULT IN A BOOTABLE STICK}} - {{redlight|NEEDS MORE TESTING}} - {{redlight|UNETBOOTIN ALSO DOES NOT WORK}}'''
 
 
{{citelink|wp|url=SUSE_Studio_ImageWriter|txt=SUSE Studio ImageWriter}} is a utility for burning ISO files to a USB flash drive. It works on Linux and Windows.
+
{{citelink|wp|url=SUSE_Studio_ImageWriter|txt=SUSE Studio ImageWriter}} is a utility for burning ISO files to a USB flash drive. It works with Linux and Windows.
  
 
To use this utility, download {{citelink|url=https://github.com/downloads/openSUSE/kiwi/ImageWriter.exe|txt=ImageWriter.exe}}. If you open this executable on a Windows system, you will see the screen shown in Figure 2.5k.
 
To use this utility, download {{citelink|url=https://github.com/downloads/openSUSE/kiwi/ImageWriter.exe|txt=ImageWriter.exe}}. If you open this executable on a Windows system, you will see the screen shown in Figure 2.5k.
  
'''Figure 2.5k: Using ImageWriter in Windows'''
+
[[File:Mac2b.png|right|thumb|400px|'''Figure 2.5m: Extracting the Image on Mac''']]
 
+
[[File:Image_writer.png]]
+
  
 
Due to a bug in the Windows implementation, you will need to type ''*.*'' and press enter in order for the ISO file to show in the selection screen. Once you have selected the ISO and the USB device, click the "Copy" button to burn the image to the device. The application will warn that all existing data on the device will be deleted.
 
Due to a bug in the Windows implementation, you will need to type ''*.*'' and press enter in order for the ISO file to show in the selection screen. Once you have selected the ISO and the USB device, click the "Copy" button to burn the image to the device. The application will warn that all existing data on the device will be deleted.
Line 137: Line 109:
 
* a USB thumb drive or hard drive large enough to hold the image
 
* a USB thumb drive or hard drive large enough to hold the image
  
Once the image is written, boot from the removable device and proceed with the [[Installing PC-BSD®|PC-BSD® installation]].  
+
Once the image is written, boot from the removable device and proceed with the [[Installing PC-BSD®|PC-BSD® installation]].
  
==== Writing the IMG File on a Linux or BSD System ====
+
'''Note''': If there is a card reader on the system or used via USB dongle, the device enumeration may be affected. For example, with the USB card reader dongle as the destination for the image burn below, it would be ''/dev/da1'' instead of ''/dev/da0''.
 +
 
 +
==== Writing the IMG File on a BSD or Linux System ====
  
 
If you selected to download an ''.img.bz2'' file instead of an ISO, you can write the image file to a flash card or removable USB drive using the '''bunzip2''' and '''dd''' command line utilities on a BSD or Linux system. On a FreeBSD system, the superuser can use these commands to extract the specified image and write it to the first plugged in USB device:
 
If you selected to download an ''.img.bz2'' file instead of an ISO, you can write the image file to a flash card or removable USB drive using the '''bunzip2''' and '''dd''' command line utilities on a BSD or Linux system. On a FreeBSD system, the superuser can use these commands to extract the specified image and write it to the first plugged in USB device:
  
'''bunzip2 PCBSD9.1-x64-USBFULL.img.bz2'''
+
{{txtbox|pre|box='''bunzip2 PCBSD9.1-x64-USBFULL.img.bz2'''
'''dd if=PCBSD9.1-x64-USBFULL.img of=/dev/da0 bs=64k conv=sync'''
+
'''dd if=PCBSD9.1-x64-USBFULL.img of=/dev/da0 bs=64k conv=sync'''
63200+0 records in
+
63200+0 records in
63200+0 records out
+
63200+0 records out
4141875200 bytes transferred in 1395.261087 secs (2968531 bytes/sec)
+
4141875200 bytes transferred in 1395.261087 secs (2968531 bytes/sec)}}
  
 
When using the '''dd''' command:
 
When using the '''dd''' command:
Line 159: Line 133:
 
* '''conv=sync''' pads the final block so it is the specified block size
 
* '''conv=sync''' pads the final block so it is the specified block size
  
'''NOTE for Linux users:''' if you type '''mount''' with the USB stick inserted, you will see two or more device nodes corresponding to the USB stick. For example, ''/dev/sdc'' and ''/dev/sdc1'', where ''/dev/sdc1'' corresponds to the primary partition of the USB stick. Before using the '''dd''' command, ensure that the usb stick is first unmounted. When using the '''dd''' command, remember to use ''/dev/sdc'' (device node without the number) as the option for the output file '''of='''. Once the '''dd''' completes, you might not be able to mount the USB stick on Linux, as Linux has very limited support for UFS (the BSD filesystem that gets created on the USB stick).
+
{{note|width=48.5%|'''Linux users:''' if you type '''mount''' with the USB stick inserted, you will see two or more device nodes corresponding to the USB stick. For example, ''/dev/sdc'' and ''/dev/sdc1'', where ''/dev/sdc1'' corresponds to the primary partition of the USB stick. Before using the '''dd''' command, ensure that the usb stick is first unmounted. When using the '''dd''' command, remember to use ''/dev/sdc'' (device node without the number) as the option for the output file '''<nowiki>of=</nowiki>'''. Once the '''dd''' completes, you might not be able to mount the USB stick on Linux, as Linux has very limited support for UFS (the BSD filesystem that gets created on the USB stick).}}
  
==== Writing the IMG File on a Windows System ====
+
==== Writing the IMG File on a Mac&nbsp;OS&nbsp;X System ====
  
To burn the image file on a Windows system, you can use {{citelink|url=https://launchpad.net/win32-image-writer win32-image-writer}}. You will also need a utility that can extract ''.bz2'' files such as {{citelink|url=http://www.7-zip.org/|txt=7-Zip}}.
+
To extract the ''.img.bz2'' file on a Mac system, use Finder to browse to the location of the file, as seen in Figure 2.5m.
  
When downloading win32-image-writer, download the latest version that ends in ''-binary.zip'' and use a utility such as Windows Explorer or 7zip to unzip the executable.
+
Simply double-click the file to extract it to the ''.img'' format. Finder will create a second file with the ''.img'' extension.
  
To extract the PC-BSD® image file using 7-Zip, browse to the location containing your downloaded ''.img.bz2'' file, as seen in the example in Figure 2.5k.
+
To burn that ''.img'' file, insert a USB stick and open "Terminal". Run the '''diskutil list''' command to find out the device name of the USB disk, unmount the USB disk, then use '''dd''' to write the image to the raw disk (''rdisk''). In the following example, an 8GB USB stick has a device name of ''/dev/disk1'' and a raw device name of ''/dev/rdisk1''.
  
'''Figure 2.5k: Using 7-Zip to Extract Image File'''
+
{{txtbox|box='''diskutil list'''  
 +
/dev/disk0
 +
{{nbsp}} #:        TYPE NAME            SIZE      IDENTIFIER
 +
{{nbsp}} 0:  GUID_partition_scheme    *500.1 GB  disk0
 +
{{nbsp}} 1:                    EFI    209.7 MB  disk0s1
 +
{{nbsp}} 2:  Apple_HFS Macintosh HD    499.2 GB  disk0s2
 +
{{nbsp}} 3:  Apple_Boot Recovery HD    650.0 MB  disk0s3 
 +
/dev/disk1
 +
{{nbsp}} #:        TYPE NAME            SIZE      IDENTIFIER
 +
{{nbsp}} 0:  FDisk_partition_scheme    *8.0 GB    disk1
 +
{{nbsp}} 1:    DOS_FAT_32 UNTITLED    8.0 GB    disk1s1
  
[[File:7zip.JPG]]
+
'''diskutil unmountDisk /dev/disk1'''
 +
Unmount of all volumes on disk1 was successful
  
Click the "Extract" button and browse to the location where you would like to save the extracted image. Once extracted, your image will end in ''.img'', and will be ready to be written to a USB device using the win32-image-writer application.
+
'''sudo dd if=/Users/dru/Downloads/PCBSD9.1-x64-USBFULL.img of=/dev/rdisk1 bs=4m'''
 +
Password:
 +
375+0 records in
 +
375+0 records out
 +
1572864000 bytes transferred in 86.742798 secs (18132502 bytes/sec)}}
  
If you launch '''win32-image-writer.exe''', it will start the "Win32 Disk Imager" utility, shown in Figure 2.5l. Use the "Browse" button to browse to the location of the .img file. Insert a USB thumb drive and select its drive letter (in this example, drive F). Click the "Write" button and the image will be written to the USB thumb drive.
+
==== Writing the IMG File on a Windows System ====
  
'''Figure 2.5l: Using Win32 Disk Imager to Write the Image'''
+
To burn the image file on a Windows system, you can use {{citelink|url=https://launchpad.net/win32-image-writer|txt=win32-image-writer}}. You will also need a utility that can extract ''.bz2'' files such as {{citelink|url=http://www.7-zip.org/|txt=7-Zip}}.
  
[[File:Image.jpeg]]
+
When downloading win32-image-writer, download the latest version that ends in ''-binary.zip'' and use a utility such as Windows Explorer or 7zip to unzip the executable.
  
==== Writing the IMG File on a Mac OSX System ====
+
To extract the PC-BSD® image file using 7-Zip, browse to the location containing your downloaded ''.img.bz2'' file, as seen in the example in Figure 2.5k.
  
To extract the ''.img.bz2'' file on a Mac system, use Finder to browse to the location of the file, as seen in Figure 2.5m.
+
Click the "Extract" button and browse to the location where you would like to save the extracted image. Once extracted, your image will end in ''.img'', and will be ready to be written to a USB device using the win32-image-writer application.
 
+
'''Figure 2.5m: Extracting the Image on Mac'''
+
 
+
[[File:Mac1.png|border]]
+
 
+
Simply double-click the file to extract it to the ''.img'' format. Finder will create a second file with the ''.img'' extension.
+
 
+
To burn that ''.img'' file, insert a USB stick and open "Terminal". Run the '''diskutil list''' command to find out the device name of the USB disk, unmount the USB disk, then use '''dd''' to write the image to the raw disk (''rdisk''). In the following example, an 8GB USB stick has a device name of ''/dev/disk1'' and a raw device name of ''/dev/rdisk1''.
+
 
+
'''diskutil list'''
+
/dev/disk0
+
  #:        TYPE NAME            SIZE      IDENTIFIER
+
  0:  GUID_partition_scheme    *500.1 GB  disk0
+
  1:                    EFI    209.7 MB  disk0s1
+
  2:  Apple_HFS Macintosh HD    499.2 GB  disk0s2
+
  3:  Apple_Boot Recovery HD    650.0 MB  disk0s3 
+
/dev/disk1
+
  #:        TYPE NAME            SIZE      IDENTIFIER
+
  0:  FDisk_partition_scheme    *8.0 GB    disk1
+
  1:    DOS_FAT_32 UNTITLED    8.0 GB    disk1s1
+
  
'''diskutil unmountDisk /dev/disk1'''
+
If you launch '''win32-image-writer.exe''', it will start the "Win32 Disk Imager" utility, shown in Figure 2.5l. Use the "Browse" button to browse to the location of the .img file. Insert a USB thumb drive and select its drive letter (in this example, drive D). Click the "Write" button and the image will be written to the USB thumb drive.
Unmount of all volumes on disk1 was successful
+
  
'''sudo dd if=/Users/dru/Downloads/PCBSD9.1-x64-USBFULL.img of=/dev/rdisk1 bs=4m'''
+
[[File:7zip1.png|left|thumb|385px|'''Figure 2.5k: Using 7-Zip to Extract Image File''']]
Password:
+
[[File:Image.png|thumb|385px|'''Figure 2.5l: Using Win32 Disk Imager to Write the Image''']]
375+0 records in
+
375+0 records out
+
1572864000 bytes transferred in 86.742798 secs (18132502 bytes/sec)
+
  
<noinclude>{{refheading}}</noinclude>
 
 
<noinclude>
 
<noinclude>
 +
{{refheading}}
 
[[category:handbook]]
 
[[category:handbook]]
 
[[category:Pre-Installation Tasks]]
 
[[category:Pre-Installation Tasks]]
 
[[category:Burning the Installation Media]]
 
[[category:Burning the Installation Media]]
 
</noinclude>
 
</noinclude>

Revision as of 13:14, 10 March 2013

(Sorry for the inconvenience)

Contents

Once you have downloaded PC-BSD® and verified its checksum, burn the file to the correct media type. This section demonstrates how to do so using several different applications and operating systems. Each application assumes that the correct media (CD, DVD, or USB flash drive) for the type of file is inserted.

Burning the CD/DVD ISO File on a BSD or Linux System

This section demonstrates how to burn the installation ISO on a Linux or BSD system using the following tools: K3B, Brasero, and growisofs.

K3B

K3B[1] is an easy-to-use graphical burning application for Linux and BSD systems. On a PC-BSD® system, it is installed with the KDE desktop. You can also install the K3B PBI using Using AppCafe®.

To burn your ISO, launch K3B, browse to the location of the .iso file in the screen shown in Figure 2.5f and click ToolsBurn Image... to see the screen in Figure 2.5g.

Figure 2.5f: Selecting the Burn Image Tool Within K3B
Figure 2.5g: K3B's Burn Image Screen

Click the "Start" button to burn the file. K3B will automatically eject the media once the burn is complete.

Brasero

Brasero[2] is an easy to use burning application included with the GNOME desktop. A PBI is also available within AppCafe®. To launch Brasero within GNOME, click ApplicationsMultimediaBrasero Disk Burner and the dialog window shown in Figure 2.5h will be displayed. Alternately, type brasero from within any window manager.

Click Burn image to open the screen seen in Figure 2.5i. Use the Click here to select a disk image button to select your .iso file.

Figure 2.5h: Brasero's Initial Screen
Figure 2.5i: Brasero Image Burning Setup

The name and size of your .iso file should appear and Brasero will indicate the size of the media. The lower portion of Figure 2.5i shows the menu that appears if you click on the "Properties" button. You can change these options if you wish, but the default settings are fine in most cases. When you are ready, click the "Burn" button and Brasero will burn your ISO.

Xfburn

Xfburn[3] is available to install as PBI Software and is installed with XFCE4.

growisofs

If you are familiar with using the command line on a FreeBSD or PC-BSD® system, you can use the growisofs command line utility to burn the DVD. This utility is included with the dvd+rw-tools FreeBSD port which is installed by default on a PC-BSD® system. If that software is not yet installed on a FreeBSD system, issue this command as the superuser:

pkg_add -r dvd+rw-tools

Depending upon the type of DVD burner hardware, you may have to configure the system to use it. If the device is ATAPI (i.e. not USB or SCSI), the ATAPI driver must be loaded. The superuser can issue this command:

kldload atapicam

If you just get your prompt back, the driver successfully loaded. If you get the message "kldload: cannot load atapicam: File exists", this means that the driver was already loaded. If the device is USB or SCSI, no additional drivers need to be loaded if you are running the generic FreeBSD kernel. After inserting the DVD media into the device, you can start the burn using this command:

growisofs -Z /dev/cd0=PCBSD9.1-x64-DVD.iso

If your device is not the first CD device, change the number 0 accordingly. If your ISO has a different name, substitute the correct name in the command shown above.

Burning the CD/DVD ISO File on a Mac OS X System

To burn the ISO on a Mac OS X system, go to "Finder ➜ Applications ➜ Utilities ➜ Disk Utility". With a blank media inserted into the burner, highlight the device representing the CD/DVD writer and click the "Burn" button.
Figure 2.5j: Using Disk Utility on Mac OS X
This will open up a browser where you can select the ISO to burn. In the example shown in Figure 2.5j, the DVD ISO has been selected and the device is a Sony DVD writer.

Once the ISO is highlighted, click the "Burn" button. A pop-up message will indicate that the device is ready to burn. Click "Burn" once more and "Disk Utility" will write the ISO to the CD/DVD media.

Burning the CD/DVD ISO File on a Windows System

Several burning applications are available for Windows. This section will demonstrate how to use Windows 7's Disc Image Burner, ImgBurn, and InfraRecorder.

Windows 7 Disc Image Burner

Windows 7 has built-in support for writing ISO images to disc. Right-click on the .iso file in Windows Explorer and select "Open with ➜ Windows Disc Image Burner" to open the screen shown in Figure 2.5a. Click "Burn" to write the disc. See the Microsoft article Burn a CD or DVD from an ISO file[4] for more detailed instructions.

Figure 2.5a: Windows Disc Image Burner
Figure 2.5b: Initial ImgBurn Screen

ImgBurn

ImgBurn[5] is an easy to use ISO burner for Windows that is available for free download. After installing and launching ImgBurn, select "Write image file to disk" from the main menu, seen in Figure 2.5b:

You can then use File ➜ Browse for a source file... to select the .iso file to burn; once selected, your screen should look similar to Figure 2.5c. Click the Write icon in the lower left corner to begin the burn.

Figure 2.5c: Selecting the Source and Destination in ImgBurn

ImgBurn will provide a status bar to indicate the progress of the burn. When it is finished, ImgBurn will eject the burner tray then reclose it in order to verify the burn. If the tray does not return itself, which may occur on a laptop, push the tray back in if you wish to verify the burn.

InfraRecorder

InfraRecorder[6] is an open source burning application for both CDs and DVDs. Once installed, open InfraRecorder and click on the "Write Image" button shown in Figure 2.5d:

Figure 2.5k: Using ImageWriter in Windows
Figure 2.5d: Initial InfraRecorder Screen

InfraRecorder will display a screen where you can browse to the location of the .iso file. Once selected, you will be presented with an options screen shown in Figure 2.5e:

Figure 2.5e: Burn Options in InfraRecorder

You can accept the defaults and click "OK" to start the burn. When finished, the burner tray will open and a dialog box will appear indicating that the burning process has finished.

Writing an ISO File to USB Using SUSE Studio ImageWriter

 THIS DOES NOT RESULT IN A BOOTABLE STICK  -  NEEDS MORE TESTING  -  UNETBOOTIN ALSO DOES NOT WORK 

SUSE Studio ImageWriter[7] is a utility for burning ISO files to a USB flash drive. It works with Linux and Windows.

To use this utility, download ImageWriter.exe[8]. If you open this executable on a Windows system, you will see the screen shown in Figure 2.5k.

Figure 2.5m: Extracting the Image on Mac

Due to a bug in the Windows implementation, you will need to type *.* and press enter in order for the ISO file to show in the selection screen. Once you have selected the ISO and the USB device, click the "Copy" button to burn the image to the device. The application will warn that all existing data on the device will be deleted.

Writing an IMG File to USB

To write an .img.bz2 file you will need the following:

  • a utility that can extract .bz2 zipped files
  • a utility that can write the image to a USB media; the utility that you use will depend upon your operating system
  • a USB thumb drive or hard drive large enough to hold the image

Once the image is written, boot from the removable device and proceed with the PC-BSD® installation.

Note: If there is a card reader on the system or used via USB dongle, the device enumeration may be affected. For example, with the USB card reader dongle as the destination for the image burn below, it would be /dev/da1 instead of /dev/da0.

Writing the IMG File on a BSD or Linux System

If you selected to download an .img.bz2 file instead of an ISO, you can write the image file to a flash card or removable USB drive using the bunzip2 and dd command line utilities on a BSD or Linux system. On a FreeBSD system, the superuser can use these commands to extract the specified image and write it to the first plugged in USB device:

bunzip2 PCBSD9.1-x64-USBFULL.img.bz2

dd if=PCBSD9.1-x64-USBFULL.img of=/dev/da0 bs=64k conv=sync 63200+0 records in 63200+0 records out

4141875200 bytes transferred in 1395.261087 secs (2968531 bytes/sec)

When using the dd command:

  • if= refers to the input file to be written; it should end with an .img extension
  • of= refers to the output file (the device name of the flash card or removable USB drive); increment the number in the name if it is not the first USB device
  • bs= refers to the block size
  • conv=sync pads the final block so it is the specified block size
Template:Word-note Linux users: if you type mount with the USB stick inserted, you will see two or more device nodes corresponding to the USB stick. For example, /dev/sdc and /dev/sdc1, where /dev/sdc1 corresponds to the primary partition of the USB stick. Before using the dd command, ensure that the usb stick is first unmounted. When using the dd command, remember to use /dev/sdc (device node without the number) as the option for the output file of=. Once the dd completes, you might not be able to mount the USB stick on Linux, as Linux has very limited support for UFS (the BSD filesystem that gets created on the USB stick).

Writing the IMG File on a Mac OS X System

To extract the .img.bz2 file on a Mac system, use Finder to browse to the location of the file, as seen in Figure 2.5m.

Simply double-click the file to extract it to the .img format. Finder will create a second file with the .img extension.

To burn that .img file, insert a USB stick and open "Terminal". Run the diskutil list command to find out the device name of the USB disk, unmount the USB disk, then use dd to write the image to the raw disk (rdisk). In the following example, an 8GB USB stick has a device name of /dev/disk1 and a raw device name of /dev/rdisk1.

diskutil list

/dev/disk0   #: TYPE NAME SIZE IDENTIFIER   0: GUID_partition_scheme *500.1 GB disk0   1: EFI 209.7 MB disk0s1   2: Apple_HFS Macintosh HD 499.2 GB disk0s2   3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk1   #: TYPE NAME SIZE IDENTIFIER   0: FDisk_partition_scheme *8.0 GB disk1   1: DOS_FAT_32 UNTITLED 8.0 GB disk1s1

diskutil unmountDisk /dev/disk1 Unmount of all volumes on disk1 was successful

sudo dd if=/Users/dru/Downloads/PCBSD9.1-x64-USBFULL.img of=/dev/rdisk1 bs=4m Password: 375+0 records in 375+0 records out

1572864000 bytes transferred in 86.742798 secs (18132502 bytes/sec)

Writing the IMG File on a Windows System

To burn the image file on a Windows system, you can use win32-image-writer[9]. You will also need a utility that can extract .bz2 files such as 7-Zip[10].

When downloading win32-image-writer, download the latest version that ends in -binary.zip and use a utility such as Windows Explorer or 7zip to unzip the executable.

To extract the PC-BSD® image file using 7-Zip, browse to the location containing your downloaded .img.bz2 file, as seen in the example in Figure 2.5k.

Click the "Extract" button and browse to the location where you would like to save the extracted image. Once extracted, your image will end in .img, and will be ready to be written to a USB device using the win32-image-writer application.

If you launch win32-image-writer.exe, it will start the "Win32 Disk Imager" utility, shown in Figure 2.5l. Use the "Browse" button to browse to the location of the .img file. Insert a USB thumb drive and select its drive letter (in this example, drive D). Click the "Write" button and the image will be written to the USB thumb drive.

Figure 2.5k: Using 7-Zip to Extract Image File
Figure 2.5l: Using Win32 Disk Imager to Write the Image


References


  1. http://www.kde.org/applications/multimedia/k3b/
  2. http://projects.gnome.org/brasero/
  3. http://goodies.xfce.org/projects/applications/xfburn
  4. http://windows.microsoft.com/en-US/windows7/Burn-a-CD-or-DVD-from-an-ISO-file
  5. http://www.imgburn.com/
  6. http://infrarecorder.org/
  7. http://en.wikipedia.org/wiki/SUSE_Studio_ImageWriter
  8. https://github.com/downloads/openSUSE/kiwi/ImageWriter.exe
  9. https://launchpad.net/win32-image-writer
  10. http://www.7-zip.org/
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox