Код: Выделить всё
# fdisk -l
Unable to seek on /dev/sda
# fdisk -l /dev/sda
#
testdisk ошибок не находит, всё работает нормально... Что за фигня такая?
Модератор: Модераторы разделов
Код: Выделить всё
# fdisk -l
Unable to seek on /dev/sda
# fdisk -l /dev/sda
#
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
$ grep sda /var/log/dmesg
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4 < sda5 >
sd 0:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda3): mounted filesystem with ordered data mode
EXT4-fs (sda1): mounted filesystem with ordered data mode
EXT3-fs (sda5): using internal journal
EXT3-fs (sda5): mounted filesystem with ordered data mode
Adding 2096472k swap on /dev/sda2. Priority:-1 extents:1 across:2096472k
$ cat /proc/partitions
major minor #blocks name
8 0 488386584 sda
8 1 104391 sda1
8 2 2096482 sda2
8 3 20972857 sda3
8 4 1 sda4
8 5 421168041 sda5
8 16 117220824 sdb
8 17 117218241 sdb1
8 32 2009600 sdc
8 33 2009478 sdc1
8 48 488386584 sdd
8 49 488384001 sdd1
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
parted /dev/sda print
Код: Выделить всё
# parted /dev/sda print
Error: Invalid argument during seek for read on /dev/sda
Retry/Ignore/Cancel? i
Error: Invalid partition table on /dev/sda -- wrong signature 0.
Ignore/Cancel? i
Model: ATA MAXTOR STM350032 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext4 boot
2 107MB 2254MB 2147MB primary linux-swap(v1)
3 2254MB 23.7GB 21.5GB primary ext4
4 23.7GB 500GB 476GB extended
5 68.8GB 500GB 431GB logical ext3
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
# gpart /dev/sda
*** Fatal error: dev(/dev/sda): seek failure.
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
# strace fdisk -l /dev/sda
execve("/sbin/fdisk", ["fdisk", "-l", "/dev/sda"], [/* 87 vars */]) = 0
brk(0) = 0xfbf000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc8121ca000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=126832, ...}) = 0
mmap(NULL, 126832, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc8121ab000
close(3) = 0
open("/lib64/libblkid.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200[\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=139080, ...}) = 0
mmap(NULL, 2234216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc811d8d000
mprotect(0x7fc811dac000, 2093056, PROT_NONE) = 0
mmap(0x7fc811fab000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7fc811fab000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\354\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1711148, ...}) = 0
mmap(NULL, 3586216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc811a21000
mprotect(0x7fc811b84000, 2093056, PROT_NONE) = 0
mmap(0x7fc811d83000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x162000) = 0x7fc811d83000
mmap(0x7fc811d88000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc811d88000
close(3) = 0
open("/lib64/libuuid.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18984, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc8121aa000
mmap(NULL, 2113952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc81181c000
mprotect(0x7fc811820000, 2093056, PROT_NONE) = 0
mmap(0x7fc811a1f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fc811a1f000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc8121a8000
arch_prctl(ARCH_SET_FS, 0x7fc8121a8740) = 0
mprotect(0x7fc811a1f000, 4096, PROT_READ) = 0
mprotect(0x7fc811d83000, 16384, PROT_READ) = 0
mprotect(0x7fc811fab000, 12288, PROT_READ) = 0
mprotect(0x617000, 4096, PROT_READ) = 0
mprotect(0x7fc8121cb000, 4096, PROT_READ) = 0
munmap(0x7fc8121ab000, 126832) = 0
brk(0) = 0xfbf000
brk(0xfe0000) = 0xfe0000
open("/usr/share/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5508464, ...}) = 0
mmap(NULL, 5508464, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc8112db000
close(3) = 0
open("/dev/sda", O_RDONLY) = 3
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
ioctl(3, BLKSSZGET, 0x7fff68ba5074) = 0
lseek(3, 512, SEEK_SET) = 512
read(3, "RV\276\3!\350*\1^\277\370!f\213-\203}\4\0\17\204\312\0\200|\377\0t>f\213\35"..., 512) = 512
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0x7fff68ba50d8) = 0
ioctl(3, BLKSSZGET, 0x7fff68ba50b4) = 0
ioctl(3, BLKSSZGET, 0x7fff68ba5074) = 0
lseek(3, 500107861504, SEEK_SET) = 500107861504
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
close(3) = 0
open("/dev/sda", O_RDONLY) = 3
open("/dev/sda", O_RDONLY) = 4
read(4, "\353H\220\0\0\0GRUB\330\277\36\6\276\36|PW\271\342\1\363\244\271\0\2\363\253\313\200\372"..., 512) = 512
fadvise64(4, 0, 0, POSIX_FADV_RANDOM) = 0
fstat(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
ioctl(4, BLKGETSIZE64, 0xfc0850) = 0
ioctl(4, BLKALIGNOFF, 0x7fff68ba5064) = 0
ioctl(4, BLKIOMIN, 0x7fff68ba5064) = 0
ioctl(4, BLKIOOPT, 0x7fff68ba5064) = 0
ioctl(4, BLKPBSZGET, 0x7fff68ba5064) = 0
ioctl(4, BLKSSZGET, 0xfc0860) = 0
ioctl(4, BLKSSZGET, 0x7fff68ba5134) = 0
fstat(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, 0x301, 0x7fff68ba5120) = 0
ioctl(4, BLKGETSIZE64, 0x7fff68ba5100) = 0
lseek(4, 0, SEEK_SET) = 0
read(4, "\353H\220\0\0\0GRUB\330\277\36\6\276\36|PW\271\342\1\363\244\271\0\2\363\253\313\200\372"..., 8192) = 8192
lseek(4, 23729997312, SEEK_SET) = 23729997312
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
lseek(4, 2222753188864, SEEK_SET) = -1 EINVAL (Invalid argument)
close(4) = 0
exit_group(0) = ?
Код: Выделить всё
# smartctl -x /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [x86_64-mandriva-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Seagate Maxtor DiamondMax 22
Device Model: MAXTOR STM3500320AS
Serial Number: 9QM32BSF
Firmware Version: MX15
User Capacity: 500 107 862 016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Sat Sep 4 20:41:22 2010 MSD
==> WARNING: There are known problems with these drives,
AND THIS FIRMWARE VERSION IS AFFECTED,
see the following Seagate web pages:
http://seagate.custkb.com/seagate/crm/selfservice/search.jsp?DocId=207931
http://seagate.custkb.com/seagate/crm/selfservice/search.jsp?DocId=207969
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: (0x82) Offline data collection activity
was completed without error.
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: ( 642) 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 118) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x103b) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 117 099 006 Pre-fail Always - 135261981
3 Spin_Up_Time 0x0003 094 094 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 114
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 076 060 030 Pre-fail Always - 26013621391
9 Power_On_Hours 0x0032 083 083 000 Old_age Always - 15540
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 114
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 092 000 Old_age Always - 368
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 061 058 045 Old_age Always - 39 (Lifetime Min/Max 34/42)
194 Temperature_Celsius 0x0022 039 042 000 Old_age Always - 39 (0 15 0 0)
195 Hardware_ECC_Recovered 0x001a 041 020 000 Old_age Always - 135261981
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
General Purpose Logging (GPL) feature set supported
General Purpose Log Directory Version 1
SMART Log Directory Version 1 [multi-sector log support]
GP/S Log at address 0x00 has 1 sectors [Log Directory]
GP/S Log at address 0x01 has 1 sectors [Summary SMART error log]
GP/S Log at address 0x02 has 5 sectors [Comprehensive SMART error log]
GP/S Log at address 0x03 has 5 sectors [Ext. Comprehensive SMART error log]
GP/S Log at address 0x06 has 1 sectors [SMART self-test log]
GP/S Log at address 0x07 has 1 sectors [Extended self-test log]
GP/S Log at address 0x09 has 1 sectors [Selective self-test log]
GP/S Log at address 0x10 has 1 sectors [NCQ Command Error]
GP/S Log at address 0x11 has 1 sectors [SATA Phy Event Counters]
GP/S Log at address 0x21 has 1 sectors [Write stream error log]
GP/S Log at address 0x22 has 1 sectors [Read stream error log]
GP/S Log at address 0x80 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x81 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x82 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x83 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x84 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x85 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x86 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x87 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x88 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x89 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8a has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8b has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8c has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8d has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8e has 16 sectors [Host vendor specific log]
GP/S Log at address 0x8f has 16 sectors [Host vendor specific log]
GP/S Log at address 0x90 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x91 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x92 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x93 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x94 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x95 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x96 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x97 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x98 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x99 has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9a has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9b has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9c has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9d has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9e has 16 sectors [Host vendor specific log]
GP/S Log at address 0x9f has 16 sectors [Host vendor specific log]
GP/S Log at address 0xa1 has 20 sectors [Device vendor specific log]
GP Log at address 0xa2 has 2248 sectors [Device vendor specific log]
GP/S Log at address 0xa8 has 20 sectors [Device vendor specific log]
GP/S Log at address 0xa9 has 1 sectors [Device vendor specific log]
GP Log at address 0xb0 has 2819 sectors [Device vendor specific log]
GP Log at address 0xbe has 65535 sectors [Device vendor specific log]
GP Log at address 0xbf has 65535 sectors [Device vendor specific log]
GP/S Log at address 0xe0 has 1 sectors [SCT Command/Status]
GP/S Log at address 0xe1 has 1 sectors [SCT Data Transfer]
SMART Extended Comprehensive Error Log Version: 1 (5 sectors)
No Errors Logged
SMART Extended Self-test Log Version: 1 (1 sectors)
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 15525 -
# 2 Extended offline Completed without error 00% 15331 -
# 3 Extended offline Completed without error 00% 15032 -
# 4 Extended offline Completed without error 00% 14864 -
# 5 Extended offline Completed without error 00% 14696 -
# 6 Extended offline Completed without error 00% 14532 -
# 7 Extended offline Completed without error 00% 14364 -
# 8 Extended offline Completed without error 00% 14196 -
# 9 Extended offline Completed without error 00% 12850 -
#10 Extended offline Completed without error 00% 12708 -
#11 Extended offline Completed without error 00% 12539 -
#12 Extended offline Completed without error 00% 12372 -
#13 Extended offline Completed without error 00% 12204 -
#14 Extended offline Completed without error 00% 11962 -
#15 Short offline Completed without error 00% 11839 -
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.
SCT Status Version: 3
SCT Version (vendor specific): 522 (0x020a)
SCT Support Level: 1
Device State: Active (0)
Current Temperature: 39 Celsius
Power Cycle Min/Max Temperature: 34/42 Celsius
Lifetime Min/Max Temperature: 15/42 Celsius
Under/Over Temperature Limit Count: 0/5856
SCT Temperature History Version: 2
Temperature Sampling Period: 1 minute
Temperature Logging Interval: 1 minute
Min/Max recommended Temperature: 0/ 0 Celsius
Min/Max Temperature Limit: 0/ 0 Celsius
Temperature History Size (Index): 128 (14)
Index Estimated Time Temperature Celsius
15 2010-09-04 18:34 39 ********************
... ..(126 skipped). .. ********************
14 2010-09-04 20:41 39 ********************
SATA Phy Event Counters (GP Log 0x11)
ID Size Value Description
0x000a 2 11 Device-to-host register FISes sent due to a COMRESET
0x0001 2 0 Command failed due to ICRC error
0x0003 2 0 R_ERR response for device-to-host data FIS
0x0004 2 0 R_ERR response for host-to-device data FIS
0x0006 2 0 R_ERR response for device-to-host non-data FIS
0x0007 2 0 R_ERR response for host-to-device non-data FIS
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
dd if=/dev/sda bs=1 skip=23729997312 count=512 of=EBR.dump
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Bizdelnick писал(а): ↑04.09.2010 21:46вместо offset=23729997312 - skip=23729997311, ибо offset dd не понимает
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
dd if=/dev/zero bs=1 seek=23729997774 count=16 of=/dev/sda
Код: Выделить всё
dd if=/dev/sda bs=1 skip=23729997774 count=16 of=EBR_second_part_entry.dump
Rootlexx писал(а): ↑04.09.2010 23:16...
Код: Выделить всё
dd if=/dev/zero bs=1 skip=23729997774 count=16 of=/dev/sda
Разумеется, рекомендуется прежде сделать резервную копию данной области:
Код: Выделить всё
dd if=/dev/sda bs=1 skip=23729997774 count=16 of=EBR_second_part_entry.dump
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |