Step 0 : !!!Please ignore this step !!!
Existing image: I’d a copy of OpenELEC-RPi2.arm-5.0.8.img.gz and I try to flash in my Transcend 8GB Class2 card , but no luck. When I investigate ,it appears the files seems corrupted.
kesavan@kesavan-Ideapad-Z460:~$ cd Desktop/ kesavan@kesavan-Ideapad-Z460:~/Desktop$ gunzip -d OpenELEC-RPi2.arm-5.0.8.img.gz gzip: OpenELEC-RPi2.arm-5.0.8.img.gz: unexpected end of file kesavan@kesavan-Ideapad-Z460:~/Desktop$ ls -l OpenELEC* total 167M -rwxr----- 1 kesavan kesavan 61M May 13 17:59 OpenELEC-RPi2.arm-5.0.8.img.gz -rwxr----- 1 kesavan kesavan 106M May 13 17:59 OpenELEC-RPi2.arm-5.0.8.tar kesavan@kesavan-Ideapad-Z460:~/Desktop$ rm OpenELEC-RPi2.arm-5.0.8.img.gz rm: remove regular file ‘OpenELEC-RPi2.arm-5.0.8.img.gz’? y kesavan@kesavan-Ideapad-Z460:~/Desktop$
Step 1: Download a fresh copy
Directly download a fresh copy from Official site and extract it.
kesavan@kesavan-Ideapad-Z460:~/Desktop$ cd ../Downloads/ kesavan@kesavan-Ideapad-Z460:~/Downloads$ kesavan@kesavan-Ideapad-Z460:~/Downloads$ gunzip -d OpenELEC-RPi2.arm-5.0.8.img.gz kesavan@kesavan-Ideapad-Z460:~/Downloads$ parted -l
Step 2: Find the exact name of SD card Use dmesg | tail to find the name of SD card
Connect your card to computer. You can use mobile or SD card reader. And run dmesg|tail
kesavan@kesavan-Ideapad-Z460:~/Downloads$ dmesg |tail -15 [828753.106804] scsi8 : usb-storage 2-1.2:1.0 [828754.105626] scsi 8:0:0:0: Direct-Access LGE E400 0100 PQ: 0 ANSI: 2 [828754.106546] scsi 8:0:0:1: Direct-Access LGE E400 SD Card 0100 PQ: 0 ANSI: 2 [828754.107302] sd 8:0:0:0: Attached scsi generic sg2 type 0 [828754.107802] sd 8:0:0:1: Attached scsi generic sg3 type 0 [828754.115031] sd 8:0:0:1: [sdc] Attached SCSI removable disk [828754.115041] sd 8:0:0:0: [sdb] Attached SCSI removable disk [828762.784575] sd 8:0:0:1: [sdc] 15751168 512-byte logical blocks: (8.06 GB/7.51 GiB) [828762.785445] sd 8:0:0:1: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [828762.790349] sdc: [828777.128633] sd 8:0:0:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB) [828777.129673] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [828777.134057] sdb: kesavan@kesavan-Ideapad-Z460:~/Downloads$
It appears mine is [sdc]
NB: I’m using my LG E400 mobile , to connect the SD Card with GNU/Linux Z460 Laptop. Please note in above example , the phone’s internal memory mounted on [sdb]
Also double check with command mount
kesavan@kesavan-Ideapad-Z460:~/Downloads$ mount | grep sdc /dev/sdc on /media/kesavan/8027-0BC8 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2) kesavan@kesavan-Ideapad-Z460:~/Downloads$
Step 3 : Unmount the SD card
Now umount that card , so that we can safely flash.
kesavan@kesavan-Ideapad-Z460:~/Downloads$ umount /dev/sdc kesavan@kesavan-Ideapad-Z460:~/Downloads$
Step 4 : Flash the card
Ensure it’s not mounted (ie, umount is 100% success)
kesavan@kesavan-Ideapad-Z460:~/Downloads$ mount|grep sdc kesavan@kesavan-Ideapad-Z460:~/Downloads$
There’s nothing. We’re safe to proceed.
Flash it
!!! WARNING !!! : This will wipe the entire partition
kesavan@kesavan-Ideapad-Z460:~/Downloads$ sudo dd if=OpenELEC-RPi2.arm-5.0.8.img of=/dev/sdc bs=4M [sudo] password for kesavan: no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory 73+0 records in 73+0 records out 306184192 bytes (306 MB) copied, 55.4967 s, 5.5 MB/s kesavan@kesavan-Ideapad-Z460:~/Downloads$
Sync it.
kesavan@kesavan-Ideapad-Z460:~/Downloads$ sync kesavan@kesavan-Ideapad-Z460:~/Downloads$
Step 5 : Job Done
You’re ready to use your SD Card to use with RaspberryPi2. Congrats.