ts-7000
[Top] [All Lists]

Re: [ts-7000] How to copy SD card with different geometry?

To:
Subject: Re: [ts-7000] How to copy SD card with different geometry?
From: "Breton M. Saunders" <>
Date: Sat, 28 Feb 2009 10:32:17 +0000
Don't copy the file system image.  Rather let the file system do what it 
was designed to do, and layout the files.

The rough procedure follows, and note that you can do the same thing 
with a real hard disk.

1) Get a linux x86 box, running something modern like ubuntu 8.04 or better.
2) Get a linux compatible USB SD card reader.
3) Put the source sd card in, and mount the linux partition.  Tar its 
contents up to a file in /tmp or something for archiving.
4) Swap to the new sdcard.  Fdisk it, and ensure the partition layout is 
(roughly) the same - e.g. partition 3 is a linux one.
5) mke2fs the target file system.
6) Mount the target filesystem
7) Untar the archive file's contents to the target partition.

  Good luck!

    Cheers,

    -Brett


whiffwaffle wrote:
> I have been using 7400's for almost a year now. I originally made a 1g
> SD flash card that it boots from and then used dd to make copies. This
> worked fine for months, but now I am having trouble getting the same
> 1g flash card.
>
> When I try to dd the image to any other 1g flash card, it boots up and
> works fine, but if I remove power and it runs fsck, it locks up at
> 2.9%. If I put it in my Linux PC and fsck it, I get many errors:
>
> "Error reading block 41252 (Attempt to read block from filesystem
> resulted in short read) while getting next inode from scan."
>
> I posted about a similar problem a few months ago and got no response,
> but I found a supply of the cards I was using so it wasn't an issue.
> My supply of cards is getting critically low so I need to find a
> solution to this soon. 
>
> I suspect it's a geometry problem. Here is the output of fdisk for
> each card:
>
> SD card that works:
> Disk /dev/sdc: 1019 MB, 1019215872 bytes
> 16 heads, 32 sectors/track, 3888 cylinders
> Units = cylinders of 512 * 512 = 262144 bytes
> Disk identifier: 0x00000000
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdc1               1           6        1520   da  Non-FS data
> /dev/sdc2               7          10        1024   da  Non-FS data
> /dev/sdc3              20        3850      980736   83  Linux
>
>
> New SD card that locks up:
> Disk /dev/sdc: 1023 MB, 1023934464 bytes
> 16 heads, 32 sectors/track, 3906 cylinders
> Units = cylinders of 512 * 512 = 262144 bytes
> Disk identifier: 0x00000000
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdc1               1           6        1520   da  Non-FS data
> /dev/sdc2               7          10        1024   da  Non-FS data
> /dev/sdc3              20        3850      980736   83  Linux
>
> I also tried what I originally did to make the 1g card, which was
> dd'ing the 512m image from the Technologic web site and then resizing
> the file system. That does not work either. I've tried 5-6 different
> SD cards, both 1g and 2g and they all lock up during fsck.
>
> Is there a better way than dd to make a duplicate of the card short of
> completely reinstalling and reconfiguring everything?
>
> Any help would be greatly appreciated.
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU