#1 Le 17/08/2016, à 19:01
- donlouis
[Résolu] Problème au démarrage : erreur sur une partition
Bonjour à tous !
Suite à une mise à jour de php, mon système a refusé de redémarrer, j'ai dû éteindre sauvagement car la demande de reboot me ramenait systématiquement sur l'écran de login.
Je suis sous Xubuntu 16.04 LTS.
Au démarrage maintenant j'ai cette erreur :
Kernel panic - not syncing : Attempted to kill init! exitcode=0x00007f00
puis quelques lignes plus bas :
drm_kms_helper: panic occured, switching back to text console
J'ai donc booté sur une distrib live USB et effectué les commandes suivantes avec leurs résultats comme conseillé dans le post [Récupération de données] Aide et centralisation des cas :
root@kali:~# sudo sfdisk -luS
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sda1 * 2046 1953523711 1953521666 5 Extended
/dev/sda2 0 - 0 0 Empty
/dev/sda3 0 - 0 0 Empty
/dev/sda4 0 - 0 0 Empty
/dev/sda5 2048 23437311 23435264 82 Linux swap / Solaris
/dev/sda6 23439360 999999906 976560547 83 Linux
/dev/sda7 1000001536 1953523711 953522176 83 Linux
root@kali:~# udisks --show-info /dev/sda
Showing information for /org/freedesktop/UDisks/devices/sda
native-path: /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
device: 8:0
device-file: /dev/sda
presentation: /dev/sda
by-id: /dev/disk/by-id/ata-ST1000LM014-1EJ164_W7708EEL
by-id: /dev/disk/by-id/scsi-SATA_ST1000LM014-1EJ_W7708EEL
by-id: /dev/disk/by-id/wwn-0x5000c5007c51bbf5
by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
detected at: Wed Aug 17 15:43:56 2016
system internal: 1
removable: 0
has media: 1 (detected at Wed Aug 17 15:43:56 2016)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 0
mount paths:
mounted by uid: 0
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon:
automount hint:
size: 1000204886016
block size: 512
job underway: no
usage:
type:
version:
uuid:
label:
partition table:
scheme: mbr
count: 4
drive:
vendor: ATA
model: ST1000LM014-1EJ164
revision: SM28
serial: W7708EEL
WWN: 5000c5007c51bbf5
detachable: 0
can spindown: 1
rotational media: Yes, at 5400 RPM
write-cache: enabled
ejectable: 0
adapter: Unknown
ports:
similar devices:
media:
compat:
interface: ata
if speed: (unknown)
ATA SMART: Updated at Wed Aug 17 20:43:57 2016
overall assessment: Good
===============================================================================
Attribute Current|Worst|Threshold Status Value Type Updates
===============================================================================
raw-read-error-rate 117| 99| 6 good 133415056 Pre-fail Online
spin-up-time 98| 98| 0 n/a 0 Pre-fail Online
start-stop-count 98| 98| 20 good 2237 Old-age Online
reallocated-sector-count 100|100| 10 good 0 sectors Pre-fail Online
seek-error-rate 69| 60| 30 good 4304476821 Pre-fail Online
power-on-hours 95| 95| 0 n/a 194.1 days Old-age Online
spin-retry-count 100|100| 97 good 0 Pre-fail Online
power-cycle-count 99| 99| 20 good 1815 Old-age Online
end-to-end-error 100|100| 99 good 0 Old-age Online
reported-uncorrect 100|100| 0 n/a 0 sectors Old-age Online
command-timeout 100| 99| 0 n/a 3 Old-age Online
high-fly-writes 100|100| 0 n/a 0 Old-age Online
airflow-temperature-celsius 53| 43| 45 FAIL_PAST 47C / 117F Old-age Online
g-sense-error-rate 100|100| 0 n/a 0 Old-age Online
power-off-retract-count 100|100| 0 n/a 114 Old-age Online
load-cycle-count 98| 98| 0 n/a 4607 Old-age Online
temperature-celsius-2 47| 57| 0 n/a 47C / 117F Old-age Online
current-pending-sector 100|100| 0 n/a 0 sectors Old-age Online
offline-uncorrectable 100|100| 0 n/a 0 sectors Old-age Offline
udma-crc-error-count 200|200| 0 n/a 0 Old-age Online
attribute-254 100|100| 0 n/a 0 Old-age Online
sudo ~/testdisk_static /dev/sda :
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
Partition Start End Size in sectors
1 E extended 0 32 31 121601 57 56 1953521666
No partition is bootable
5 L Linux Swap 0 32 33 1458 230 52 23435264
X extended 1459 0 1 62247 29 25 976561072
6 L Linux 1459 8 22 62247 29 25 976560547
X extended 62247 29 26 121601 57 56 953523805
7 L Linux 62247 55 17 121601 57 56 953522176
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
>[Quick Search] [ Backup ]
Try to locate partition
QuickSearck =>
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Partition Start End Size in sectors
>* Linux Swap 0 32 33 1458 230 36 23435248
P Linux 1459 8 22 62247 29 22 976560544
P Linux 62247 55 17 121601 57 56 953522176
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type,
Enter: to continue
SWAP2 version 1, pagesize=4096, 11 GB / 11 GiB
DeeperSearch=>
En cours...
Plus les commandes suivantes :
J'ai essayé de réparer avec fsck :
root@kali:~# fsck /dev/sda1
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda1
Could this be a zero-length partition?
puis :
root@kali:~# smartctl -A /dev/sda
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.18.0-kali3-amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION ===
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 - 145110776
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2237
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 069 060 030 Pre-fail Always - 4304408734
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4654
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1815
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 099 000 Old_age Always - 3
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 051 043 045 Old_age Always In_the_past 49 (0 46 49 48)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 114
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 4607
194 Temperature_Celsius 0x0022 049 057 000 Old_age Always - 49 (0 5 0 0)
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
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 0
puis :
root@kali:~# mke2fs -n /dev/sda1
mke2fs 1.42.5 (29-Jul-2012)
/dev/sda1 alignment is offset by 1024 bytes.
This may result in very poor performance, (re)-partitioning suggested.
mke2fs: inode_size (128) * inodes_count (0) too big for a
filesystem with 0 blocks, specify higher inode_ratio (-i)
or lower inode count (-N).
Il semblerai suivant le résultat de cette commande que ce soit un problème de "magic number in superblock" :
root@kali:~# fsck /dev/sda
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
j'ai essayé la commande suggéré mais sans succès...
root@kali:~# e2fsck -b 8193 /dev/sda1
e2fsck 1.42.5 (29-Jul-2012)
e2fsck: Invalid argument while trying to open /dev/sda1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
root@kali:~# e2fsck -b 8193 /dev/sda
e2fsck 1.42.5 (29-Jul-2012)
e2fsck: Bad magic number in super-block while trying to open /dev/sda
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
J'ai cherché toute la journée ainsi qu'une grande partie dela nuit dernière et essayé tout ce que j'ai pu trouver sur les forums mais en vain...
Je n'arrive pas à avoir une liste de superblock.
Si quelqu'un pourrait m'éclairer ce serait au top
Merci d'avance !
Dernière modification par donlouis (Le 22/08/2016, à 13:22)
Hors ligne
#2 Le 21/08/2016, à 03:18
- Bougron
Re : [Résolu] Problème au démarrage : erreur sur une partition
Bonsoir
J'ai constaté une chose
Device Boot Start End #sectors Id System
/dev/sda1 * 2046 1953523711 1953521666 5 Extended
/dev/sda2 0 - 0 0 Empty
/dev/sda3 0 - 0 0 Empty
/dev/sda4 0 - 0 0 Empty
/dev/sda5 2048 23437311 23435264 82 Linux swap / Solaris
/dev/sda6 23439360 999999906 976560547 83 Linux
/dev/sda7 1000001536 1953523711 953522176 83 Linux
et
fsck /dev/sda1
Mais sda1 n'est pas une partition réelle il faut remplacer 1 par 6 puis faire la même chose avec la valeur 7
tu feras aussi cette commande avec un petit a elle donne plus de chose car l'état du disque n'est pas excellant
smartctl -a /dev/sda
Dernière modification par Bougron (Le 21/08/2016, à 03:21)
Hors ligne
#3 Le 22/08/2016, à 13:21
- donlouis
Re : [Résolu] Problème au démarrage : erreur sur une partition
salut et merci de ta réponse
du coup ça m'a gonflé alors j'ai formaté et recréer la table de partition, maintenant j'ai ça, beaucoup plus simple
Périphérique Amorçage Start Fin Secteurs Size Id Type
/dev/sda1 2048 23838719 23836672 11,4G 82 partition d'échange Linux / Solaris
/dev/sda2 * 23838720 414463999 390625280 186,3G 83 Linux
/dev/sda3 414464000 1953523711 1539059712 733,9G 83 Linux
voilà quand même le résultat de
smartctl -a /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-34-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Laptop SSHD
Device Model: ST1000LM014-1EJ164
Serial Number: W7708EEL
LU WWN Device Id: 5 000c50 07c51bbf5
Firmware Version: SM28
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Aug 22 13:17:43 2016 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
See vendor-specific Attribute list for marginal Attributes.
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: ( 139) 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: ( 195) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x10b1) 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 108 099 006 Pre-fail Always - 17519704
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2269
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 069 060 030 Pre-fail Always - 4304794133
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4723
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1834
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 099 000 Old_age Always - 3
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 050 043 045 Old_age Always In_the_past 50 (Min/Max 30/50 #46)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 117
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 4641
194 Temperature_Celsius 0x0022 050 057 000 Old_age Always - 50 (0 5 0 0 0)
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
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 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 without error 00% 2372 -
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.
les pre_fail ça veut dire que mon DD va bientôt lâcher ?
Je passe en résolu.
Hors ligne
#4 Le 22/08/2016, à 14:18
- Bougron
Re : [Résolu] Problème au démarrage : erreur sur une partition
Bonjour
Non les pre-fail ne veulent pas dire que le disque va lâcher
Elles veulent simplement dire que le smartcctl stocke dedans des chiffres qui peuvent signifier que le disque va lâcher
Dans ton contexte tu as
1 Raw_Read_Error_Rate 0x000f 108 099 006 Pre-fail Always - 17519704
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 069 060 030 Pre-fail Always - 4304794133
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
Tu devines qu'une valeur 0 ne signifie pas que le disque lâche mais qu'une valeur de 12 chiffres est très inquiétante.
Or tu as deux compteurs qui sont assez important. J'ai donc voulu en voir un peu plus
SMART Error Log Version: 1
No Errors Logged
Je te conseille quand même de suivre mensuellement cette évolution
Dernière modification par Bougron (Le 22/08/2016, à 14:19)
Hors ligne
#5 Le 22/08/2016, à 17:21
- donlouis
Re : [Résolu] Problème au démarrage : erreur sur une partition
ok merci beaucoup pour ces informations je vais garder un œil dessus et faire un backup.
Hors ligne