Re: Any linux-based microSD utilities?

2010-01-08 Thread Bill Davidsen

Max Pyziur wrote:

Greetings,

I have a Kingston 4GB microSD card in my cellphone. I use a microSD USB
reader to move files to and from the card (pdfs, mp3s, etc). I tend to
move it between phones and computers a fair amount.

It seems that the card has failed and does not auto-mount properly on
either my desktop or laptop, both of which run F12, or on my phone now.

However, reviewing /var/log/messages I see that the relevant daemons sense
the card and create a block device (/dev/sdb or /dev/sdc depending on the
machine) when I use the USB reader and insert it into a USB port. However,
the device doesn't automount, nor can I mount it from root.

If the card has failed, I'd like to try and recover whatever data I can.

Can the card be made useable again through some sort of formatting utility?

Any guidance would be appreciated.

Start by using fdisk -l /dev/XXX from command line, where XXX is the sd 
device. If you are lucky there will still be a partition /dev/XXX1/ which you 
can try to recover (and can dd it into a disk file for more future trials).


--
Bill Davidsen david...@tmr.com
  We have more to fear from the bungling of the incompetent than from
the machinations of the wicked.  - from Slashdot

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Any linux-based microSD utilities?

2010-01-06 Thread Bill McGonigle

On 01/06/2010 12:48 PM, Max Pyziur wrote:

However,
the device doesn't automount, nor can I mount it from root.
 If the card has failed, I'd like to try and recover whatever data I can.


You could have a card failure or a corrupt filesystem (or both).  Try 
reading the card with something like:


  dd if=/dev/sdb of=myflakeycard.dd bs=2M conv=sync,noerror

If that succeeds, the disk is probably OK.  Usually they're vfat 
filesystems, so look into how to recover those.


 Can the card be made useable again through some sort of formatting 
utility?


something like:

  mkfs -t vfat -n yourphonenumberhere /dev/sdb1

works in my phones and cameras.  That'll wipe your data of course.  The 
-n flag is optional, but in theory a number there will help an honest 
man return your lost device.  It worked once for me anyway.


-Bill

--
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: b...@bfccomputing.com
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Any linux-based microSD utilities?

2010-01-06 Thread john wendel

On 01/06/2010 01:54 PM, Bill McGonigle wrote:

On 01/06/2010 12:48 PM, Max Pyziur wrote:

However,
the device doesn't automount, nor can I mount it from root.
 If the card has failed, I'd like to try and recover whatever data I
can.


You could have a card failure or a corrupt filesystem (or both). Try
reading the card with something like:

dd if=/dev/sdb of=myflakeycard.dd bs=2M conv=sync,noerror

If that succeeds, the disk is probably OK. Usually they're vfat
filesystems, so look into how to recover those.

  Can the card be made useable again through some sort of formatting
utility?

something like:

mkfs -t vfat -n yourphonenumberhere /dev/sdb1

works in my phones and cameras. That'll wipe your data of course. The -n
flag is optional, but in theory a number there will help an honest man
return your lost device. It worked once for me anyway.

-Bill



You might also try to read the data with ddrescue. Good luck.

John

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Any linux-based microSD utilities?

2010-01-06 Thread Chris Smart
2010/1/7 Max Pyziur p...@brama.com:

 If the card has failed, I'd like to try and recover whatever data I can.


What you want is photorec, part of the testdisk program. It can search
your devices on the block level and recover data.

Afterwards, you can re-format it with VFAT as it's most likely a file
allocation table corruption.

-c

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines