I wanted to make a bootable SD card for the TS7390 but resize the
partitions
to make more room in the 4th partition for native development.
This is how to do it. I want to save others the trouble of what it took to
figure this out.
First, you must repartition your new SD card and create the file systems.
Ted Roth has information on how to do this
http://tech.groups.yahoo.com/group/ts-7000/message/12885
Note: You cannot do this on the TS7390 card. The fdisk command does
not work properly.
I found that you can go through the motions and it pretends to work,
but it does not apparently
write the partition table to the SD even though it indicates that it did.
You must do the partitioning on another linux machine.
Next - using your old SD card that boots:
dd if=/dev/tssdcarda of=sd-mbr.dd bs=320 count=1
dd if=/dev/tssdcarda1 of=sdpart1.dd
dd if=/dev/tssdcarda2 of=sdpart2.dd
dd if=/dev/tssdcarda3 of=sdpart3.dd
dd if=/dev/tssdcarda4 of=sdpart4.dd
This captures everything from your bootable SD card.
Now to put it on the new one.
dd if=sd-mbr.dd of=/dev/tssdcarda bs=320 count=1
dd if=sdpart1.dd of=/dev/tssdcarda1
dd if=sdpart2.dd of=/dev/tssdcarda2
dd if=sdpart3.dd of=/dev/tssdcarda3
dd if=sdpart4.dd of=/dev/tssdcarda4
Now you can put the card into the TS7390 and it should boot.
You're not done yet though. The 4th partition, the one you want extra
space on is still
the same size as the old SD card.
Boot the TS7390 with your new SD card in it, but boot from flash, NOT
the SD card!!!
Now mount the 4th partition:
mkdir /mnt/sd
mount /dev/tssdcarda4 /mnt/sd
Now resize the partition
mount -o remount,resize /mnt/sd
umount /mnt/sd
Now shut down and switch to boot the SD card and you should be good to go.
Note: The first partition is the Eclipse environment for cross
development on a PC. Since I am not using this, I skipped the part
outlined above for copying the first partition. I made the first
partition small in order to allow more space for the 4th partition.
I used a 4 gig SD HC and it works fine and I have a HUGE work area on
the 4th partition now!
Larry
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|