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....
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 |
|
|
|
![]() |
Apr 9 2008, 01:08 AM
Post
#2
|
|
|
Group: Members Posts: 39 Joined: 9-April 04 Member No.: 2,752 |
I had to do something similar last night, when I managed to make my 16gb CF unbootable, fortunately i had my 4gb I was using until about 1 month ago :-
1) Attached 4gb microdrive to laptop using USB adapter, checked the filesystem (just to be safe). 2) Mount 4gb microdrive (/media/disk in this case) 3) cd /media/disk 4) copy contents to laptop HD (I wanted a) a backup mkdir /home/andy/z/cf_recovery find . | cpio -pdmv /home/andy/z/cf_recovery 5) wait ....... 6) once the copy was complete umount /media/disk 7) Disassemble Z (c3100 in my case) 9) Retrieve CF card from Z, attach to lappy via USB. 10) It automounted on /media/disk, so I unmounted it. 11) Create an ext2 filesystem (yes I want ext3 journaling, but i am going to dump a lot of data in a stable environment so I don't need the journal - it would only slow things down). mke2fs /dev/hdb1 tune2fs -i 0 -c 0 /dev/hda1 (turns off fsck after a number of mounts). 12) mount the cf card (mount /dev/hdb1 /media/disk) 13) cd /home/andy/z/cf_recovery 13) find . | cpio -pdmv /media/disk 14) wait ..... 15) umount cf card, insert in Z, rebuild Z - hey presto - working fs BTW. If you need to repeat step 13) for any reason either remake the filesystem or add the 'u' flag (unconditional overwrite) to the cpio. Hope this helps ajnk (Then I did an apt-get update ; apt-get upgrade ) |
|
|
|
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
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![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 12:33 AM |