ts-7000
[Top] [All Lists]

Re: [ts-7000] dd and 2GB SD cards

To:
Subject: Re: [ts-7000] dd and 2GB SD cards
From: Jim Ham <>
Date: Wed, 18 Jan 2012 17:37:20 -0800
I too have seen this problem. You (TS, that is) may leave some room, but 
not enough in my experience. I wound up fdisking the new card, DD'ing 
the initrd and kernel partitions, then doing a file-by-file copy for the 
others.

In one case I wound up editing sector 0 by hand - this is not pretty :-( .

You can mount the disk image on the host machine using losetup to get at 
the files to copy.

As an aside, the partition setup in your distributions seems weird - all 
the partition utilities I've used complain about partitions not starting 
or ending on normal boundaries. It works though.

Regards,

Jim Ham
Porcine Associates LLC

Mark Featherston wrote:
>
>
> Don,
>
> SD cards vary slightly from card to card.  For example, I have 3
> different brands of SD cards here that each say 2GB.  However according
> to fdisk:
> ATP Industrial Grade - 2058 MB, 2058354688 bytes
> A-Data Speedy SD - 2013 MB, 2013265920 bytes
> Sandisk SD - 1977 MB, 1977614336 bytes
>
>  From our experience with SD cards there can be up to a 10% difference
> in actual usable disk size even though they are labeled for a specific
> size.  All of our software images take this into account and leave a
> portion of the disk unallocated.
>
> Best Regards,
> ________________________________________________________________
>   Mark Featherston, Technologic Systems | voice: (480) 837-5200
>   16525 East Laser Drive                | fax: (480) 837-5300
>   Fountain Hills, AZ 85268              | web:www.embeddedARM.com
>
>
> On 01/18/2012 03:24 PM, dtucker wrote:
>>
>> I recently went to make a backup of my 2GB SD card used as the Debian file
>> system for my TS-7260.
>>
>> dd if=/dev/sdb of=backupfile.dd bs=2048
>>
>> The resulting file was 1977614336 bytes. I then attempted to write
>> this image
>> to a new 2GB SD card.
>>
>> dd if=backupfile.dd of=/dev/sdb bs=2048
>>
>> I received the following error:
>> dd: writing to `/dev/sdb': No space left on device
>> 3842049+0 records in
>> 3842048+0 records out
>> 1967128576 bytes (2.0 GB) copied, 1950.22 s, 1.0 MB/s
>>
>> Why wouldn't the image fit on a new SD card if it could fit on the one
>> I copied
>> it from?
>>
>> Don
>>
>
>
> 
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2012.0.1901 / Virus Database: 2109/4751 - Release Date: 01/18/12
>

-- 
Porcine Associates LLC
244 O'Connor St.
Menlo Park, CA 94025
USA
+1(650)326-2669 fax +1(650)326-1071


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

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/

Attachment: jimham.vcf
Description: Vcard

<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