Ok I have a TS-7500 and it has on its 2GB Micro
SD card 4 partitions and a bootable Debian linux. The TS-7500 boots to Busybox
Linux and from there I can umount the SD card and see its partitions:
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 549.7 GB, 549755813888 bytes
1 heads, 62 sectors/track, 17318416 cylinders
Units = cylinders of 62 * 512 = 31744 bytes
Device Boot Start End Blocks Id System
/dev/nbd0p1 5 42282 1310592 c Win95 FAT32 (LBA)
/dev/nbd0p2 42282 42348 2048 da Unknown
/dev/nbd0p3 42348 42414 2048 da Unknown
/dev/nbd0p4 42414 59326 524288 83 Linux
so now I want to make a new Micro SD card with these same information with a
slight twist; I only have a 1GB Micro SD card. No real problem as I don't
really need the FAT partition so I can take away from that. So I install the
1GB Micro SD card on the thumbdrive and plug that into the USB port of the
TS-7500, and make up the 4 partitions on the /dev/sda device:
# fdisk /dev/sda
.......
.......
.......
Command (m for help): p
Disk /dev/sda: 1015 MB, 1015808000 bytes
32 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sda1 5 20 16128 c Win95 FAT32 (LBA)
/dev/sda2 21 23 3024 da Unknown
/dev/sda3 24 26 3024 da Unknown
/dev/sda4 27 560 538272 83 Linux
Command (m for help): w
The partition table has been altered!:
# fdisk -l /dev/sda
Disk /dev/sda: 1015 MB, 1015808000 bytes
32 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sda1 5 20 16128 c Win95 FAT32 (LBA)
/dev/sda2 21 23 3024 da Unknown
/dev/sda3 24 26 3024 da Unknown
/dev/sda4 27 560 538272 83 Linux
Now for the question:
Using the busybox linux, how do I get the contents of the 2GB's 3 partitions to
the 3 partitions of the 1GB card?
This is assuming that my partitions are acceptable, so if my partitions are not
right please help me with them, I couldn't figure out how to make partitions 2
and 3 exactly 2048 like in the original 2GB micro SD card.
TIA,
Jleslie48