티스토리 뷰

Linux/명령어 (command)

SD Card Write / Backup

이주성 2017. 9. 14. 23:21

First, verify the path to your SD card. You can do this by running the following command from terminal:

diskutil list

The output shows a list of disks currently mounted on the system. Here's the relevant line from my output:

/dev/disk3
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:     FDisk_partition_scheme                        *8.0 GB     disk3
1:                 DOS_FAT_32 RPISDCARD               8.0 GB     disk3s1

In this case I can verify /dev/disk3 is my SD card because the TYPE, NAME and SIZE values are correct.

If you have an existing partition on the disk you may need to unmount it, otherwise you'll get a "Resource busy" error message when you try to write the image.

diskutil unmount /dev/disk3s1

Now to write the image file to the disk. Note the 'r' added to rdisk3 which drastically improves write performance by telling dd to operate in raw disk mode:

sudo dd if=RetroPieImage_ver2.3.img of=/dev/rdisk3 bs=1m

Depending on the size of your SDcard this may take a while. You can press CTRL+T to see the current status of dd. As an example for my Samsung 8GB SD card the write speed was 12MB/s the command took 11mins to complete.


백업(Backup)도 SDCard Write와 비슷하다. if와 of만 바꾸면 되구나^^

sudo dd if=/dev/rdisk3 of=RetroPieImage_ver2.3.img bs=1m



'Linux > 명령어 (command)' 카테고리의 다른 글

로그를 보는법 (log)  (0) 2017.12.11
service start/stop  (0) 2017.12.11
mount nfs하기  (0) 2017.12.08
port 번호 보기  (0) 2017.11.23
iconv (encoding)  (0) 2017.09.15
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함