
너무 멍청해서 Readynas Ultra 4에 디스크(3TB WD Green)를 설치할 때 전원을 끄고 반납할 때까지 기다릴 시간이 없었습니다(시끄러울 정도로 시끄러웠습니다). 디스크 설치율이 0%이고 2분 동안 그대로 유지되어 결과에 대해서는 별 생각 없이 끄기로 결정했습니다. 어쨌든, 이제 작업이 완료되었고 새 NAS(Synology 413j)에 넣어야 하는데 잘 되지 않습니다. 디스크는 BIOS에서 인식되며 USB에서 gparted live를 실행할 때 /dev/sdc로 표시됩니다. 하지만 Windows 장치 관리자나 우분투에서는 표시되지 않습니다. 라이브 우분투 USB에서 sudo gparted를 실행하면 /dev/sdc에서 읽는 동안 입력/출력 오류가 발생합니다.
나는 gparted live에서 더 많은 것을 시도했지만 요약하자면 여기서 일어나는 일과 매우 유사합니다.http://ubuntuforums.org/archive/index.php/t-1492414.html 그가 배드섹터를 실행하고 많은 오류가 발생하는 부분까지 나는 badsectors -vs를 실행했습니다(그냥 읽고 출력을 표시한 것 같습니다. 약 3000섹터에 대해 실행했으며 각 블록에 대해 계산된 출력은 다음과 같습니다. 등등)
1
2
3
4
5
6
7
8
9
10
11
12
13
140.00% done, 0:01 elapsed. (14/0/0 errors)
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
310.00% done, 0:02 elapsed. (31/0/0 errors)
gparted(live)에서는 /dev/sdc 디스크가 표시되지만 모두 할당되지 않았으며 모든 디스크를 검색할 때 입력/출력 읽기 오류가 표시됩니다. 새 파티션을 만들려고 하면 파티션 테이블이 없다는 오류가 발생합니다. 장치로 가서 파티션 테이블을 만들고 gpt를 선택하면 입력/출력 읽기 시 약 5-6개의 오류가 발생하고 /dev/sdc에도 씁니다.
gparted(live)에서 gdisk를 입력하면 다음을 얻습니다.
Warning! Read error 5; strange behavior now likely!
Warning! Read error 5; strange behavior now likely!
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
smartctl을 실행할 때:
ubuntu@ubuntu:~$ sudo smartctl --all /dev/sdc
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-29-generic] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model: WDC WD30EZRX-00MMMB0
Serial Number: WD-WCAWZ2205xxxxx
LU WWN Device Id: 5 0014ee 25c5f8480
Firmware Version: 80.00A80
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sat Sep 29 15:53:44 2012 UTC
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: (0x84) Offline data collection activity
was suspended by an interrupting command from host.
Auto Offline Data Collection: Enabled.
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: (50700) 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: ( 255) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3035) 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 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 199 140 021 Pre-fail Always - 7050
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 483
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 572
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 - 142
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 31
193 Load_Cycle_Count 0x0032 198 198 000 Old_age Always - 8522
194 Temperature_Celsius 0x0022 114 095 000 Old_age Always - 38
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 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% 569 42084912
# 2 Short offline Completed without error 00% 388 -
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.
내 gdisk 세션은 여기 아래에 있습니다. 하지만 결국 제가 얻은 가장 유용한 것은 다음과 같습니다. 경고! 메인 파티션 테이블은 첫 번째 파티션과 34블록 겹칩니다! 이 파티션을 삭제하거나 다른 유틸리티에서 크기를 조정해야 합니다.
user@debian:~$ sudo gdisk
GPT fdisk (gdisk) version 0.8.5
Type device filename, or press <Enter> to exit: /dev/sdc
Warning! Read error 5; strange behavior now likely!
Warning! Read error 5; strange behavior now likely!
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): ?
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-5860533134, default = 2048) or {+-}size{KMGTP}: 2048
Last sector (2048-5860533134, default = 5860533134) or {+-}size{KMGTP}: 5860533134
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): l
0700 Microsoft basic data 0c01 Microsoft reserved 2700 Windows RE
4200 Windows LDM data 4201 Windows LDM metadata 7501 IBM GPFS
7f00 ChromeOS kernel 7f01 ChromeOS root 7f02 ChromeOS reserved
8200 Linux swap 8300 Linux filesystem 8301 Linux reserved
8e00 Linux LVM a500 FreeBSD disklabel a501 FreeBSD boot
a502 FreeBSD swap a503 FreeBSD UFS a504 FreeBSD ZFS
a505 FreeBSD Vinum/RAID a580 Midnight BSD data a581 Midnight BSD boot
a582 Midnight BSD swap a583 Midnight BSD UFS a584 Midnight BSD ZFS
a585 Midnight BSD Vinum a800 Apple UFS a901 NetBSD swap
a902 NetBSD FFS a903 NetBSD LFS a904 NetBSD concatenated
a905 NetBSD encrypted a906 NetBSD RAID ab00 Apple boot
af00 Apple HFS/HFS+ af01 Apple RAID af02 Apple RAID offline
af03 Apple label af04 AppleTV recovery af05 Apple Core Storage
be00 Solaris boot bf00 Solaris root bf01 Solaris /usr & Mac Z
bf02 Solaris swap bf03 Solaris backup bf04 Solaris /var
bf05 Solaris /home bf06 Solaris alternate se bf07 Solaris Reserved 1
bf08 Solaris Reserved 2 bf09 Solaris Reserved 3 bf0a Solaris Reserved 4
bf0b Solaris Reserved 5 c001 HP-UX data c002 HP-UX service
ef00 EFI System ef01 MBR partition scheme ef02 BIOS boot partition
fd00 Linux RAID
Hex code or GUID (L to show codes, Enter = 8300): ef01
Changed type of partition to 'MBR partition scheme'
Command (? for help): ?
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sdc.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): Y
Command (? for help): p
Disk /dev/sdc: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 3995C753-D73D-4386-8818-3A9AF06E3B2C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860533101 sectors (2.7 TiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): Y
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sdc.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
Command (? for help): p
Disk /dev/sdc: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): F1AE4B7D-9CCE-4211-BE3D-88DFFCCD3696
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860533101 sectors (2.7 TiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): n
Command (? for help): ?
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): d
No partitions
Command (? for help): i
No partitions
Command (? for help): r
Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Recovery/transformation command (? for help): f
Warning! This will destroy the currently defined partitions! Proceed? (Y/N): Y
Problem loading MBR! GPT is untouched; regenerating protective MBR!
Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Recovery/transformation command (? for help): v
No problems found. 5860533101 free sectors (2.7 TiB) available in 1
segments, the largest of which is 5860533101 (2.7 TiB) in size.
Recovery/transformation command (? for help): b
Recovery/transformation command (? for help): c
Warning! This will probably do weird things if you've converted an MBR to
GPT form and haven't yet saved the GPT! Proceed? (Y/N): Y
Warning! Read error 5! Misbehavior now likely!
Caution! After loading partitions, the CRC doesn't check out!
Recovery/transformation command (? for help): w
Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.
Aborting write of new partition table.
뭘 하려고 해도 입출력 오류가 나는 것 같고, 거기에 우분투 설치도 해보고 파티션 테이블도 생성하는 것 같은데 설치 시작하면..입/출력 오류가 뜹니다.
이 문제를 어떻게 해결할 수 있는지 아는 사람이 있나요? 더 많은 로그 파일 등을 게시하게 되어 기쁘지만 Linux에 대한 경험이 없으므로 이런 종류의 작업에만 사용합니다. 디스크는 매우 새롭고 나방이 몇 개 있어서 불량 섹터가 아닐까 의심됩니다.
모든 의견을 보내주셔서 감사합니다!
답변1
파티션 테이블이 있어야 할 디스크의 시작 부분에 불량 섹터가 있습니다. 그리고 그것들을 다시 매핑하려는 시도가 실패한 것 같습니다.
나는 보통 불량 섹터를 다시 매핑합니다.MHDD; DOS에서 실행되는 프리웨어 유틸리티이므로 OS 캐시를 우회하고 디스크 컨트롤러와 직접 작동할 수 있습니다. SMART 모니터링 데이터를 확인하여 다시 매핑되지 않은 불량 섹터가 없는지 확인하십시오. 있는 경우 아무것도 없을 때까지 MHDD를 다시 실행하십시오.
모든 불량 섹터를 다시 매핑한 후 Linux에서 HDD를 다시 파티션해 보세요. 이전 파티션 테이블의 나머지 부분이 fdisk를 혼동하는 경우 첫 번째 메가바이트를 0으로 추가하는 것이 도움이 될 수 있습니다.
문제의 또 다른 가능한 원인은 데이터 케이블에 결함이 있거나 전원 공급 장치가 너무 약한 것일 수 있습니다. 하지만 먼저 불량 섹터를 제거하세요.
또한 소프트배드(softbad)와 같은 것도 있습니다. 쓰기 중단(사고로 인한 전력 손실 또는 전력 공급 부족으로 인해)으로 인해 발생하는 불량 섹터; 특정 섹터가 제자리에 여러 번 다시 쓰여지는 경우(MHDD처럼) 일반적으로 다시 매핑하지 않고 디스크 하드웨어로 고정됩니다.
답변2
Mikhail은 가방에 문제에 대한 답을 어느 정도 가지고 있지만 핵심 사항이 누락되었습니다.
가능하다면 전원을 끄면 MBR이 엉망이 될 수 있습니다. 이는 파티션 테이블과 마찬가지로 디스크 시작 부분에 위치합니다. 그러나 이것이 손상된 경우 MBR의 512바이트를 모두 수동으로 다시 쓰거나 다음 작업을 시도해야 합니다. MBR 복구를 사용하여 문제를 해결하십시오. MBR의 마지막 72바이트가 파티션 테이블이 있는 위치임을 알 수 있습니다.
나는 경험을 바탕으로 말하는데, 나는 당신이 했던 것과 똑같은 일을 했으며 내가 한 일과 그것을 고치는 방법을 정확히 파악하는 데 엄청난 시간이 걸렸습니다. 이와 같은 대부분의 문제는 일반적으로 다음과 같이 해결됩니다. 대부분의 사람들은 단지 하드 디스크를 저장하기 위한 작업을 원하지 않기 때문에 하드웨어 오류가 발생합니다.