Go Back   Steve's Digicams Forums > Digicam Help > Memory Cards, Microdrives, Card Readers

Reply
 
Thread Tools Search this Thread
Old Feb 20, 2010, 11:47 AM   #11
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

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):

su
mount
fdisk -l
JimC is offline   Reply With Quote
Old Feb 20, 2010, 11:59 AM   #12
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

P.S.

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).
JimC is offline   Reply With Quote
Old Feb 21, 2010, 12:52 AM   #13
Junior Member
 
Join Date: Feb 2010
Posts: 14
Default

Great- i had done all you mention but the command lines already- will start fresh in morning.
didalee is offline   Reply With Quote
Old Feb 21, 2010, 1:10 PM   #14
Junior Member
 
Join Date: Feb 2010
Posts: 14
Default

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
Password:
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#




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
mepis1:/home/demo#
mepis1:/home/demo#
didalee is offline   Reply With Quote
Old Feb 21, 2010, 1:52 PM   #15
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

OK.

/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.

su
cd /mnt/sda2
ddrescue /dev/sdc /mnt/sda2/badcard.img /mnt/sda2/badcard.log
photorec /mnt/sda2/badcard.img
JimC is offline   Reply With Quote
Old Feb 21, 2010, 1:57 PM   #16
Junior Member
 
Join Date: Feb 2010
Posts: 14
Default

Thanks--Is photerec also part of MEPIS distro?
didalee is offline   Reply With Quote
Old Feb 21, 2010, 1:59 PM   #17
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

P.S.

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).

su
cd /mnt/sda2
ddrescue /dev/sdc badcard.img badcard.log
photorec badcard.img
JimC is offline   Reply With Quote
Old Feb 21, 2010, 2:01 PM   #18
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

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 is offline   Reply With Quote
Old Feb 21, 2010, 2:07 PM   #19
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Quote:
Originally Posted by JimC View Post
su
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):

su

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 is offline   Reply With Quote
Old Feb 21, 2010, 2:11 PM   #20
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

P.S.

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)?

su
iwconfig
JimC is offline   Reply With Quote
 
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 9:53 PM.