Go Back   Steve's Digicams Forums > Software > Editors (Photoshop, Vegas, Final Cut Pro, Kdenlive, etc.)

Reply
 
Thread Tools Search this Thread
Old Aug 27, 2011, 10:18 AM   #61
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

One moment, calculating offset needed. ;-)
JimC is offline   Reply With Quote
Old Aug 27, 2011, 10:36 AM   #62
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

That offset doesn't look right to me.

If you have some time left, let's grab a copy of only the partition on the card and work with it instead. That way, no offsets willl be required to mount it. This assumes that the card shows up as sdc and your 1TB drive is sdd. Run this to make sure first:

su
fdisk -l

If that's right (your 4GB card is sdc and your 1TB drive is sdd), then run these:

su
mkdir /mnt/sdd1
mount -t ntfs-3g /dev/sdd1 /mnt/sdd1
cd /mnt/sdd1
ddrescue /dev/sdc1 sdhc_part1.img sdhc_part1.log
fsck.vfat -y sdhc_part1.img
mkdir /mnt/sdhc_img
mount -o loop -t vfat sdhc_part1.img /mnt/sdhc_img

Added with edit:
If the disk image mounts without errors (last command in that set), do this (and it may take a while to finish)
cp -r /mnt/sdhc_img /mnt/sdd1/recovered1


If you've restarted and they've swapped around again, do this instead if your 1TB drive is sdc and your 4GB card is sdd:

su
mkdir /mnt/sdc1
mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
cd /mnt/sdc1
ddrescue /dev/sdd1 sdhc_part1.img sdhc_part1.log
fsck.vfat -y sdhc_part1.img
mkdir /mnt/sdhc_img
mount -o loop -t vfat sdhc_part1.img /mnt/sdhc_img

Added with edit:
If the disk image mounts without errors (last command in that set), do this (and it may take a while to finish):
cp -r /mnt/sdhc_img /mnt/sdc1/recovered1
JimC is offline   Reply With Quote
Old Aug 27, 2011, 10:45 AM   #63
Member
 
Join Date: Aug 2011
Posts: 41
Default

i m sorry power cut again

emo@mepis1:~$ su
Password:
[root@mepis1 demo]# su
[root@mepis1 demo]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
16 heads, 63 sectors/track, 1938021 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbabf4e67

Device Boot Start End Blocks Id System
/dev/sda1 2 1938018 976760568 f W95 Ext'd (LBA)
/dev/sda5 2 1015874 511999960+ 7 HPFS/NTFS
/dev/sda6 1015875 1938018 464760544+ 7 HPFS/NTFS

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1ba21ba1

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2741 22017051 7 HPFS/NTFS
/dev/sdb2 2742 30400 222170917+ f W95 Ext'd (LBA)
/dev/sdb5 2742 15795 104856223+ 7 HPFS/NTFS
/dev/sdb6 15796 23758 63962766 7 HPFS/NTFS
/dev/sdb7 23759 30400 53351833+ 7 HPFS/NTFS

Disk /dev/sdc: 3957 MB, 3957325824 bytes
61 heads, 60 sectors/track, 2111 cylinders
Units = cylinders of 3660 * 512 = 1873920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 3 2112 3860480 b W95 FAT32

Disk /dev/sdd: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa4b57300

Device Boot Start End Blocks Id System
/dev/sdd1 1 121602 976760032+ 7 HPFS/NTFS
[root@mepis1 demo]#
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 10:47 AM   #64
Member
 
Join Date: Aug 2011
Posts: 41
Default

but seems thr ws no swap... plz confirm.
which 1 shld i run
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 10:51 AM   #65
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

This way:

su
mkdir /mnt/sdd1
mount -t ntfs-3g /dev/sdd1 /mnt/sdd1
cd /mnt/sdd1
ddrescue /dev/sdc1 sdhc_part1.img sdhc_part1.log
fsck.vfat -y sdhc_part1.img
mkdir /mnt/sdhc_img
mount -o loop -t vfat sdhc_part1.img /mnt/sdhc_img

If the disk image mounts without errors (last command in that set), do this (and it may take a while to finish). Then, you should have a copy of everything on the card in a folder named recovered1 on your external drive (and that folder is already there since we created it earlier in this thread):


cp -r /mnt/sdhc_img /mnt/sdd1/recovered1
JimC is offline   Reply With Quote
Old Aug 27, 2011, 10:56 AM   #66
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Or, you may just want to go ahead and copy all of it in at the same time, including that last command so you don't have to watch for it to finish (and in case power fails later). Your call. IOW, you could just press Enter after you copy and paste this set including that last cp command:

su
mkdir /mnt/sdd1
mount -t ntfs-3g /dev/sdd1 /mnt/sdd1
cd /mnt/sdd1
ddrescue /dev/sdc1 sdhc_part1.img sdhc_part1.log
fsck.vfat -y sdhc_part1.img
mkdir /mnt/sdhc_img
mount -o loop -t vfat sdhc_part1.img /mnt/sdhc_img
cp -r /mnt/sdhc_img /mnt/sdd1/recovered1
JimC is offline   Reply With Quote
Old Aug 27, 2011, 10:57 AM   #67
Member
 
Join Date: Aug 2011
Posts: 41
Default

[root@mepis1 demo]# su
[root@mepis1 demo]# mkdir /mnt/sdd1
mkdir: cannot create directory `/mnt/sdd1': File exists
[root@mepis1 demo]# mount -t ntfs-3g /dev/sdd1 /mnt/sdd1
[root@mepis1 demo]# cd /mnt/sdd1
[root@mepis1 sdd1]# ddrescue /dev/sdc1 sdhc_part1.img sdhc_part1.log


Press Ctrl-C to interrupt
Initial status (read from logfile)
rescued: 0 B, errsize: 0 B, errors: 0
Current status
rescued: 3953 MB, errsize: 0 B, current rate: 14024 kB/s
ipos: 3953 MB, errors: 0, average rate: 13495 kB/s
opos: 3953 MB, time from last successful read: 0 s
Finished
[root@mepis1 sdd1]# fsck.vfat -y sdhc_part1.img
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
Logical sector size is zero.
[root@mepis1 sdd1]# mkdir /mnt/sdhc_img
[root@mepis1 sdd1]# mount -o loop -t vfat sdhc_part1.img /mnt/sdhc_img
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@mepis1 sdd1]#
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 11:00 AM   #68
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Well... I don't know why it won't mount, and a zero logical sector size is very strange. Grrrrr

What happens if you do it without specifying the file system now, like this?

mount -o loop sdhc_part1.img /mnt/sdhc_img
JimC is offline   Reply With Quote
Old Aug 27, 2011, 11:02 AM   #69
Member
 
Join Date: Aug 2011
Posts: 41
Default

[root@mepis1 sdd1]# mount -o loop sdhc_part1.img /mnt/sdhc_img
mount: you must specify the filesystem type
[root@mepis1 sdd1]#


:P :P

Jim I think U have already helped a lot and most of the images are there...
so...
i ll go hav dinner n com bak in 15 mins ..
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 11:04 AM   #70
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

That stinks (won't mount). Oh well..

It's up to you. But, if it were mine (since you now have a copy of the card and the partition on it which could be copied back to another card if need be), I'd probably boot into Windows and see if chkdsk /f can fix file system on the physical card so that it's mountable.

What Windows version are you using (XP, Vista, Win 7)?
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 6:13 AM.