LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-01-2005, 04:57 PM   #1
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
SD card dead?


Hi,
I realise this is not strictly a problem to do with Linux. However, if there is a solution, I am convinced it must lie there somewhere.

I have an SD card which is a bit of a nomad. I use it on my Palm, in my camera and with card readers to transport files. Ones when transferring some pictures from the camera, I was silly and used a Windows machine. I was too quick in removing the SD card and it subsequently failed to be recognised anywhere (Camera, Palm PCs).

I tried to use my Suse box, but it fails to mount and even fdisk fails. It can't read the partition table and exits with an error. I know I'm using the correct device and the installation is correct since I can see the files on a different SD card I have.

Do anyone know of any other tricks to try to resuscitate a seemingly dead SD card?

Hopeful,

Mons
 
Old 02-01-2005, 05:13 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It is normal that fdisk will give you an error that there is no partition table information. Assuming the SD card does not have any valuable data. Do what ever it saids to continue and make the partition. If you have valuable data on it, use dd to make an image. Then use losetup to pretend that its a storage device. Next use either sfdisk or gpart to figure out where the start and end of the partition. The create the partition with the information given.

SD cards uses flash memory which has a few hundred thousand writes. The FAT filesystem really puts a huge strain on flash memory, because it writes multiple times for every file or directory. The best way to increase flash memory or slow down the strain that filesysem put on it is to use one big file like an image. Then mount the image, but neither camera or Windows has that ability.

Flash mediums are just like floppies, so treat them the same.
 
Old 02-02-2005, 03:40 PM   #3
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
No luck

Thanks Electro,
Tried dd, but it as all other commands give:
*** Fatal error: open(/dev/sda1): No such device or address.

Tried the commands with one of my other undamaged sd cards and they work then. My 256Mb Fujifilm card seems to be gone.

Good advice about treating them as floppies. I had thought they where a bit more reliable then that, but seems not.



Mons
 
Old 02-02-2005, 05:11 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
With dd you have to use the raw block device instead the partition, so this means use /dev/sda.
 
Old 02-02-2005, 05:20 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I had one do this to me. Threw it up in the corner and tried it about 6 months later. For some reason it worked.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
  


Reply



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
Xircom pcmcia card seems dead Sylhouette Fedora 5 02-19-2004 02:42 PM
Mouse dead on RH 9 after video card install! justin9 Linux - Newbie 4 12-04-2003 11:00 PM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM
Ethernet Card Dead after a Computer Crash?! monkeygirl Linux - Hardware 2 09-15-2003 07:15 AM
Is my sound card dead? Gurduloo Linux - Hardware 3 05-08-2003 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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