(1) Power off, popped the back off of the Chumby One, removed the bottom, and removed the microSD from it's slot. Put the microSD into the reader on the Ubuntu Laptop and executed the following:
cd ~/Documents
mkdir OldChumbySDs
cd OldChumbySDs
sudo fdisk -l /dev/sde
sudo dd if=/dev/sde of=Chumby_Disk_101030_0.img
The fdisk identifies the partitions from the Chumby microSD and the dd command will make an image of the entire disk in the OldChumbySDs directory. The /dev/sde may vary from one computer to another. The fdisk command returned the following:
Disk /dev/sde: 3965 MB, 3965190144 bytes
5 heads, 4 sectors/track, 387225 cylinders
Units = cylinders of 20 * 512 = 10240 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 14670 146697+ 53 OnTrack DM6 Aux3
/dev/sde2 1563 14063 125000+ 83 Linux
/dev/sde3 14063 26563 125000+ 83 Linux
/dev/sde4 26563 99073 725092 5 Extended
/dev/sde5 26564 39063 124998+ 83 Linux
/dev/sde6 39064 99073 600089+ 83 Linux
I am not really sure about the Id 53 here but I will take their word for it. Since I am interested in making the partitions a little bigger, I chose to also execute the following:
sudo dd if=/dev/sde1 of=Chumby_Disk_101030_1.img
sudo dd if=/dev/sde2 of=Chumby_Disk_101030_2.img
sudo dd if=/dev/sde3 of=Chumby_Disk_101030_3.img
sudo dd if=/dev/sde5 of=Chumby_Disk_101030_5.img
sudo dd if=/dev/sde6 of=Chumby_Disk_101030_6.img
Now I have a copy of each of the partitions on the microSD. I also find it interesting that the last update I did of the microSD, when I copied over from the original microSD in the Chumby did not take up the whole 4GB of the card. So I did something wrong the last time around.
(2) Now that I have a backup in place, I put a 4GB microSD into the drive and proceeded to update and make new partitions by using fdisk in the command line mode. This was necessary to get partition 1 to be type 0x53. Then I executed the following commands to copy the partition information:
sudo dd if=Chumby_Disk_101030_1.img of=/dev/sde1
sudo dd if=Chumby_Disk_101030_2.img of=/dev/sde2
sudo dd if=Chumby_Disk_101030_3.img of=/dev/sde3
sudo dd if=Chumby_Disk_101030_5.img of=/dev/sde5
sudo dd if=Chumby_Disk_101030_6.img of=/dev/sde6
sudo e2fsck -f /dev/sde2
sudo resize2fs /dev/sde2
sudo e2fsck -f /dev/sde3
sudo resize2fs /dev/sde3
sudo e2fsck -f /dev/sde5
sudo resize2fs /dev/sde5
sudo e2fsck -f /dev/sde6
sudo resize2fs /dev/sde6
What the previous e2fsck and resize2fs commands do is first check the file system on the partition (e2fsck)and then maximize it to the size of the partition (resize2fs). Seems to work correctly.
(3) put the new microSD card back into the Chumby and fired it up. It proceeded to work just like a Chumby, so first part of mission accomplished - I got the partitions to be larger on a new microSD. The sshd, access port, and ethernet connections work correctly.
No comments:
Post a Comment