LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2011, 04:45 AM   #1
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
External HDD is not visible on Fedora 14


Hallo Pals,

I have a problem with external HDD that became invisible on Fedora 14. It contains very important files and I need to get them out. It was my long-time plan, but I have not started it yet as HDD worked fine till last week.

Could you, please, help me to "find" it on Fedora 14? Or with the hint how I can back the files up from it?

I should mention that when I tried to connect it to mother board via IDE , Fedora read some errors. When I do it through USB, the indicator on HDD box is red, perhaps, stating the mistake.

I am newbie to Linux, therefore I would appreciate full line commands or not very sophisticated explanation. But I am so thrilled to learn it up to prefecture.

THank you in advance.
 
Old 06-07-2011, 04:53 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
check from ommand prompt wheather the hdd is detected by fedora or not.

run this in command line before and after attaching the external hdd:

Quote:
fdisk -l
 
Old 06-07-2011, 05:12 AM   #3
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Here are results before and after the command:

BEFORE

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000532d6

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 71682047 35840000 83 Linux
/dev/sda2 71682048 1925122047 926720000 83 Linux
/dev/sda3 1925122048 1953523711 14200832 82 Linux swap / Solaris

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 cylinders, total 1952151552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002ae3f

Device Boot Start End Blocks Id System
/dev/sdb1 2048 1952151551 976074752 7 HPFS/NTFS


AFTER

[root@......]# [[root@......]# Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Disk: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: 255: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# Units = sectors of 1 * 512 = 512 bytes
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Units: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# Sector size (logical/physical): 512 bytes / 512 bytes
bash: syntax error near unexpected token `('
[root@......]# bash: syntax error near unexpected token `('
> [root@......]# I/O size (minimum/optimal): 512 bytes / 512 bytes
> bash: syntax error near unexpected token `('
bash: syntax error near unexpected token `('
[root@......]# [root@......]# Disk identifier: 0x000532d6
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Disk: command not found...
bash: bash:: command not found...
[root@......]# [root@......]#
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# [root@......]# Device Boot Start End Blocks Id System
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Device: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# /dev/sda1 * 2048 71682047 35840000 83 Linux
bash: [root@pcpinguins: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: /dev/sda1: Permission denied
bash: bash:: command not found...
[root@......]# [root@......]# /dev/sda2 71682048 1925122047 926720000 83 Linux
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: /dev/sda2: Permission denied
bash: bash:: command not found...
[root@......]# [root@......]# /dev/sda3 1925122048 1953523711 14200832 82 Linux swap / Solaris
bash: [root@pcpinguins: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: /dev/sda3: Permission denied
bash: bash:: command not found...
[root@......]# [root@......]#
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# [root@......]# Disk /dev/sdb: 999.5 GB, 999501594624 bytes
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Disk: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# 255 heads, 63 sectors/track, 121515 cylinders, total 1952151552 sectors
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: 255: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# Units = sectors of 1 * 512 = 512 bytes
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Units: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# Sector size (logical/physical): 512 bytes / 512 bytes
bash: syntax error near unexpected token `('
[root@......]# bash: syntax error near unexpected token `('
> [root@......]# I/O size (minimum/optimal): 512 bytes / 512 bytes
> bash: syntax error near unexpected token `('
bash: syntax error near unexpected token `('
[root@......]# [root@......]# Disk identifier: 0x0002ae3f
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Disk: command not found...
bash: bash:: command not found...
[root@......]# [root@......]#
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# [root@......]# Device Boot Start End Blocks Id System
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: Device: command not found...
bash: bash:: command not found...
[root@......]# [root@......]# /dev/sdb1 2048 1952151551 976074752 7 HPFS/NTFS
bash: [root@......: command not found...
Failed to search for file: Invalid input passed to daemon: char '[' in text!
[root@......]# bash: /dev/sdb1: Permission denied
bash: bash:: command not found...


I still do not see the HDD as it should be 250GB one.

Well, below is DMESG result:
[ 6802.803064] usb 3-3: new high speed USB device using ehci_hcd and address 2
[ 6802.918669] usb 3-3: New USB device found, idVendor=05e3, idProduct=0702
[ 6802.918689] usb 3-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 6802.918706] usb 3-3: Product: USB TO IDE
[ 6802.920257] usb-storage 3-3:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 6802.920314] scsi11 : usb-storage 3-3:1.0
[ 6803.925773] scsi 11:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 6803.926974] sd 11:0:0:0: Attached scsi generic sg5 type 0
[ 6803.929466] sd 11:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 6803.930731] sd 11:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 6803.930741] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[ 6803.935477] sd 11:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 6803.935486] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[ 6803.935498] sdc: sdc1
[ 6803.967568] sd 11:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 6803.967571] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[ 6803.967574] sd 11:0:0:0: [sdc] Attached SCSI disk
[ 6973.955148] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 6989.062069] sd 11:0:0:0: timing out command, waited 180s
[ 6989.062089] sd 11:0:0:0: [sdc] Unhandled sense code
[ 6989.062095] sd 11:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6989.062105] sd 11:0:0:0: [sdc] Sense Key : Hardware Error [current]
[ 6989.062116] sd 11:0:0:0: [sdc] Add. Sense: Data phase error
[ 6989.062127] sd 11:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 40 00
[ 6989.062149] end_request: I/O error, dev sdc, sector 119759
[ 6989.062165] Buffer I/O error on device sdc1, logical block 29924
[ 6989.062176] Buffer I/O error on device sdc1, logical block 29925
[ 6989.062193] Buffer I/O error on device sdc1, logical block 29926
[ 6989.062201] Buffer I/O error on device sdc1, logical block 29927
[ 6989.062208] Buffer I/O error on device sdc1, logical block 29928
[ 6989.062215] Buffer I/O error on device sdc1, logical block 29929
[ 6989.062223] Buffer I/O error on device sdc1, logical block 29930
[ 6989.062230] Buffer I/O error on device sdc1, logical block 29931
[ 6989.062238] Buffer I/O error on device sdc1, logical block 29932
[ 6989.062245] Buffer I/O error on device sdc1, logical block 29933
[ 7004.111394] usb 3-3: USB disconnect, address 2
[ 7004.114508] sd 11:0:0:0: [sdc] Unhandled error code
[ 7004.114516] sd 11:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 7004.114526] sd 11:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 08 00
[ 7004.114548] end_request: I/O error, dev sdc, sector 119759
[ 7004.114563] quiet_error: 6 callbacks suppressed
[ 7004.114570] Buffer I/O error on device sdc1, logical block 29924
[ 7004.114590] Buffer I/O error on device sdc1, logical block 29925
[ 7011.681180] usb 3-3: new high speed USB device using ehci_hcd and address 3
[ 7012.201160] usb 3-3: device not accepting address 3, error -71
[ 7012.303202] usb 3-3: new high speed USB device using ehci_hcd and address 4
[ 7012.429201] usb 3-3: device descriptor read/64, error -71
[ 7012.656187] usb 3-3: device descriptor read/64, error -71
[ 7012.859196] usb 3-3: new high speed USB device using ehci_hcd and address 5
[ 7013.277153] usb 3-3: device not accepting address 5, error -71
[ 7013.379197] usb 3-3: new high speed USB device using ehci_hcd and address 6
[ 7013.797136] usb 3-3: device not accepting address 6, error -71
[ 7013.797201] hub 3-0:1.0: unable to enumerate USB device on port 3
[ 7014.090195] usb 7-3: new full speed USB device using ohci_hcd and address 2
[ 7014.231332] usb 7-3: not running at top speed; connect to a high speed hub
[ 7014.239338] usb 7-3: New USB device found, idVendor=05e3, idProduct=0702
[ 7014.239356] usb 7-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7014.239373] usb 7-3: Product: USB TO IDE
[ 7014.244493] usb-storage 7-3:1.0: Quirks match for vid 05e3 pid 0702: 420
[ 7014.244598] scsi12 : usb-storage 7-3:1.0
[ 7015.252501] scsi 12:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 7015.253790] sd 12:0:0:0: Attached scsi generic sg5 type 0
[ 7015.262405] sd 12:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 7015.276418] sd 12:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7015.276428] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[ 7015.300486] sd 12:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7015.300495] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[ 7015.300506] sdc: sdc1
[ 7015.343403] sd 12:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7015.343413] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[ 7015.343421] sd 12:0:0:0: [sdc] Attached SCSI disk
[ 7028.811046] usb 7-3: USB disconnect, address 2
[ 7028.812676] sd 12:0:0:0: [sdc] Unhandled error code
[ 7028.812688] sd 12:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 7028.812698] sd 12:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 d3 00 00 40 00
[ 7028.812721] end_request: I/O error, dev sdc, sector 119763
[ 7028.812739] Buffer I/O error on device sdc1, logical block 29925
[ 7028.812757] Buffer I/O error on device sdc1, logical block 29926
[ 7028.812765] Buffer I/O error on device sdc1, logical block 29927
[ 7028.812772] Buffer I/O error on device sdc1, logical block 29928
[ 7028.812780] Buffer I/O error on device sdc1, logical block 29929
[ 7028.812787] Buffer I/O error on device sdc1, logical block 29930
[ 7028.812794] Buffer I/O error on device sdc1, logical block 29931
[ 7028.812802] Buffer I/O error on device sdc1, logical block 29932
[ 7028.812809] Buffer I/O error on device sdc1, logical block 29933
[ 7028.812816] Buffer I/O error on device sdc1, logical block 29934
[ 7028.812847] sd 12:0:0:0: [sdc] Unhandled error code
[ 7028.812852] sd 12:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 7028.812861] sd 12:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d4 13 00 00 04 00
[ 7028.812882] end_request: I/O error, dev sdc, sector 119827
[ 7030.308196] usb 3-4: new high speed USB device using ehci_hcd and address 7
[ 7030.434194] usb 3-4: device descriptor read/64, error -71
[ 7030.661189] usb 3-4: device descriptor read/64, error -71
[ 7030.864201] usb 3-4: new high speed USB device using ehci_hcd and address 8
[ 7030.990192] usb 3-4: device descriptor read/64, error -71
[ 7031.217197] usb 3-4: device descriptor read/64, error -71
[ 7031.420196] usb 3-4: new high speed USB device using ehci_hcd and address 9
[ 7031.838211] usb 3-4: device not accepting address 9, error -71
[ 7031.940205] usb 3-4: new high speed USB device using ehci_hcd and address 10
[ 7032.358152] usb 3-4: device not accepting address 10, error -71
[ 7032.358214] hub 3-0:1.0: unable to enumerate USB device on port 4
[ 7032.651144] usb 7-4: new full speed USB device using ohci_hcd and address 3
[ 7032.792332] usb 7-4: not running at top speed; connect to a high speed hub
[ 7032.800338] usb 7-4: New USB device found, idVendor=05e3, idProduct=0702
[ 7032.800356] usb 7-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7032.800373] usb 7-4: Product: USB TO IDE
[ 7032.802494] usb-storage 7-4:1.0: Quirks match for vid 05e3 pid 0702: 420
[ 7032.802583] scsi13 : usb-storage 7-4:1.0
[ 7034.767279] usb 7-4: USB disconnect, address 3
[ 7054.780200] usb 3-4: new high speed USB device using ehci_hcd and address 11
[ 7054.896542] usb 3-4: New USB device found, idVendor=05e3, idProduct=0702
[ 7054.896561] usb 3-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7054.896578] usb 3-4: Product: USB TO IDE
[ 7054.897451] usb-storage 3-4:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 7054.897517] scsi14 : usb-storage 3-4:1.0
[ 7055.901821] scsi 14:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 7055.903176] sd 14:0:0:0: Attached scsi generic sg5 type 0
[ 7055.907155] sd 14:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 7055.908531] sd 14:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7055.908540] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[ 7055.911414] sd 14:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7055.911423] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[ 7055.911434] sdc: sdc1
[ 7055.933914] sd 14:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 7055.933924] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[ 7055.933933] sd 14:0:0:0: [sdc] Attached SCSI disk
[ 7063.681315] lo: Disabled Privacy Extensions
[ 7063.681406] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[ 7240.811718] sd 14:0:0:0: timing out command, waited 180s
[ 7240.811728] sd 14:0:0:0: [sdc] Unhandled sense code
[ 7240.811729] sd 14:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7240.811731] sd 14:0:0:0: [sdc] Sense Key : Hardware Error [current]
[ 7240.811734] sd 14:0:0:0: [sdc] Add. Sense: Data phase error
[ 7240.811738] sd 14:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 40 00
[ 7240.811744] end_request: I/O error, dev sdc, sector 119759
[ 7240.811747] quiet_error: 7 callbacks suppressed
[ 7240.811750] Buffer I/O error on device sdc1, logical block 29924
[ 7240.811753] Buffer I/O error on device sdc1, logical block 29925
[ 7240.811757] Buffer I/O error on device sdc1, logical block 29926
[ 7240.811761] Buffer I/O error on device sdc1, logical block 29927
[ 7240.811763] Buffer I/O error on device sdc1, logical block 29928
[ 7240.811765] Buffer I/O error on device sdc1, logical block 29929
[ 7240.811767] Buffer I/O error on device sdc1, logical block 29930
[ 7240.811769] Buffer I/O error on device sdc1, logical block 29931
[ 7240.811771] Buffer I/O error on device sdc1, logical block 29932
[ 7240.811773] Buffer I/O error on device sdc1, logical block 29933
[ 7425.849207] sd 14:0:0:0: timing out command, waited 180s
[ 7425.849241] sd 14:0:0:0: [sdc] Unhandled sense code
[ 7425.849247] sd 14:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7425.849257] sd 14:0:0:0: [sdc] Sense Key : Hardware Error [current]
[ 7425.849268] sd 14:0:0:0: [sdc] Add. Sense: Data phase error
[ 7425.849280] sd 14:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 08 00
[ 7425.849302] end_request: I/O error, dev sdc, sector 119759
[ 7425.849317] quiet_error: 6 callbacks suppressed
[ 7425.849325] Buffer I/O error on device sdc1, logical block 29924
[ 7425.849335] Buffer I/O error on device sdc1, logical block 29925
[ 7877.456265] npviewer.bin[4601]: segfault at 218 ip 0000000000777806 sp 00000000fff65658 error 6 in libflashplayer.so[4fb000+bc1000]
[ 8282.903348] usb 3-4: USB disconnect, address 11
[ 8285.655169] usb 3-3: new high speed USB device using ehci_hcd and address 12
[ 8285.771326] usb 3-3: New USB device found, idVendor=05e3, idProduct=0702
[ 8285.771346] usb 3-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 8285.771362] usb 3-3: Product: USB TO IDE
[ 8285.774666] usb-storage 3-3:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 8285.774762] scsi15 : usb-storage 3-3:1.0
[ 8286.778602] scsi 15:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 8286.779989] sd 15:0:0:0: Attached scsi generic sg5 type 0
[ 8286.781439] sd 15:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 8286.784708] sd 15:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8286.784717] sd 15:0:0:0: [sdc] Assuming drive cache: write through
[ 8286.789699] sd 15:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8286.789709] sd 15:0:0:0: [sdc] Assuming drive cache: write through
[ 8286.789722] sdc: sdc1
[ 8286.814558] sd 15:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8286.814561] sd 15:0:0:0: [sdc] Assuming drive cache: write through
[ 8286.814564] sd 15:0:0:0: [sdc] Attached SCSI disk
[ 8398.907486] usb 3-3: USB disconnect, address 12
[ 8398.911459] sd 15:0:0:0: [sdc] Unhandled error code
[ 8398.911462] sd 15:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 8398.911464] sd 15:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 40 00
[ 8398.911470] end_request: I/O error, dev sdc, sector 119759
[ 8398.911475] Buffer I/O error on device sdc1, logical block 29924
[ 8398.911479] Buffer I/O error on device sdc1, logical block 29925
[ 8398.911483] Buffer I/O error on device sdc1, logical block 29926
[ 8398.911485] Buffer I/O error on device sdc1, logical block 29927
[ 8398.911487] Buffer I/O error on device sdc1, logical block 29928
[ 8398.911488] Buffer I/O error on device sdc1, logical block 29929
[ 8398.911490] Buffer I/O error on device sdc1, logical block 29930
[ 8398.911492] Buffer I/O error on device sdc1, logical block 29931
[ 8398.911494] Buffer I/O error on device sdc1, logical block 29932
[ 8398.911505] sd 15:0:0:0: [sdc] Unhandled error code
[ 8398.911506] sd 15:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 8398.911508] sd 15:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d4 0f 00 00 08 00
[ 8398.911513] end_request: I/O error, dev sdc, sector 119823
[ 8486.745196] usb 3-3: new high speed USB device using ehci_hcd and address 13
[ 8486.861533] usb 3-3: New USB device found, idVendor=05e3, idProduct=0702
[ 8486.861553] usb 3-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 8486.861570] usb 3-3: Product: USB TO IDE
[ 8486.868774] usb-storage 3-3:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 8486.868881] scsi16 : usb-storage 3-3:1.0
[ 8487.874446] scsi 16:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 8487.876800] sd 16:0:0:0: Attached scsi generic sg5 type 0
[ 8487.880472] sd 16:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 8487.882037] sd 16:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8487.882046] sd 16:0:0:0: [sdc] Assuming drive cache: write through
[ 8487.886773] sd 16:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8487.886782] sd 16:0:0:0: [sdc] Assuming drive cache: write through
[ 8487.886794] sdc: unknown partition table
[ 8487.893624] sd 16:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8487.893633] sd 16:0:0:0: [sdc] Assuming drive cache: write through
[ 8487.893641] sd 16:0:0:0: [sdc] Attached SCSI disk
[ 8590.863336] usb 3-3: USB disconnect, address 13
[ 8593.718217] usb 3-4: new high speed USB device using ehci_hcd and address 14
[ 8593.834523] usb 3-4: New USB device found, idVendor=05e3, idProduct=0702
[ 8593.834543] usb 3-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 8593.834560] usb 3-4: Product: USB TO IDE
[ 8593.835364] usb-storage 3-4:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 8593.835458] scsi17 : usb-storage 3-4:1.0
[ 8594.839548] scsi 17:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 8594.840909] sd 17:0:0:0: Attached scsi generic sg5 type 0
[ 8594.845490] sd 17:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 8594.849715] sd 17:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8594.849734] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[ 8594.852633] sd 17:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8594.852642] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[ 8594.852655] sdc: unknown partition table
[ 8594.876750] sd 17:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8594.876755] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[ 8594.876760] sd 17:0:0:0: [sdc] Attached SCSI disk
[ 8596.591723] usb 3-4: USB disconnect, address 14
[ 8616.131068] usb 3-4: new high speed USB device using ehci_hcd and address 15
[ 8616.246616] usb 3-4: New USB device found, idVendor=05e3, idProduct=0702
[ 8616.246635] usb 3-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 8616.246652] usb 3-4: Product: USB TO IDE
[ 8616.247535] usb-storage 3-4:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 8616.247579] scsi18 : usb-storage 3-4:1.0
[ 8617.251774] scsi 18:0:0:0: Direct-Access Maxtor 6 B250R0 0811 PQ: 0 ANSI: 0
[ 8617.253052] sd 18:0:0:0: Attached scsi generic sg5 type 0
[ 8617.254467] sd 18:0:0:0: [sdc] 490234752 512-byte logical blocks: (251 GB/233 GiB)
[ 8617.257740] sd 18:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8617.257751] sd 18:0:0:0: [sdc] Assuming drive cache: write through
[ 8617.261100] sd 18:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8617.261110] sd 18:0:0:0: [sdc] Assuming drive cache: write through
[ 8617.261121] sdc: sdc1
[ 8617.285856] sd 18:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 8617.285858] sd 18:0:0:0: [sdc] Assuming drive cache: write through
[ 8617.285861] sd 18:0:0:0: [sdc] Attached SCSI disk
[ 8802.358930] sd 18:0:0:0: timing out command, waited 180s
[ 8802.358951] sd 18:0:0:0: [sdc] Unhandled sense code
[ 8802.358958] sd 18:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8802.358967] sd 18:0:0:0: [sdc] Sense Key : Hardware Error [current]
[ 8802.358977] sd 18:0:0:0: [sdc] Add. Sense: Data phase error
[ 8802.358989] sd 18:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 40 00
[ 8802.359011] end_request: I/O error, dev sdc, sector 119759
[ 8802.359026] quiet_error: 9 callbacks suppressed
[ 8802.359034] Buffer I/O error on device sdc1, logical block 29924
[ 8802.359045] Buffer I/O error on device sdc1, logical block 29925
[ 8802.359064] Buffer I/O error on device sdc1, logical block 29926
[ 8802.359071] Buffer I/O error on device sdc1, logical block 29927
[ 8802.359079] Buffer I/O error on device sdc1, logical block 29928
[ 8802.359087] Buffer I/O error on device sdc1, logical block 29929
[ 8802.359094] Buffer I/O error on device sdc1, logical block 29930
[ 8802.359101] Buffer I/O error on device sdc1, logical block 29931
[ 8802.359109] Buffer I/O error on device sdc1, logical block 29932
[ 8802.359116] Buffer I/O error on device sdc1, logical block 29933
[ 8987.182533] sd 18:0:0:0: timing out command, waited 180s
[ 8987.182553] sd 18:0:0:0: [sdc] Unhandled sense code
[ 8987.182559] sd 18:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8987.182568] sd 18:0:0:0: [sdc] Sense Key : Hardware Error [current]
[ 8987.182579] sd 18:0:0:0: [sdc] Add. Sense: Data phase error
[ 8987.182590] sd 18:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 d3 cf 00 00 08 00
[ 8987.182612] end_request: I/O error, dev sdc, sector 119759
[ 8987.182626] quiet_error: 6 callbacks suppressed
[ 8987.182634] Buffer I/O error on device sdc1, logical block 29924
[ 8987.182645] Buffer I/O error on device sdc1, logical block 29925
[ 9134.458330] npviewer.bin[4731]: segfault at 218 ip 0000000000f79806 sp 00000000ffea1ce8 error 6 in libflashplayer.so[cfd000+bc1000]


Do you know what error -71 means?
 
Old 06-07-2011, 10:46 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,330

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
I'm not sure what you were doing here. What you were asked to do was enter the command as root: fdisk -l, before attaching your external drive which you did. You were then asked to enter that same command after attaching the external which you did not. It looks like you entered the output of each line of the original fdisk?? Your dmesg output shows a 250GB drive detected and your original output only shows two 1TB drives.

All the buffer I/O errors refer to sdc1 which is the drive in question. I don't know what error 71 is but you might try googling for it. I'm sure someone who is more familiar should be able to expalin it to you.
 
Old 06-07-2011, 11:15 AM   #5
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
another attempt

I do not know what I was doing. I should mention that all that numerical poem appeared when I typed fdisk -l. Anyway, here is another try:

BEFORE I PLUGGED HDD IN
#Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000532d6

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 71682047 35840000 83 Linux
/dev/sda2 71682048 1925122047 926720000 83 Linux
/dev/sda3 1925122048 1953523711 14200832 82 Linux swap / Solaris

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 cylinders, total 1952151552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002ae3f

Device Boot Start End Blocks Id System
/dev/sdb1 2048 1952151551 976074752 7 HPFS/NTFS


AFTER I PLUGGED HDD IN

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000532d6

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 71682047 35840000 83 Linux
/dev/sda2 71682048 1925122047 926720000 83 Linux
/dev/sda3 1925122048 1953523711 14200832 82 Linux swap / Solaris

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 cylinders, total 1952151552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002ae3f

Device Boot Start End Blocks Id System
/dev/sdb1 2048 1952151551 976074752 7 HPFS/NTFS

Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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


HDD is still not visible on pc.
 
Old 06-07-2011, 10:38 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,773
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
You say that it is invisible in Fedora.

I am therefore assuming that it has been visible in something (Windows?). If it's NTFS, do you have NTFS drivers installed in Fedora? I know that some distros include them out of the box and some (such as Debian) do not. I know that in the olden days, externals were formatted FAT-something for backwards compatibility, but newer ones are coming NTFS (I know--I reformatted my new external to ext3).

It's worth checking if only to rule it out, especially since fdisk doesn't like the partition.
 
Old 06-08-2011, 01:13 AM   #7
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
Quote:
Originally Posted by Talie View Post
Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table
It sounds like the partition table of your disk is hosed. Was there anything special you had to do to it to get it to work in Windows?

If not, it might be able to be rebuilt if you know what and where the disk partitions were.
 
Old 06-08-2011, 01:18 AM   #8
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
Quote:
HDD worked fine till last week.
Was it worked with Fedora or any OS ?
 
Old 06-08-2011, 02:35 AM   #9
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Interesting! I have used it with Fedora since December 2010. It did not have any problems, may be in the beginning it was not visible either. This was solved with "Switch off/on" with HDD plugged in. Now it does not work this or any other way.

I have no idea if it is social with windows and intend to check it today when notebook with windows, hopefully, arrives. Actually, other USB HDD - practically new - is not visible anymore either. I have not checked dmesg and fdisk for it yet though.

I noticed that it stopped working after I updated Linux. At that time I also played with USB to connect external data devices like GPS: opening permissions, attaching com ports... Com ports are detached already.

Regarding partitions, I have never had any on that HDD. There was just one big space for files.
 
Old 06-08-2011, 02:58 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Lets assume that the partition table is hosed but the partitions are OK.

Most likely, the first partition will start on sector 2048 or 63. If created by XP or an older Linux, 63. If created by Vista, Win 7 or a recent Linux, 2048.

It is possible to create a disk device at these offsets and see if a partition exists there. If it does, you will be able to recreate the partition table and recover your data.

This command will print out the loop device used. If it returns /dev/loop1 instead, use /dev/loop1 in the second command. I used loop0 as an example.
Code:
losetup  --find --show /dev/sdd -o $((63*512))
file -s /dev/loop0
If this isn't successfull, lets try an offset of 2048 sectors.
Code:
losetup --find --show /dev/sdd -o $((63*2048))
file -s /dev/loop0
Here is an example from an older external drive of mine. The bold lines are commands entered. The others are what is printed out.
Code:
sudo /sbin/losetup --find --show /dev/sdd -o $((63*512))
/dev/loop0
sudo file -s /dev/loop0
/dev/loop0: x86 boot sector, Microsoft Windows 98 Bootloader, code offset 0x5a, OEM-ID "MSWIN4.1", sectors/cluster 64, reserved sectors 106, Media descriptor 0xf8, heads 255, hidden sectors 63, sectors 62926604 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 7681, rootdir cluster 20995, reserved3 0x800000, serial number 0x2cbd5986, unlabeled
If one of these is successful, we can work on restoring the partition table.

Last edited by jschiwal; 06-08-2011 at 06:37 AM.
 
Old 06-09-2011, 07:35 AM   #11
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
Lets assume that the partition table is hosed but the partitions are OK.

Most likely, the first partition will start on sector 2048 or 63. If created by XP or an older Linux, 63. If created by Vista, Win 7 or a recent Linux, 2048.

It is possible to create a disk device at these offsets and see if a partition exists there. If it does, you will be able to recreate the partition table and recover your data.

This command will print out the loop device used. If it returns /dev/loop1 instead, use /dev/loop1 in the second command. I used loop0 as an example.
Code:
losetup  --find --show /dev/sdd -o $((63*512))
file -s /dev/loop0

If this isn't successfull, lets try an offset of 2048 sectors.
Code:
losetup --find --show /dev/sdd -o $((63*2048))
file -s /dev/loop0
Here is an example from an older external drive of mine. The bold lines are commands entered. The others are what is printed out.
Code:
sudo /sbin/losetup --find --show /dev/sdd -o $((63*512))
/dev/loop0
sudo file -s /dev/loop0
/dev/loop0: x86 boot sector, Microsoft Windows 98 Bootloader, code offset 0x5a, OEM-ID "MSWIN4.1", sectors/cluster 64, reserved sectors 106, Media descriptor 0xf8, heads 255, hidden sectors 63, sectors 62926604 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 7681, rootdir cluster 20995, reserved3 0x800000, serial number 0x2cbd5986, unlabeled
If one of these is successful, we can work on restoring the partition table.
All upper commands ended as following:
[root@...]#
losetup --find --show /dev/sdc -o $((63*512))
/dev/loop0
file -s /dev/loop0
/dev/loop0: data

with the difference in loop numbering 0, 1, 2

I guess it was not successful, was it?
 
Old 06-11-2011, 06:20 PM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
No it wasn't. It's possible that the partitions start at different offsets, but I used the two most likely for Windows & Linux. The 63 offset is what XP uses. Later OSes use a larger offset, partially due to anticipating 1024 instead of 512 minimum block sizes for drives over 2 TB.

If the data is very important, you might want to create a bit-by-bit image of the disk. dd can do this, copying the entire drive device to a file. If there are IO errors, look at ddrescue or dd-rescue.

Your next step may be using testdisk to try to locate and recover partitions. http://www.cgsecurity.org/wiki/TestDisk

Another program photorec will locate files on a disk can copy them. You would end up with files with the names of inodes.

I wrote a script you can use to add the extensions to files. It is an 800 line sed script based on the mime database, which generates a script to rename files. Maybe it would help if you use photorec or later fsck (if you get your partition back).
http://www.linuxquestions.org/questi...6/#post3835124

---
At work, we've had an external drive go bad more than once, but the problem is with the power supply. This is one of those power block supplies with several pins, supplying different voltages.

Last edited by jschiwal; 06-11-2011 at 06:23 PM.
 
Old 06-15-2011, 02:35 AM   #13
Talie
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
OK, I tried following commands from ddrescue:

Rescue the most important part of the disc first.

ddrescue -i0 -s50M /dev/hdc hdimage logfile
ddrescue -i0 -s1M -d -r3 /dev/hdc hdimage logfile
Then rescue some key disc areas.

ddrescue -i30G -s10G /dev/hdc hdimage logfile
ddrescue -i230G -s5G /dev/hdc hdimage logfile
Now rescue the rest (does not recopy what is already done).

ddrescue /dev/hdc hdimage logfile
ddrescue -d -r3 /dev/hdc hdimage logfile

And this was the result:


Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x54697930

Device Boot Start End Blocks Id System
/dev/sdc1 63 490223474 245111706 c W95 FAT32 (LBA)
[root@.....]# ddrescue -d -r3 /dev/sdc hdimage logfile


Press Ctrl-C to interrupt
Initial status (read from logfile)
rescued: 251 GB, errsize: 102 kB, errors: 3
Current status
rescued: 251 GB, errsize: 25600 B, current rate: 522 B/s
ipos: 180913 MB, errors: 3, average rate: 1515 B/s
opos: 180913 MB, time from last successful read: 0 s
Finished

By the way, before it indicated "Finished" it stated "Trimming failed..."

Any idea what is that? Also, what do ipos and opos mean?

That SDC1 is the result of ddrescue I guess.

Where can I find that image disk or copied files? As sdc1 does not mount because "can't find sdc1 in /etc/fstab or /etc/mtab".

THanks in advance.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 13 copying data very slowly to external HDD n03x3c Fedora 4 06-27-2010 12:31 AM
Cannot Mount NTFS External HDD on Fedora 11 BumbleBee Linux - Newbie 25 09-13-2009 09:24 PM
Fedora 10 full install on Laptop + External HDD voes !!! Karbon Linux - Laptop and Netbook 0 06-13-2009 08:41 AM
Installing Fedora on External HDD... chiefreborn Linux - Hardware 0 06-11-2005 06:15 PM
Fedora install on External HDD Mafia Linux - Newbie 11 12-11-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration