bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting a 2Gb MicroSD card


From: Sebastian Tennant
Subject: Re: Formatting a 2Gb MicroSD card
Date: Mon, 28 Jul 2008 15:36:29 +0300
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth "Bryn M. Reeves" <address@hidden>:
> Sebastian Tennant wrote:
>> Quoth "Bryn M. Reeves" <address@hidden>:
>>>> Sebastian Tennant <address@hidden> wrote:
>>>>>  $ parted /dev/sdc print
>>>>>  Disk /dev/sdc: 1016MB
>>>>>  Sector size (logical/physical): 512B/512B
>>>>>  Partition Table: msdos
>>>>>
>>>>>  Number  Start   End     Size    Type     File system  Flags
>>>>>   1      10.2kB  1016MB  1016MB  primary  fat16        lba
>>>>>
>>>>> Any hints/tips/pointers much appreciated.
>>> Could you post the content of /proc/partitions with the card attached?
>>    .
>>    .
>>    8    32     992512 sdc
>>    8    33     992150 sdc1
>
> The kernel thinks this is a 1GiB card (the units in partitions are 1KiB
> blocks). Presumably it previously had a partition table that made sdc1 a
> 2GiB partition (the kernel allows this but as you saw spits "attempt to
> access beyond end of device" messages when any I/O is submitted for the
> nonexistant regions).

Indeed, that was the case.

Could you explain what ~ 1 GiB of capactiy is doing on /dev/sdc.  As far
as understand these things, /dev/sdc is the device and /dev/sdc1 is the
first partition on that device.

When I did 'parted print /dev/sdc' and saw 1GiB of capacity and then
'parted print /dev/sdc1' and saw 2 GiB of capacity (partition table
'loop'?) I thought "Ugh! What's going on here?" and issued the ill-fated
'parted mklabel msdos /dev/sdc' command.

No doubt I should have explored 'loop' partitions before wiping the
exisitng table.

> Since your phone agrees that it's a 1GiB card it sounds like you have
> a mislabelled SD card

'Mislablled' as in bearing the wrong sticky label, yes?.. but it was
showing up as 2 Gib before (see above)?

Many thanks for your assistnace so far Bryn.

Sebastian

-- 
Emacs' AlsaPlayer - Music Without Jolts
http://sebyte.org/eap.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]