Steve's Digicams Forums

Steve's Digicams Forums (
-   Memory Cards, Microdrives, Card Readers (
-   -   Unable to read Sandisk 8GB SDHC Card (

JimC Feb 20, 2010 12:47 PM

ddrescue is already on the Mepis CD.

Reboot your PC making sure the CD is the boot choice (either change the boot order in your BIOS or press the function key for selecting your boot drive if your PC offers that option).

When you get to the Mepis Boot menu, press F3 and select your Monitor resolution (it will probably auto detect it without doing that, but you can make sure it selects the correct resolution if you press F3 at the Mepis boot menu choices). Then, just press enter, leaving at the default (top) menu choice to load Mepis.

After it loads, it will prompt you for a username and password. demo is the username and demo is the password when running from a live CD.

After the desktop loads, click on the icon that looks like a Home in your system tray (I think it's probably the third one over from the left). Then, click on the yellow star you'll find on the left side for services and you'll see a Storage Media choice that can show you drives it sees (like "My Computer" would look under Windows after you click on it). Or, depending on the version you downloaded, you may see a "My Computer" choice on your desktop and you can get to your drives that way, too.

Then, click on the Windows partition on your C drive under Storage Media (it will probably show up as sda1) and make sure you can browse folders and files on it OK (that's where we'll want to store a copy of your bad card). Do not click on your card if it shows up.

Then, open a Terminal Program. You'll find one in the menus (click on the icon in the bottom left of your tray in the same place you'd find the Start icon in Windows), and you should see a menu choice under System somewhere for Terminal Program-Konsole.

That will open what looks like a DOS command prompt. Then, maximize it and type this, letting me know what you see (copy and paste the results into a forum post here). You'll find a menu choice for Firefox under Internet Programs. Insert your card in the reader so we can see how it's detected before typing these commands (or, just insert it before booting into the CD if desired). Use root as the root password when prompted for one (running from a CD, root will be the root password). Note that all commands will be case sensitive (use lower case as shown below):

fdisk -l

JimC Feb 20, 2010 12:59 PM


Note that when I ask you to click on anything, just use a "single click", not a "double click" like you'd use with windows (otherwise, you'll end up opening something twice or loading a program more than once).

didalee Feb 21, 2010 1:52 AM

Great- i had done all you mention but the command lines already- will start fresh in morning.

didalee Feb 21, 2010 2:10 PM

here's what I got (was unable to connect to my wireless internet vis MEPIS distro- Wireless tab functions remain grayed out, b/c I was logged in as demo?)

[email protected]:~$ su
mepis1:/home/demo# mount
tmpfs on /linux/lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sr0 on /cdrom type iso9660 (ro)
/dev/loop0 on /linux type squashfs (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=2282352k,nr_inodes=222170,mode=755)
/ramdisk on /home type tmpfs (rw,size=2282352k,nr_inodes=222170,mode=755)
shmfs on /linux/lib/init/rw/splashy type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sda2 on /mnt/sda2 type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permis sions,blksize=4096,user=demo)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permis sions,blksize=4096,user=demo)

mepis1:/home/demo# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x220ed127

Device Boot Start End Blocks Id System
/dev/sda1 1 192 1536000 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 192 29632 236476416 7 HPFS/NTFS
/dev/sda3 29632 30402 6184960 17 Hidden HPFS/NTFS

Disk /dev/sdb: 100.2 GB, 100256292864 bytes
255 heads, 63 sectors/track, 12188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 3965 MB, 3965190144 bytes
49 heads, 48 sectors/track, 3292 cylinders
Units = cylinders of 2352 * 512 = 1204224 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 4 3293 3868160 b W95 FAT32

JimC Feb 21, 2010 2:52 PM


/dev/sda2 is your Windows partition from the looks of it (make sure you click on it again under Storage manager if you've exited the system before issuing any commands, since that will automatically mount it read/write under /mnt/sda2). It appears you've got a 4GB card showing up as /dev/sdc

Do this from a command prompt (using the terminal program Konsole). Enter root as the password when prompted. This is basically changing directories to root of your windows partition, then making a copy of the card using ddrescue and saving it to a file called badcard.img in the root of your windows partition. It's an exact copy of the card. Then, you're running photorec against that disk image file. Just use the defaults for it when prompted and it will create a new folder in the root of your windows partition and place recovered images in it.

cd /mnt/sda2
ddrescue /dev/sdc /mnt/sda2/badcard.img /mnt/sda2/badcard.log
photorec /mnt/sda2/badcard.img

didalee Feb 21, 2010 2:57 PM

Thanks--Is photerec also part of MEPIS distro?

JimC Feb 21, 2010 2:59 PM


You could also do it like this (since you'll be in the same folder the file is being created in when you use the commands). IOW, you don't have to include a full path to the files themselves, as it will look for them in your current directory after you change to it using the first command. Note that ddrescue will make multiple passes if needed using those defaults to try and get a good copy. The log file just lets you start and stop it again if desired if you're getting too many errors and need to restart it again later (just using the same exact commands).

cd /mnt/sda2
ddrescue /dev/sdc badcard.img badcard.log
photorec badcard.img

JimC Feb 21, 2010 3:01 PM

photorec is already on the Mepis CD (if you're using a stable versus beta version of Mepis 7.0 or 8.0). The latest stable version is 8.0.15 (but, it's on previous releases of 7.0 and 8.0, too). It's also on Mepis 8.5 Beta 4 and 5. But, I'd avoid those betas for now.

JimC Feb 21, 2010 3:07 PM


Originally Posted by JimC (Post 1055209)
cd /mnt/sda2
ddrescue /dev/sdc badcard.img badcard.log
photorec badcard.img

Basically, this is just telling it you want to work as root (which gives you access to more commands and permissions):


Then, this is changing where you're working from to the root of your windows partition (which should be mounted as /mnt/sda2):

cd /mnt/sda2

Then, this is telling ddrescue to copy /dev/sdc (which is your 4GB card) and save it to an image file called badcard.img, using a log file name of badcard.log (that it uses to keep track of what's been copied OK without errors so far, allowing you to make multiple passes if needed):

ddrescue /dev/sdc badcard.img badcard.log

Then, after you get a good copy of the card (saved to a file named badcard.img in the root of your windows partition), you can use photorec to read through it and find any image files like this (and just use it's defaults and it will create a new folder for them on your windows drive and save them in it, since you're already working in /mnt/sda2 since you changed to it before you started issuing the commands).

photorec badcard.img

JimC Feb 21, 2010 3:11 PM


As for your wireless, what do you get from a terminal if you type this (and you can have more than one terminal window open at a time)?


All times are GMT -5. The time now is 8:23 AM.