D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] NTFS woes...

 

Gordon Henderson wrote:
On Sun, 5 Jun 2011, Dava wrote:

Hi there, i didnt know if anyone can help. im trying to recover some data from a dying/dead NTFS usb stick for a friend. If entered into an MS machine it just gives the option to format, ive tried repairing it via chkdsk /f but it comes up with "*Cannot open volume for direct access".* I tried it on my linux machine and no mountable devices show, sudo fdisk -l shows only my current disks. I have tried sudo ntfsfix /dev/sdb and i get:

Mounting volume... Error reading bootsector: Input/output error.
Failed to startup volume: Input/output error.
FAILED
Attempting to correct errors... Error reading bootsector: Input/output error.
FAILED
Failed to startup volume: Input/output error.
Volume is corrupt. You should run chkdsk.

Obviously chkdsk yields me nothing.

The drive is showing up via lsusb as:
Bus 001 Device 004: ID 1516:8628 CompUSA 128M Pen Drive

but in photorec it comes up as:
Disk /dev/sdb - 2199 GB / 2048 GiB (RO) - SKYMEDI USB Drive

Yet it is an 8gig (HP <<not that that means much)

Dmesg:

[ 1767.787709] sd 7:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1767.787720] sd 7:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 1767.787728] sd 7:0:0:0: [sdb] Add. Sense: Invalid field in cdb
[ 1767.787737] end_request: I/O error, dev sdb, sector 0
[ 1767.787745] __ratelimit: 7 callbacks suppressed
[ 1767.787750] Buffer I/O error on device sdb, logical block 0
[ 1767.789586] sd 7:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1767.789595] sd 7:0:0:0: [sdb] Sense Key : Illegal Request [current]
[ 1767.789604] sd 7:0:0:0: [sdb] Add. Sense: Invalid field in cdb
[ 1767.789612] end_request: I/O error, dev sdb, sector 0
[ 1767.789619] Buffer I/O error on device sdb, logical block 0

Any ideas on where to go now? The data on it is pretty important, ive just preeched the importance of backing up but as always its too late for that

It's showing physical errors. I suspect it's so badly damaged that Linux can't read the size of the device. If it's that bad, then it's quite bad.


e.g. sector 0 - which is where the partition table will be.

What I'd do now -

Make sure any auto-mounting magic is turned off - if possible (although it's probably not getting in the way as it's corrupt)

Become root in a terminal and plug it in.

Run hdparm to identify it:

  hdparm -v /dev/sdb

if that works then you're in with a chance, but if it fails, I'd probably give-up at that point.

Let us know what you get.

Gordon

Results

HWinfo shows:
41: SCSI 700.0: 10600 Disk
 [Created at block.243]
 UDI: /org/freedesktop/Hal/devices/storage_serial_SKYMEDI_USB_Drive_05_0_0
 Unique ID: cLrx.BZJfdZll940
 Parent ID: sClz.Nma9X1vv+1B
 SysFS ID: /class/block/sdb
 SysFS BusID: 7:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0
 Hardware Class: disk
 Model: "SKYMEDI USB Drive"
 Vendor: usb 0x1516 "SKYMEDI"
 Device: usb 0x8628 "USB Drive"
 Revision: "1.00"
 Serial ID: "05"
 Driver: "usb-storage", "sd"
 Driver Modules: "usb_storage"
 Device File: /dev/sdb (/dev/sg2)
Device Files: /dev/sdb, /dev/block/8:16, /dev/disk/by-id/usb-SKYMEDI_USB_Drive_05-0:0, /dev/disk/by-path/pci-0000:00:1a.7-usb-0:2:1.0-scsi-0:0:0:0
 Device Number: block 8:16-8:31 (char 21:2)
 Features: Hotpluggable
 Speed: 480 Mbps
 Module Alias: "usb:v1516p8628d0100dc00dsc00dp00ic08isc06ip50"
 Driver Info #0:
   Driver Status: usb_storage is active
   Driver Activation Cmd: "modprobe usb_storage"
 Drive status: no medium
 Config Status: cfg=new, avail=yes, need=no, active=unknown
 Attached to: #16 (USB Controller)

yet hdparm gives:

dava-laptop dava # sudo hdparm -v /dev/sdb

/dev/sdb:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
readonly      =  0 (off)
readahead     = 256 (on)
geometry      = 2097152/64/32, sectors = 4294967296, start = 0


Thanks for helping Gordon


Dave

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq