Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.




 Użyszkodnik
 Użyszkodnik
	Standardowo nie jestem pewien czy lepiej tu czy w dziale Hardware, więc jakby co to proszę o przeniesienie.
Mam sobie dysk Seagate Barracuda o pojemności 40 GB. Model też mogę podać jeśli to istotne.
Chciałbym ten dysk wczepić do komputera i przenieść na niego całego Debiana, obecny dysk (na którym powoli konczy się miejsce) pozostawiając sobie na /home/.
Problem w tym, że dysk przestał być używany ponieważ mój ojciec miał pewne problemy z zainstalowanym na nim systemem Aros. Konkretniej "coś nie działało". Innymi słowy -- nie wiem w jakim stanie jest ten dysk, i czy targanie go przez pół Polski z domu do miejsca studiów ma sens.
Jakich narzędzi mogę użyć aby upewnić się, że dysk jest w dobrym stanie? Tudzież upewnić, że jest w złym i nie ma sensu nic z nim robić. Nie wiem czy jest uszkodzony mechanicznie, czy ma bad sectory, czy w ogóle się uruchamia. 
Preferowane jakieś LiveCD, ale może też być na Windowsa XP -- dysponuję tutaj komputerem z tym systemem do którego mogę w celach diagnostycznych podłączyć tamten dysk. Ewentualnie na Debiana, ale tak żeby potrafiło diagnozować dysk z którego jest uruchomione -- mogę usunąć wszystkie aktualnie znajdujące się na nim dane i zainstalować tam nowy system.
Z góry dziękuję wszystkim specjalistom :) .
Offline



 Administrator
 Administrator
	



 elektryk dyżurny
 elektryk dyżurny
	





smartctl -x /dev/XdY
ps: jak dla mnie hardware ;)
Offline




 Użyszkodnik
 Użyszkodnik
	Za udzielone odpowiedzi wypada podziękować, a lepiej zrobic to późno niż wcale. Chociaż o Smarcie wiedziałem i liczyłem na trochę dłuższe wypowiedzi ;) .
Offline




 elektryk dyżurny
 elektryk dyżurny
	





generalnie, żeby zbadać taki dysk potrzebujesz przede wszystkim dużo czasu
puść sobie np. badblocks -svn -o badblocks.log /dev/hdX i zostaw komputer wlączony na noc. potem wrzuć na forum wynik smartctl -a /dev/hdX oraz informację o tym, czy w pliku badblocks.log uzbierały się jakies liczby, wtedy może ktoś powie ze dwa słowa
Offline




 Użyszkodnik
 Użyszkodnik
	O, tego badblocks nie znałem. Szczęśliwie na jednym z dysków których podłączenie rozważałem nie znalazł on żadnych błędów (plik badblocks.log jest pusty, po wykonaniu polecenia pojawiła się cyfra 0). Drugi dysk miał kiepskie wyniki w Smarcie, więc on i tak odpadł.
Wyniki smartctl dla dysku na którym badblocks nie znalazł żadnych błędów:
root@pingwin:~# cat smartctl.log 
smartctl 5.40 2010-02-03 r3060 [i686-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG SV2042H
Serial Number:    0273J1FR734284
Firmware Version: PK100-12
User Capacity:    20,411,080,704 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   4
ATA Standard is:  ATA/ATAPI-4 T13 1153D revision 17
Local Time is:    Fri Apr  9 22:20:40 2010 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status:  (0x00)    Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:          ( 480) seconds.
Offline data collection
capabilities:              (0x1b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    No 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.
                    No General Purpose Logging support.
Short self-test routine 
recommended polling time:      (   1) minutes.
Extended self-test routine
recommended polling time:      (   8) minutes.
SMART Attributes Data Structure revision number: 9
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000a   100   100   051    Old_age   Always       -       80
  4 Start_Stop_Count        0x0032   095   095   000    Old_age   Always       -       5736
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000a   253   253   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   253   253   000    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   095   095   000    Old_age   Always       -       3179594
 12 Power_Cycle_Count       0x0032   096   096   000    Old_age   Always       -       4079
197 Current_Pending_Sector  0x0032   253   253   010    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   253   253   010    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   100   100   051    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   100   100   051    Old_age   Always       -       0
SMART Error Log Version: 1
Warning: ATA error count 32 inconsistent with error log pointer 4
ATA Error Count: 32 (device log contains only the most recent five errors)
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 32 occurred at disk power-on lifetime: 26494 hours (1103 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.
  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 82 00 00 00 00 f0
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  f9 03 00 00 00 00 f0 02      00:00:01.000  SET MAX UNLOCK
  f9 03 04 00 00 00 f0 02      00:00:02.000  SET MAX UNLOCK
  ec 00 01 00 00 00 b0 00      00:00:02.000  IDENTIFY DEVICE
  00 00 01 01 00 00 a0 04      00:00:02.000  NOP [Abort queued commands]
  00 8a 01 01 00 00 a0 04      00:00:02.000  NOP [Reserved subcommand]
Error 31 occurred at disk power-on lifetime: 26494 hours (1103 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.
  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 82 04 00 00 00 f0
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  f9 03 04 00 00 00 f0 02      00:00:01.000  SET MAX UNLOCK
  ec 00 01 00 00 00 b0 00      00:00:01.000  IDENTIFY DEVICE
  00 00 01 01 00 00 a0 04      00:00:01.000  NOP [Abort queued commands]
  00 8a 01 01 00 00 a0 04      00:00:01.000  NOP [Reserved subcommand]
  90 8a 01 01 00 00 a0 00      00:00:01.000  EXECUTE DEVICE DIAGNOSTIC
Error 30 occurred at disk power-on lifetime: 26489 hours (1103 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.
  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 82 00 00 00 00 f0
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  f9 03 00 00 00 00 f0 02      00:00:01.000  SET MAX UNLOCK
  f9 03 04 00 00 00 f0 02      00:00:01.000  SET MAX UNLOCK
  ec 00 01 00 00 00 b0 00      00:00:01.000  IDENTIFY DEVICE
  00 00 01 01 00 00 a0 04      00:00:01.000  NOP [Abort queued commands]
  00 8a 01 01 00 00 a0 04      00:00:01.000  NOP [Reserved subcommand]
Error 29 occurred at disk power-on lifetime: 26489 hours (1103 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.
  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 82 04 00 00 00 f0
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  f9 03 04 00 00 00 f0 02      00:00:01.000  SET MAX UNLOCK
  ec 00 01 00 00 00 b0 00      00:00:01.000  IDENTIFY DEVICE
  00 00 01 01 00 00 a0 04      00:00:01.000  NOP [Abort queued commands]
  00 8a 01 01 00 00 a0 04      00:00:01.000  NOP [Reserved subcommand]
  90 8a 01 01 00 00 a0 00      00:00:01.000  EXECUTE DEVICE DIAGNOSTIC
Error 28 occurred at disk power-on lifetime: 26488 hours (1103 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.
  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 82 00 00 00 00 f0  
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  b0 d5 01 01 4f c2 b0 00      01:49:04.000  SMART READ LOG
  b0 d1 01 01 4f c2 b0 00      01:49:04.000  SMART READ ATTRIBUTE THRESHOLDS [OBS-4]
  b0 d0 01 00 4f c2 b0 00      01:49:04.000  SMART READ DATA
  b0 da 00 00 4f c2 b0 00      01:49:04.000  SMART RETURN STATUS
  b0 da 00 00 4f c2 b0 00      01:49:04.000  SMART RETURN STATUS
SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]
Device does not support Selective Self Tests/LoggingOffline




 elektryk dyżurny
 elektryk dyżurny
	





wydaje się, że ten dysk nie powinie sprawiać problemów
Offline



 Członek DUG
 Członek DUG
	



Dobrym sposobem sprawdzenie dysku jest użycie programów, które są na płytce http://www.ultimatebootcd.com/ w podmenu Hard Disk Tools, np. w przypadku dysków seagate za pomocą SeaTools można "naprawić" dysk poprzez remapowanie. Warto spróbować, tym bardziej, że płytka zawiera też inne ciekawe narzędzia.
Offline