Portál AbcLinuxu, 26. dubna 2024 20:08


Dotaz: problem s ext. hdd

8.1.2017 19:57 jany2 | skóre: 30 | blog: jany_blog
problem s ext. hdd
Přečteno: 513×
Odpovědět | Admin
zdravim
Znami mi dnes doniesol externy hdd, ze mu jednoducho nefunguje, nieco mi splietal, ze ho formatoval a od vtedy nechce fungovat.
Ja pouzivam linux mint 17 a po pripojeni na usb ho system nenasiel. Spustil som gparted a tam som ho nasiel pod /dev/sdd, tak som skusil format do ntfs. Ale format trval hodne dlho (viac ako 15-20 min) cize format sa asi nekonal a neslo to ani ukoncit. Ukoncil som to hrubou silou t. j. rebootom.
Skusil som teda konzolu
fdisk -l
Disk /dev/sdc: 1000.2 GB, 1000202043392 bytes
248 heads, 55 sectors/track, 143219 cylinders, total 1953519616 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: 0x0002846e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1953519615   976758784   83  Linux
fdisk /dev/sdc
d
1
n
p
1
enter
enter
p
Disk /dev/sdc: 1000.2 GB, 1000202043392 bytes
248 heads, 55 sectors/track, 143219 cylinders, total 1953519616 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: 0x0002846e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1953519615   976758784   83  Linux
w
vystup s fdisku
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
Nasleduje format
mke2fs /dev/sdc1
Vystup
mke2fs 1.42.9 (4-Feb-2014)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244189696 blocks
12209484 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000, 214990848

Allocating group tables: done                            
Writing inode tables:  139/7453
Zastavy sa na 139/7453 a hotovo. Ked som tento postup cez terminal uz raz skusal, tak sa to zastavilo na 177/7453
Da sa tomu hdd este nejako pomoct ?
upozornujem, ze v linuxe som vecny zaciatocnik ...
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

8.1.2017 20:13 Peter Golis | skóre: 64 | blog: Bežné záležitosti | Bratislava
Rozbalit Rozbalit vše Re: problem s ext. hdd
Odpovědět | | Sbalit | Link | Blokovat | Admin
Hodnoty akcelerometra v SMART sú v normále?
8.1.2017 20:26 NN
Rozbalit Rozbalit vše Re: problem s ext. hdd
Odpovědět | | Sbalit | Link | Blokovat | Admin
Je to USB disk? Da se vyndat a zapojit bez radice? Jak vypada SMART? Kdyz se to "zastavi" jsou v dmesg videt pokusy o zapis? Co rika badblocks?
8.1.2017 20:58 jany2 | skóre: 30 | blog: jany_blog
Rozbalit Rozbalit vše Re: problem s ext. hdd
Tak neni pravda to co som pisal, ze sa zastavi na urcitom cisle. Teraz je to uz 252/7453, ale uz ubehla od vtedy hodina. Skusim to prejst smartom a dam vediet
upozornujem, ze v linuxe som vecny zaciatocnik ...
9.1.2017 08:46 jany2 | skóre: 30 | blog: jany_blog
Rozbalit Rozbalit vše Re: problem s ext. hdd
NN prilis vela otazok na mna :) Vybral som ho z ramceka a konektor vyzera takto takto takze asi nepojde inak, nez cez usb.
Co mozem ponuknut zo smartu ?
spustil som
smartctl -a /dev/sdd
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-24-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital My Passport (USB, AF)
Device Model:     WDC WD10JMVW-11S5XS0
Serial Number:    WD-WX51A92A2248
LU WWN Device Id: 5 0014ee 602f9950f
Firmware Version: 01.01A01
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Jan  9 08:41:35 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART STATUS RETURN: incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      ( 121)	The previous self-test completed having
					the read element of the test failed.
Total time to complete Offline 
data collection: 		(18180) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 198) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x70b5)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   195   195   051    Pre-fail  Always       -       1085
  3 Spin_Up_Time            0x0027   177   171   021    Pre-fail  Always       -       2133
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       180
  5 Reallocated_Sector_Ct   0x0033   172   172   140    Pre-fail  Always       -       1200
  7 Seek_Error_Rate         0x002e   186   176   000    Old_age   Always       -       429
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       144
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       170
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       156
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       1096
194 Temperature_Celsius     0x0022   118   105   000    Old_age   Always       -       29
196 Reallocated_Event_Count 0x0032   196   001   000    Old_age   Always       -       4
197 Current_Pending_Sector  0x0032   200   199   000    Old_age   Always       -       160
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure       90%       144         357960

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Spustil som kratky test
smartctl -t short /dev/sdd
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-24-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Mon Jan  9 08:39:33 2017

Use smartctl -X to abort test.
upozornujem, ze v linuxe som vecny zaciatocnik ...
9.1.2017 08:51 R
Rozbalit Rozbalit vše Re: problem s ext. hdd
1200 realokovanych sektorov a 160 pending - to nevyzera dobre. Skus cely disk prepisat cez dd (dd if=/dev/zero of=/dev/sdd bs=1M oflag=direct) a pozri, ako bude SMART vyzerat potom. Obavam sa ale, ze tie vadne sektory budu pribudat.
9.1.2017 12:00 jany2 | skóre: 30 | blog: jany_blog
Rozbalit Rozbalit vše Re: problem s ext. hdd
dd if=/dev/zero of=/dev/sdc bs=1M oflag=direct
spustil som to asi o 9:00 a este to neskoncilo ... terminal je cisty. O hodinu musim odist, cize to musim vypnut
upozornujem, ze v linuxe som vecny zaciatocnik ...
9.1.2017 12:13 lertimir | skóre: 64 | blog: Par_slov
Rozbalit Rozbalit vše Re: problem s ext. hdd
když neumíš počítat tak si to užij. pokud je to USB 2 tak jsi na cca 30MB/s, což je cca 33 000 sekund na zápis 1TB. tedy skoro 10 hodin. A dvojnásobek toho času by trvalo formátování na ntfs bez -f (jednou zapsat podruhé přečíst). USB 3 bude tak 2x rychlejší ale asi to bude záležet na procesoru. (iotop ti řekne kolk dat tam jede.)
9.1.2017 09:01 NN
Rozbalit Rozbalit vše Re: problem s ext. hdd
Raw_Read_Error_Rate     0x002f   195   195   051    Pre-fail  Always       -       1085
Reallocated_Sector_Ct   0x0033   172   172   140    Pre-fail  Always       -       1200
Seek_Error_Rate         0x002e   186   176   000    Old_age   Always       -       429
Reallocated_Event_Count 0x0032   196   001   000    Old_age   Always       -       4
Current_Pending_Sector  0x0032   200   199   000    Old_age   Always       -       160
=> Disk je chodici mrtvola.
9.1.2017 11:46 lertimir | skóre: 64 | blog: Par_slov
Rozbalit Rozbalit vše Re: problem s ext. hdd
A vzhledem k počtu najetých hodin je to buď velmi špatný disk, nebo s ním bylo špatně zacházeno. Jedou mi spolehlivě disky s 10x i více nájezdem hodin.
k3dAR avatar 10.1.2017 00:54 k3dAR | skóre: 62
Rozbalit Rozbalit vše Re: problem s ext. hdd
jen 10x? vzdyt ten disk nebezel ani tejden ;) ja mam disky co maji hodin 300x vice a jsou bez vadnejch sektoru... tohle je proste disk na okamzitou reklamaci...
porad nemam telo, ale uz mam hlavu... nobody
10.1.2017 01:06 lertimir | skóre: 64 | blog: Par_slov
Rozbalit Rozbalit vše Re: problem s ext. hdd
Hm. co je Spin up Time. Myslel jsem že je to rotace ploten v hodinách. a to má 2133. ale pak není logické že power je 144 moje numera jsou např.
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   099   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   071   071   011    Pre-fail  Always       -       9510
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1106
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   100   100   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   094   015    Pre-fail  Offline      -       12804
  9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       44193
k3dAR avatar 10.1.2017 02:13 k3dAR | skóre: 62
Rozbalit Rozbalit vše Re: problem s ext. hdd
"Spin up Time" je cas (v ms) potrebny k roztoceni, i kdyz u Hitachi nebo Seagate mam 1 nebo 0, u WD jsou to radove tisice...
porad nemam telo, ale uz mam hlavu... nobody
10.1.2017 08:38 jany2 | skóre: 30 | blog: jany_blog
Rozbalit Rozbalit vše Re: problem s ext. hdd
 9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       144
cize podla toho vyzera ze isiel 6 dni. Ten disk je externy, neni zalozeny v pc a znamy si tam stahoval nanajvys nejake filmy .... Mozno ze bezal len 6 dni, ale ak si spominam, tak hovoril, ze disk ma asi 3 roky (ale to az tak moc nepamatam, nejak som tomu nevenoval pozornost).

Kazdopadne ak by bol v zaruke, tak mu odporucim reklamaciu
upozornujem, ze v linuxe som vecny zaciatocnik ...
9.1.2017 13:37 ES
Rozbalit Rozbalit vše Re: problem s ext. hdd
HDD je mrtvej. I kdyby se s tim nekdo chtel babrat a oznacovat vadne casti, tak se na to v zadnym pripade nadaji nahrat data ktera maji nejakou cenu.
8.1.2017 21:36 lertimir | skóre: 64 | blog: Par_slov
Rozbalit Rozbalit vše Re: problem s ext. hdd
Odpovědět | | Sbalit | Link | Blokovat | Admin
Formátování mkfs.ntfs bez parametru -f nuluje celý oddíl a čte bad sectors, takže dvakrát projede celý disk. Při USB rychlostech je to operace na několik hodin.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.