Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OK so I used sdFormatter on a windows machine and recovered the 8GB SDCard
- Back in Ubuntu I resized the partition to 4GB
- Its now called /dev/sdg
- $ sudo fdisk -l /dev/sdg
- Disk /dev/sdg: 7948 MB, 7948206080 bytes
- 255 heads, 63 sectors/track, 966 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x00018c00
- Device Boot Start End Blocks Id System
- /dev/sdg1 1 523 4196901+ b W95 FAT32
- /dev/sdc is the original 4GB Card with all the content that I want to put on /dev/sdg
- $ sudo fdisk -l /dev/sdc
- Disk /dev/sdc: 4014 MB, 4014997504 bytes
- 4 heads, 16 sectors/track, 122528 cylinders
- Units = cylinders of 64 * 512 = 32768 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x0009a5fa
- Device Boot Start End Blocks Id System
- /dev/sdc1 33 38544 1232374+ e W95 FAT16 (LBA)
- /dev/sdc2 38657 122528 2683904 85 Linux extended
- /dev/sdc5 38785 40576 57344 c W95 FAT32 (LBA)
- /dev/sdc6 40705 122528 2618368 83 Linux
- Checked both cards are unmounted
- sudo dd if=/dev/sdc of=/dev/sdg bs=4M
- dd: opening `/dev/sdc': No medium found
- OK so perhaps the if needs to be mounted
- unplugged 4GB sdcard and r
- Lets try again...
- sudo dd if=/dev/sdc of=/dev/sdg bs=4M
- 957+1 records in
- 957+1 records out
- 4014997504 bytes (4.0 GB) copied, 1193.99 s, 3.4 MB/s
- Looks good.
- Placed in pi
- Sorted:-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement