2014-06-05 01:25:25 +02:00
# Copy an image to an SD card
2014-06-05 18:22:36 +02:00
Now that you have the YunoHost image, you have to copy its content to an SD card.
The process differs regarding your operating system.
2016-03-22 09:14:24 +01:00
< img src = "/images/sdcard.jpg" width = 150 > < img src = "https://yunohost.org/images/micro-sd-card.jpg" >
2014-06-05 18:22:36 +02:00
2014-06-05 01:25:25 +02:00
## On Windows
2014-06-05 18:22:36 +02:00
2014-06-05 01:25:25 +02:00
* Download and install ** [Win32 Disk Imager ](http://sourceforge.net/projects/win32diskimager/ )**
* Plug your SD card in
2014-06-05 21:34:36 +02:00
* Copy the `.img` file to your SD card using Win32 Disk Imager.
2014-06-05 01:25:25 +02:00
2016-03-22 09:14:24 +01:00
< img src = "/images/win32diskimager.png" >
2014-06-05 18:22:36 +02:00
## On GNU/Linux, BSD or Mac OS
2014-06-05 01:25:25 +02:00
* Open a terminal
* Plug your SD card in
* Identify the device name by typing:
```bash
sudo fdisk -l
```
It should be `/dev/diskN` , where `N` is a number, or `/dev/sdX` , where `X` is a letter.
2015-10-24 05:09:00 +02:00
Carefull to not put the digit `N` cause it will create an [non-functional SD card ](https://raspberrypi.stackexchange.com/questions/11880/sd-card-doesnt-works-after-dd ).
2015-05-25 19:16:10 +02:00
2014-06-05 01:25:25 +02:00
* Copy the image by typing:
```bash
2015-03-16 22:08:42 +01:00
sudo dd if=/path/to/your/.img of=/your/device/name
2014-06-05 01:25:25 +02:00
```
2014-06-06 14:57:39 +02:00
< span class = "glyphicon glyphicon-warning-sign" ></ span > Do not forget to change `/path/to/your/.img` and `/your/device/name` with the appropriate values.
2014-06-05 01:25:25 +02:00
2014-06-05 11:44:19 +02:00
The command may take a few minutes, then your SD card will be ready to use. ** :-)**
2014-06-05 18:22:36 +02:00
## Expand the root partition <small>(optional)</small>
By default, the root partition of your SD card is very small.
You can resize it by using software like `resize2fs` (command-line) or `gparted` (graphical).
2016-03-22 09:14:24 +01:00
< img src = "/images/gparted.jpg" style = "max-width:100%;border-radius: 5px;border: 1px solid rgba(0,0,0,0.15);box-shadow: 0 5px 15px rgba(0,0,0,0.35);" >
2014-06-05 11:44:19 +02:00
2015-10-24 05:09:00 +02:00
< p class = "text-muted" > Preview of the Gparted window< / p >