Software Archive
Read-only legacy content
17060 Discussions

Error creating Live USB

NagaVenkat_K_Intel
1,165 Views

Hi,

I have created a Live USB using dd and after a while the USB died. I tried using a different pen drive and while booting it always displays MBR 1FA. I tried reformatting but still not able to succeed. Tried googling but no success. Is the problem with USB or am I doing something wrong?

Regards,

Raghu Kona

0 Kudos
1 Solution
Matthias_H_Intel
Employee
1,165 Views

that means your flashdrive is automounted. Pls unmount first (sudo umount /dev/sdb1) and then dd over to /dev/sdb rather than /dev/sdb1.

In order to use all your 16 GB you will have to resize the partition after dd'ing which is described in another IoT threa (e.g. using gparted)

View solution in original post

0 Kudos
5 Replies
Brendan_L_Intel
Employee
1,165 Views

NAGA VENKATA RAGHU KIRAN K. (Intel) wrote:

I have created a Live USB using dd and after a while the USB died. I tried using a different pen drive and while booting it always displays MBR 1FA. I tried reformatting but still not able to succeed. Tried googling but no success. Is the problem with USB or am I doing something wrong?

Can you post the exact dd command you are using? Few common issues:

  1. no conv=fsync dd option and no `sync` done before unplugging USB stick for writing
  2. wrote to partition instead of directly to device node (/dev/sdX1 vs correct /dev/sdX)
  3. Image was not uncompressed (it's bz2 compressed so you need to `bunzip2` before writing
  4. USB stick is too small
  5. Image not fully downloaded
0 Kudos
NagaVenkat_K_Intel
1,165 Views

I am using this command

sudo dd if=devkit-live-img-final.binblob of=/dev/sdX bs=8M conv=fsync

Now I am getting a different error

dd: fsync failed for ‘/dev/sdb1’: Input/output error
955+0 records in
955+0 records out
8011120640 bytes (8.0 GB) copied, 692.881 s, 11.6 MB/s

 

0 Kudos
Matthias_H_Intel
Employee
1,164 Views

- check the filesize of the image (ls -la devkit-live-img-final.binblob) and compare with the size of your flashdrive (sudo fdisk -l /dev/sd<X>)

> is you your flashdrive sufficiently large at all?

- I would need to check - but the bunzipped bz2 image I downloaded was about 4GB as far as I remember. I am a bit puzzled your image is that large

- it looks like you dd'ed to /dev/sdb1 rather than to /dev/sdb (" ‘/dev/sdb1’: Input/output error") which would be wrong

0 Kudos
NagaVenkat_K_Intel
1,165 Views

The size of the devkit-live-img-final.binblob file is 8011120640 my flash drive size is 16 GB (14.9).

The downloaded unzipped file size is 4521773191

When i type the command df -h, USB is represented as

/dev/sdb1        15G  1.1M   15G   1% /media/raghu/C065-8342

so I used /deb/sdb1

0 Kudos
Matthias_H_Intel
Employee
1,166 Views

that means your flashdrive is automounted. Pls unmount first (sudo umount /dev/sdb1) and then dd over to /dev/sdb rather than /dev/sdb1.

In order to use all your 16 GB you will have to resize the partition after dd'ing which is described in another IoT threa (e.g. using gparted)

0 Kudos
Reply