Advertisement
Guest User

success cloning a 4GB sdcard with dd

a guest
Aug 21st, 2013
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. OK so I used sdFormatter on a windows machine and recovered the 8GB SDCard
  2. Back in Ubuntu I resized the partition to 4GB
  3. Its now called /dev/sdg
  4.  
  5. $ sudo fdisk -l /dev/sdg
  6.  
  7. Disk /dev/sdg: 7948 MB, 7948206080 bytes
  8. 255 heads, 63 sectors/track, 966 cylinders
  9. Units = cylinders of 16065 * 512 = 8225280 bytes
  10. Sector size (logical/physical): 512 bytes / 512 bytes
  11. I/O size (minimum/optimal): 512 bytes / 512 bytes
  12. Disk identifier: 0x00018c00
  13.  
  14. Device Boot Start End Blocks Id System
  15. /dev/sdg1 1 523 4196901+ b W95 FAT32
  16.  
  17. /dev/sdc is the original 4GB Card with all the content that I want to put on /dev/sdg
  18.  
  19. $ sudo fdisk -l /dev/sdc
  20.  
  21. Disk /dev/sdc: 4014 MB, 4014997504 bytes
  22. 4 heads, 16 sectors/track, 122528 cylinders
  23. Units = cylinders of 64 * 512 = 32768 bytes
  24. Sector size (logical/physical): 512 bytes / 512 bytes
  25. I/O size (minimum/optimal): 512 bytes / 512 bytes
  26. Disk identifier: 0x0009a5fa
  27.  
  28. Device Boot Start End Blocks Id System
  29. /dev/sdc1 33 38544 1232374+ e W95 FAT16 (LBA)
  30. /dev/sdc2 38657 122528 2683904 85 Linux extended
  31. /dev/sdc5 38785 40576 57344 c W95 FAT32 (LBA)
  32. /dev/sdc6 40705 122528 2618368 83 Linux
  33.  
  34. Checked both cards are unmounted
  35.  
  36. sudo dd if=/dev/sdc of=/dev/sdg bs=4M
  37. dd: opening `/dev/sdc': No medium found
  38. OK so perhaps the if needs to be mounted
  39. unplugged 4GB sdcard and r
  40. Lets try again...
  41. sudo dd if=/dev/sdc of=/dev/sdg bs=4M
  42. 957+1 records in
  43. 957+1 records out
  44. 4014997504 bytes (4.0 GB) copied, 1193.99 s, 3.4 MB/s
  45. Looks good.
  46. Placed in pi
  47. Sorted:-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement