[parted-devel] Problem with cylinder size on SD cards,
and other problems
leslie.polzer at gmx.net
leslie.polzer at gmx.net
Thu Oct 12 13:45:14 UTC 2006
Hello Marcus,
On Thu, Oct 12, 2006 at 09:36:41AM +1100, Marcus Brown wrote:
> Recently I realised (while testing smaller cards) that the cylinder
> size was defaulting to 8225kB when creating and new label + partition.
> Of course, this is way too large for a 16MB card ;)
Indeed. But why do you need the cylinder size?
> The way I've got around this is by using fdisk to create the label and
> partition instead, which usually results in a cylinder size of 32KB.
>
> It also takes a lot longer to execute :(.
>
> I've also had to start working in sectors, rather than cylinders,
> which is a bit more painful.
I guess. The libparted-based GNU fdisk (currently beta, ready for
release soon) has, like its util-linux counterpart, options to set the
CHS values. parted will get this in the mid-term future, too (I invite
you to create a patch in any case).
> Convert logical to primary -------------------------- Initially, I had
> a function (which worked) which was written because cards formatted by
> PocketPC contained an extended partition with a single logical fat32.
> It worked by performing a dummy resize of partition 5, removing both
> table entries, and creating a new primary with the same start/end as
> the previous logical. For some reason this no longer works, (although
> I can't tell you when/why it stopped;) any suggestions on how to do
> this properly?
It's hard to say without knowing exactly about the disk layout and the
steps you performed. Give us more information and we might be able to
help.
I wish you all the best for your project and hope that we can resolve
these issues with you.
Leslie
> ps. hope this is the right list :)
Yes, anything remotely Parted goes here :)
--
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20061012/63ed0d34/attachment.pgp
More information about the parted-devel
mailing list