Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Differences in Revisions: Howto write a flash image to disk?

corrected formatting and fix code blocks
# Howto write a flash image to disk?
 
## Preparation
 
First you need to download the image you want to flash on your USB key, compact flash, or SD card. This could be either one the IPFire flash images or the ISO image. To find out which one is the right one you want to use, please checkout out the [installation guide](.).
 
| Note! |
|---|
**Note that all data on the flash card or USB key will be overwritten!**
| all data on the flash card or USB key will be overwritten! |
 
Secondly, choose a method below that works with your operating system.
 
## Microsoft Windows
 
### Win32 Disk Imager
 
This method uses the Win32 Disk Imager and works for Windows XP/Vista/7/8.
 
- Download the newest version of [Win32 Disk Imager](http://sourceforge.net/projects/win32diskimager/)
`- Install Win32 Disk Imager`
- Install Win32 Disk Imager
`- Plug-in the USB drive you want to use`
- Plug-in the USB drive you want to use
`- Open Win32 Disk Imager`
- Open Win32 Disk Imager
`- Click the blue folder to open a file dialog`
- Click the blue folder to open a file dialog
- Change the file type from "Disk Images (*.img *.IMG)" to "*.*"
- Find and select the IPFire ISO or image file (maybe you need to uncompress first with [XZ for Windows](https://tukaani.org/xz/xz-5.2.4-windows.zip) for example - all the flash and arm images have type "*.xz")
`- Select the correct "Device" (the USB drive)`
- Select the correct "Device" (the USB drive)
- Do **not** click Read!
- Do **not** click Read!
`- Click "Write"`
- Click "Write"
`- Done!`
 
Done!
 
![](/installation/win32di.png)
 
After writing, Windows may not recognize the file system on the USB drive and may offer to format the USB drive. This is normal, so do*not* format the USB drive. Windows may also report low capacity (around 150MB) even if the USB drive had higher capacity. This is normal, [you can easily restore the full capacity later if you need it](http://lmgtfy.com/?q=restore+usb+drive+back+to+full+capacity).
 
 
### Rufus
 
This method uses the Rufus and works for Windows XP/Vista/7/8/10.
 
- Download the newest version of [Rufus](https://rufus.akeo.ie/)
`- Install or use the portable version of Rufus`
- Install or use the portable version of Rufus
`- Plug-in the USB drive you want to use`
- Plug-in the USB drive you want to use
`- Open Rufus`
- Open Rufus
`- Click the CD/HDD button behind ISO-Image`
- Click the CD/HDD button behind ISO-Image
`- Find and select the IPFire ISO`
- Find and select the IPFire ISO
`- Switch the Image Type from ISO-Image to DD-Image`
- Switch the Image Type from ISO-Image to DD-Image
`- Select the correct "Device" (the USB drive)`
- Select the correct "Device" (the USB drive)
`- Click "Start"`
- Click "Start"
`- Done!`
 
Done!
 
![](/installation/rufus.png)
 
 
## Linux and other *nixes
 
### Which device is my USB drive?
 
One method of finding out is open a Linux Terminal and use the command:
 
```
lsblk
```
 
### Using dd
 
* Open a terminal
* Insert the USB drive
* You will have to unmount the USB drive, to be able to write to it. Do so with the command:
 
<code bash>
```
umount /dev/sdX
</code>
```
 
Change "sdX" to correspond with your USB drive.
 
Then execute the following commands:
 
<code bash>
```
dd if=/path/to/ipfire-2.15.i586-full-core86.iso of=/dev/sdX bs=1M
eject /dev/sdX
</code>
```
 
 
## MacOS
 
### Which device is my USB drive?
 
* Open a terminal
* Insert the USB drive
 
```
diskutil list
```
 
Change "diskX" to correspond with your USB drive.
 
```
diskutil unmountdisk /dev/diskX
```
 
Then execute the following commands:
```
sudo dd bs=1m of=/dev/rdiskX if=/path/to/ipfire-2.19.x86_64-full-core118.iso
 
diskutil eject /dev/diskX
```