Page 1 of 1

Cannot select partition table type

Posted: 11 Nov 2014, 03:39
by laerne
Hello I'm trying to fix a usb 1TB usb 3 hard drive.

However, I cannot select the partition table type because the program freezes.
I just select the correct hard drive (it took half an hour to testdisk to list them), and the it's been 10 hours since I selected and I'v still no update to the screen.

I believe that if I have to enter the partition table type I don't have to wait for testdisk to read the whole disk to guess, huh ? And if it actually tries to auto-guess, I hope it can remember the main features, so it doesn't to rescan fully the disk or whatever. Anyway I'm concerned, I cannot see any testdisk in "iotop -P -o".

Code: Select all

  PID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND
 7946 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.13 % [kworker/5:2]   
  334 be/3 root        0.00 B/s  677.63 B/s  0.00 %  0.11 % [jbd2/sda5-8]
  440 be/4 root        0.00 B/s  223.01 K/s  0.00 %  0.00 % systemd-journald
  839 be/4 root        0.00 B/s   11.91 K/s  0.00 %  0.00 % rsyslogd -n
 2690 be/4 denethor    0.00 B/s   31.10 K/s  0.00 %  0.00 % firefox
So what's is it doing ? The status of the testdisk process in top is always "uninterruptible sleep", "sleep" or "traced or stopped". I have no idea what the process is doing right, how long it might take and the lack of feedback (the ncurses interface is frozen) is atrocious. Am I supposed to wait ? To kill it ? What ? What is it doing ?

Thank you for any help !

Re: Cannot select partition table type

Posted: 11 Nov 2014, 09:34
by cgrenier
Run "dmesg", there may be error message. "strace -p testdisk_PID" may show that a read operation is blocked.
The disk or its electronic is probably physically damaged. Connect the disk via an internal SATA connector and check if the problem is still here.

Re: Cannot select partition table type

Posted: 11 Nov 2014, 18:29
by laerne
"usb-storage" reports a bunch of ongoing same errors in "dmesg". Since I have only one usb drive, I guess this is it. I don't think my dirve can be connected via SATA, that's the issue.

Code: Select all

% dmesg | tail -n 3
[90785.976122] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
[90785.994103] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
[90786.012066] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
% dmesg | tail -n 3
[90786.605512] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
[90786.623485] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
[90786.641445] usb-storage: Error in queuecommand_lck: us->srb = ffff88040549e000
I didn't know "strace" but it doesn't help.
I report blatantly nothing. Maybe I could try to dump file descriptors with it, but I'm unsure of the file descriptor numbers I should use.

Code: Select all

# strace -p 3396
Process 3396 attached

Re: Cannot select partition table type

Posted: 13 Nov 2014, 08:30
by cgrenier
It looks bad. If you can't connect the disk via SATA, you will have to contact a data recovery company...

Re: Cannot select partition table type

Posted: 15 Nov 2014, 19:47
by laerne
That's too bad. The disk havn't any SATA port, and it is still under warranty. I don't know what's best from now on. Thank you for your help !