OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: TerekKincaid on May 02, 2006, 09:39:22 am

Title: How Do I Clone The Internal Drive To A Cf Card?
Post by: TerekKincaid on May 02, 2006, 09:39:22 am
Hi all.  I got that new CF card in, but as I said, I'm a total noob at linux

I'm trying to get the CF card partitioned so I can dd my microdrive to my CF before I do the surgery on my Z.  I don't have a desktop linux box to help with this.

I can get it partitioned, but the sizes are wrong.  I noticed that the Z's MD has 63 sectors per track, and my CF has 32 sectors/track.  

Is there anyway to change this?  Does it matter?  Can I leave it at 32 and just set the partition to be approximately the same size?
Title: How Do I Clone The Internal Drive To A Cf Card?
Post by: TerekKincaid on May 02, 2006, 01:41:39 pm
Ok, looks like I got it figured out.  The following code made a perfect mirror onto a 4 GB Compact flash drive:

First, insert the 4 GB CF card you want to use as a new internal drive.
Then, unmount it:

Code: [Select]
umount /dev/hdc
Then, use the following command to copy the internal drive to your CF card:

Code: [Select]
dd if=/dev/hda of=/dev/hdc
It took 2-3 hours, but it worked perfectly.  Make sure you have your Z plugged in to AC power and make sure to turn auto-suspend off in the system settings.  Having the screen saver turned on caused no problems.