OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Swap 32gb Cf For Microdrive, Easy Way to Do This...
ArchiMark
post Apr 1 2008, 07:20 PM
Post #1





Group: Members
Posts: 975
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Decided to take the plunge and got a new 32GB A-Data CF Card today....

rolleyes.gif

Want to do this swap the right way and hopefully easy way....

I assume that I can 'clone' my current Debian EABI setup on my existing 6GB microdrive over to the new 32GB CF card, right?

Would this be the right way to do it?

1) Format new 32GB card and make 2 partitions; ext3 (/dev/hdc1 /mnt/cf) and a small swap (512MB on /dev/hdc2 /mnt/cf2).

2) Copy over current microdrive debian contents on hda2 over to new ext3 partition on 32GB CF card by doing:

CODE
#dd if=/dev/hda2 of=/dev/cf


* Note: hda1 on my existing microdrive is my swap partition.

So, is this correct way???

Thanks!

Mark

This post has been edited by ArchiMark: Apr 1 2008, 07:24 PM
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
speculatrix
post Apr 2 2008, 01:44 PM
Post #2





Group: Admin
Posts: 3,277
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(ArchiMark @ Apr 2 2008, 04:20 AM) *
Decided to take the plunge and got a new 32GB A-Data CF Card today....


no, you definitely don't want to use "dd" to copy a file system between different types of media unless you guarantee the number of blocks in the partition is the same or larger on the target.

anyway, "cat" is faster - it uses more buffering!

the best way to copy a filesys is like this:

cd /mnt/partition1
tar cf - | (cd /mnt/partition2 ; tar xf - )

tar will copy all files and devices, preserve the datestamps and protections etc.

if you were l33t, you could probably also do it with cpio but I'm too lazy to look it up.

so, just partition the CF appropriately. oh, do NOT use ext3, the journalling will kill the card faster.
Go to the top of the page
 
+Quote Post
ArchiMark
post Apr 2 2008, 02:41 PM
Post #3





Group: Members
Posts: 975
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(speculatrix @ Apr 2 2008, 02:44 PM) *
QUOTE(ArchiMark @ Apr 2 2008, 04:20 AM) *
Decided to take the plunge and got a new 32GB A-Data CF Card today....


no, you definitely don't want to use "dd" to copy a file system between different types of media unless you guarantee the number of blocks in the partition is the same or larger on the target.

anyway, "cat" is faster - it uses more buffering!

the best way to copy a filesys is like this:

cd /mnt/partition1
tar cf - | (cd /mnt/partition2 ; tar xf - )

tar will copy all files and devices, preserve the datestamps and protections etc.

if you were l33t, you could probably also do it with cpio but I'm too lazy to look it up.

so, just partition the CF appropriately. oh, do NOT use ext3, the journalling will kill the card faster.


Thanks for your help with this, speculatrix!!

Will report back after I try this out...

wink.gif

Go to the top of the page
 
+Quote Post

Posts in this topic
ArchiMark   Swap 32gb Cf For Microdrive   Apr 1 2008, 07:20 PM
adf   QUOTE(ArchiMark @ Apr 1 2008, 07:20 PM) D...   Apr 1 2008, 11:06 PM
tux   @Archimark: I think that your cloning progedure ne...   Apr 2 2008, 12:05 AM
ArchiMark   QUOTE(adf @ Apr 2 2008, 12:06 AM) Oooooo ...   Apr 2 2008, 05:29 AM
speculatrix   QUOTE(ArchiMark @ Apr 2 2008, 04:20 AM) D...   Apr 2 2008, 01:44 PM
ArchiMark   QUOTE(speculatrix @ Apr 2 2008, 02:44 PM)...   Apr 2 2008, 02:41 PM
ZDevil   QUOTE(speculatrix @ Apr 2 2008, 11:44 PM)...   Apr 3 2008, 11:10 AM
ArchiMark   QUOTE(ZDevil @ Apr 3 2008, 12:10 PM) QUOT...   Apr 3 2008, 02:32 PM
adf   QUOTE@adf: Archimark is talking about using and A-...   Apr 3 2008, 10:32 PM
ArchiMark   QUOTE(speculatrix @ Apr 2 2008, 02:44 PM)...   Apr 4 2008, 10:35 AM
speculatrix   QUOTE(ArchiMark @ Apr 4 2008, 07:35 PM) Q...   Apr 4 2008, 01:58 PM
ArchiMark   QUOTE(speculatrix @ Apr 4 2008, 02:58 PM)...   Apr 4 2008, 03:49 PM
ArchiMark   QUOTE(speculatrix @ Apr 4 2008, 02:58 PM)...   Apr 7 2008, 07:36 AM
iwantprogress   rsync also works and is faster if you need to redo...   Apr 4 2008, 12:59 PM
ArchiMark   QUOTE(iwantprogress @ Apr 4 2008, 01:59 P...   Apr 5 2008, 04:30 PM
ArchiMark   OK, tried the 'cat' approach and here...   Apr 7 2008, 07:21 AM
rogalian   Cat gives same results as dd - won't work unle...   Apr 7 2008, 07:31 AM
speculatrix   given that the cards are different sizes and there...   Apr 7 2008, 07:32 AM
ArchiMark   QUOTE(speculatrix @ Apr 7 2008, 08:32 AM)...   Apr 7 2008, 07:41 AM
speculatrix   "tar cf" is the command, "c" m...   Apr 7 2008, 08:08 AM
speculatrix   p.s. if you're copying with tar, the target di...   Apr 7 2008, 08:10 AM
ArchiMark   QUOTE(speculatrix @ Apr 7 2008, 09:10 AM)...   Apr 7 2008, 08:34 AM
ArchiMark   Copying over directories...most copying over OK, b...   Apr 7 2008, 09:21 AM
rogalian   The stuff in /proc you needn't worry about, it...   Apr 7 2008, 11:30 AM
speculatrix   ooops, yes, exclude /proc and /sys too. probably n...   Apr 7 2008, 11:40 AM
ArchiMark   Thanks for the advice, rogalian & speculatrix...   Apr 7 2008, 06:32 PM
speculatrix   let us know when you're back up and running.   Apr 8 2008, 12:52 PM
ArchiMark   QUOTE(speculatrix @ Apr 8 2008, 01:52 PM)...   Apr 8 2008, 07:18 PM
speculatrix   QUOTE(ArchiMark @ Apr 9 2008, 04:18 AM) S...   Apr 9 2008, 08:42 AM
ArchiMark   QUOTE(speculatrix @ Apr 9 2008, 09:42 AM)...   Apr 11 2008, 12:35 PM
ajnk   I had to do something similar last night, when I m...   Apr 9 2008, 01:08 AM
ZDevil   Good to know that things are working now. ajnk: so...   Apr 9 2008, 04:19 AM
ajnk   QUOTE(ZDevil @ Apr 9 2008, 12:19 PM) Good...   Apr 9 2008, 07:07 AM
speculatrix   you will find that a file copy using tar, rsync or...   Apr 11 2008, 12:54 PM
ArchiMark   QUOTE(speculatrix @ Apr 11 2008, 01:54 PM...   Apr 11 2008, 01:03 PM
maemorandum   Does it make sense replacing the internal microdri...   Apr 11 2008, 02:52 PM
ArchiMark   QUOTE(maemorandum @ Apr 11 2008, 03:52 PM...   Apr 11 2008, 03:36 PM
speculatrix   so, archimark, have you done it yet? we eager read...   Apr 12 2008, 11:34 AM
ArchiMark   QUOTE(speculatrix @ Apr 12 2008, 12:34 PM...   Apr 12 2008, 11:51 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th May 2013 - 04:56 PM