Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 08-31-2010, 02:55 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
How to force bad blocks into CF in order to decrease the capacity

I have to prepare a Master CF suitable for multiple CF duplication by using a stand alone CF duplicator (IMI M6500). The problem I'm encountering is that despite I'm using the same CF both for Master and for Copies (Kingston CF x133 8GB-2S), the real size of CF changes with the lot #. In example I have found a lot# with 7637MB and another with 7272MB. Since the CF duplicator performs a binary copy, it fails when the Master CF is bigger that the Copy CFs.

I don't like the idea to prepare from scratch a new Master for each new lot#, or to look for the lot# with the smaller size and use it for Masters.

I know that this size differences might be due to bad block management, introduced by the manufacturers in order to increase the yeld of NAND Flash devices.

I was wondering if there is a way to mark some extra blocks as bad (independently from the filesystem) in order to decrease the available size below a size that likelly I won't never find in a new CF of 8GB.

My application actually needs the following 5 partitions:

C: Pri DOS FAT16 2047MB
Extended DOS:
D: logical FAT16 2047MB
E: logical FAT16 1028MB
F: logical FAT16 1028MB
G: logical FAT16 1028MB

There are typically almost 500MB unallocated(depending of lot#) that could contain entirely fake bad blocks without effecting my application.

Thanks in advance for any suggestion
Old 08-31-2010, 04:38 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
you could specify to the "dd" command the amount of data to dump with bs and count option.
Old 09-01-2010, 02:17 AM   #3
LQ Newbie
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
The command "dd" works fine for single CF duplication. It is able to recreate all the partitions even if the dumped data are a little less that the full capacity.
But actually I would like to have a "small size" Master CF suitable for my stand alone duplicator that is able to make 8 copies for each duplication process.


badblocks, cf, duplication, flash

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 - force eth order czezz Linux - Networking 1 06-04-2010 03:04 PM
possible bad blocks Fred Caro Linux - Newbie 2 05-26-2010 08:08 AM
[SOLVED] Translating Backup Media Capacity into Blocks josephj Linux - Software 3 07-13-2009 05:38 PM
Kickstart, can you force order of scsi modules. tells Red Hat 0 07-14-2006 03:05 PM
bad blocks bong.mau Linux - General 1 11-16-2005 02:17 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration