Question
-
- Share
Привет. Есть два вопроса. Первый — О чём говорят данные ошибки при загрузке роутера? Второй — Как исправить?
EXT4-fs (sda2): error count since last fsck: 64
Июн 17 17:29:43 kernel
EXT4-fs (sda2): initial error at time 1533467161: mb_free_blocks:1303: inode 110226: block 233994
Июн 17 17:29:43 kernel
EXT4-fs (sda2): last error at time 1623671029: ext4_mb_generate_buddy:756
- Quote
Link to comment
Share on other sites
Recommended Posts
- 0
-
- Share
1 минуту назад, Mihail_Boyanskiy сказал:
Привет. Есть два вопроса. Первый — О чём говорят данные ошибки при загрузке роутера? Второй — Как исправить?
EXT4-fs (sda2): error count since last fsck: 64
Июн 17 17:29:43 kernel
EXT4-fs (sda2): initial error at time 1533467161: mb_free_blocks:1303: inode 110226: block 233994
Июн 17 17:29:43 kernel
EXT4-fs (sda2): last error at time 1623671029: ext4_mb_generate_buddy:756
У вас подключен жесткий диск или флешка с файловой системой ext4 к роутеру?
- Quote
Link to comment
Share on other sites
- 0
-
- Share
Только что, Mihail_Boyanskiy сказал:
EXT4-fs (sda2): error count since last fsck: 64
Поломался ext4. Нужно прочекать.
Гуглите, к примеру, gparted, оно умеет быть live flash…
Установить любой GNU/Linux не предлагаю.
Link to comment
Share on other sites
- 0
- Author
-
- Share
16 минут назад, Mamay сказал:
Поломался ext4. Нужно прочекать.
Гуглите, к примеру, gparted, оно умеет быть live flash…
Установить любой GNU/Linux не предлагаю.
В том то и дело что я форматировал флешку ещё пару лет назад в ext2, Установил Entware и вот не так давно начала появляться эта проблема.
Не вытаскивая флешку из роутера починить нельзя? Если нет, посоветуйте если это возможно софт под Windows.
- Quote
Link to comment
Share on other sites
- 0
-
- Share
1 минуту назад, Mihail_Boyanskiy сказал:
Не вытаскивая флешку из роутера починить нельзя? Если нет, посоветуйте если это возможно софт под Windows.
Ещё бы знать версию вашей прошивки. ЕМНИП в 2.16 оно есть консольное. А вот в 3.6 не помню, вроде нет.
Я уже вам указал самый короткий путь выше.
- Quote
Link to comment
Share on other sites
- 0
- Author
-
- Share
2 минуты назад, Mamay сказал:
Ещё бы знать версию вашей прошивки. ЕМНИП в 2.16 оно есть консольное. А вот в 3.6 не помню, вроде нет.
Я уже вам указал самый короткий путь выше.
прошивка роутера 3.5.10, entware — Обновлял её в марте сего года, соответственно 3.какая-то.
Путь выше к сожалению не подходит, т.к. всё это находится за пару тыщ КМ от меня.
ОК, на виртуалке есть Ubuntu server 18.04. Подскажите утилиту для диагностики которая будет работать на серверной версии?
- Quote
Link to comment
Share on other sites
- 0
-
- Share
Link to comment
Share on other sites
- 0
- Author
-
- Share
UP. Появился ещё вопрос по данной теме:
При загрузке роутера имеем такие записи:
EXT4-fs (sda2): mounting ext2 file system using the ext4 subsystem
Июн 14 14:43:49 kernel
EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
Это что он рекомендует?
Ну и дальше вот:
Opkg::Manager: /tmp/mnt/e159-f240-b6e3-b521bb97ad2e initialized.
Июн 14 14:43:50 kernel
EXT4-fs error (device sda2): ext4_mb_generate_buddy:756: group 7, block bitmap and bg descriptor inconsistent: 32216 vs 32218 free clusters
И флешка в принципе то работает. Вопрос что за рекомендация выше?
Такое точно началось после обновления прошивки роутера неделю назад до 3.5.10
- Quote
Link to comment
Share on other sites
- 0
-
- Share
20 минут назад, Mihail_Boyanskiy сказал:
EXT4-fs (sda2): mounting ext2 file system using the ext4 subsystem
Июн 14 14:43:49 kernel
EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
Не верная система. Рекомендовано проверить через e2fsck .
Проверьте флешку, как рекомендовали.
Edited June 17, 2021 by AndreBA
Link to comment
Share on other sites
- 0
-
- Share
Link to comment
Share on other sites
Join the conversation
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Well that disk started as sdo:
Oct 14 20:07:28 Brunnhilde kernel: usb-storage 4-2.2:1.0: USB Mass Storage device detected
Oct 14 20:07:28 Brunnhilde kernel: scsi host10: usb-storage 4-2.2:1.0
Oct 14 20:07:29 Brunnhilde kernel: scsi 10:0:0:0: Direct-Access Elite Pro USB 0 PQ: 0 ANSI: 6
Oct 14 20:07:29 Brunnhilde kernel: sd 10:0:0:0: Attached scsi generic sg12 type 0
Oct 14 20:07:29 Brunnhilde kernel: sd 10:0:0:0: [sdo] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
Oct 14 20:07:29 Brunnhilde kernel: sd 10:0:0:0: [sdo] Write Protect is off
Oct 14 20:07:29 Brunnhilde kernel: sd 10:0:0:0: [sdo] Mode Sense: 43 00 00 00
Oct 14 20:07:29 Brunnhilde kernel: sd 10:0:0:0: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Oct 14 20:07:33 Brunnhilde kernel: sdo: sdo1
The it got disconnect and reconnect as sdp:
Oct 14 20:44:23 Brunnhilde kernel: usb 4-2.2: USB disconnect, device number 7
Oct 14 20:44:23 Brunnhilde kernel: blk_update_request: I/O error, dev sdo, sector 0
Oct 14 20:44:23 Brunnhilde kernel: sd 10:0:0:0: [sdo] Synchronizing SCSI cache
Oct 14 20:44:23 Brunnhilde kernel: sd 10:0:0:0: [sdo] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00
Oct 14 20:44:23 Brunnhilde rc.diskinfo[17670]: PHP Warning: Missing argument 2 for force_reload() in /etc/rc.d/rc.diskinfo on line 691
Oct 14 20:44:23 Brunnhilde rc.diskinfo[17670]: SIGHUP received, forcing refresh of disks info.
Oct 14 20:44:23 Brunnhilde kernel: usb 4-2: new SuperSpeed USB device number 8 using xhci_hcd
Oct 14 20:44:23 Brunnhilde kernel: hub 4-2:1.0: USB hub found
Oct 14 20:44:23 Brunnhilde kernel: hub 4-2:1.0: 4 ports detected
Oct 14 20:44:23 Brunnhilde kernel: usb 4-2.2: new SuperSpeed USB device number 9 using xhci_hcd
Oct 14 20:44:23 Brunnhilde kernel: usb-storage 4-2.2:1.0: USB Mass Storage device detected
Oct 14 20:44:23 Brunnhilde kernel: scsi host11: usb-storage 4-2.2:1.0
Oct 14 20:44:24 Brunnhilde rc.diskinfo[17670]: PHP Warning: Missing argument 2 for force_reload() in /etc/rc.d/rc.diskinfo on line 691
Oct 14 20:44:24 Brunnhilde rc.diskinfo[17670]: SIGHUP received, forcing refresh of disks info.
Oct 14 20:44:25 Brunnhilde kernel: scsi 11:0:0:0: Direct-Access Elite Pro USB 0 PQ: 0 ANSI: 6
Oct 14 20:44:25 Brunnhilde kernel: sd 11:0:0:0: Attached scsi generic sg12 type 0
Oct 14 20:44:25 Brunnhilde kernel: sd 11:0:0:0: [sdp] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
Oct 14 20:44:25 Brunnhilde kernel: sd 11:0:0:0: [sdp] Write Protect is off
Oct 14 20:44:25 Brunnhilde kernel: sd 11:0:0:0: [sdp] Mode Sense: 43 00 00 00
Oct 14 20:44:25 Brunnhilde kernel: sd 11:0:0:0: [sdp] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Oct 14 20:44:25 Brunnhilde kernel: sdp: sdp1
Same thing repeatedly happened again and it get’s reconnect with a different letter.
Your log is full of USB disconnects, one of the reasons USB devices are not really recommend.
Edited November 5, 2017 by johnnie.black
I have an 8TiB disk attached via UBS3 and formatted into 3 EXT3 partitions which I use as a backup drive (it’s plugged into a SATA cradle).
The disk has been attached and mounted for several days without being explicitly written to (I backed up some data a couple of days ago).
I happened to take a look at dmesg and spotted the following (this is filtered to show only entries matching the disk name, sdg):
[393945.628890] EXT4-fs (sdg2): error count since last fsck: 4
[393945.628894] EXT4-fs (sdg2): initial error at time 1589268773: ext4_validate_block_bitmap:406
[393945.628897] EXT4-fs (sdg2): last error at time 1589336019: ext4_validate_block_bitmap:406
[394076.698059] EXT4-fs (sdg1): error count since last fsck: 103
[394076.698063] EXT4-fs (sdg1): initial error at time 1589216157: ext4_validate_block_bitmap:406
[394076.698066] EXT4-fs (sdg1): last error at time 1589372294: ext4_lookup:1590: inode 186081476
I’ve not run fsck on this disk since it was partitioned and formatted. Given that fsck has not been run what is finding the errors and how concerned should I be?
When I rebooted the system this morning I checked dmesg again and found (again filtered to show only entries matching sdg)
[ 261.721822] sd 9:0:0:0: [sdg] Spinning up disk...
[ 274.051062] sd 9:0:0:0: [sdg] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[ 274.051065] sd 9:0:0:0: [sdg] 4096-byte physical blocks
[ 274.051137] sd 9:0:0:0: [sdg] Write Protect is off
[ 274.051140] sd 9:0:0:0: [sdg] Mode Sense: 43 00 00 00
[ 274.051297] sd 9:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 274.051498] sd 9:0:0:0: [sdg] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 274.134309] sdg: sdg1 sdg2 sdg3
[ 274.135296] sd 9:0:0:0: [sdg] Attached SCSI disk
[ 274.654835] EXT4-fs (sdg3): mounting ext3 file system using the ext4 subsystem
[ 274.696860] EXT4-fs (sdg3): warning: mounting fs with errors, running e2fsck is recommended
[ 274.766709] EXT4-fs (sdg1): mounting ext3 file system using the ext4 subsystem
[ 274.795109] EXT4-fs (sdg1): warning: mounting fs with errors, running e2fsck is recommended
[ 274.825210] EXT4-fs (sdg2): mounting ext3 file system using the ext4 subsystem
[ 274.891191] EXT4-fs (sdg2): warning: mounting fs with errors, running e2fsck is recommended
[ 275.713323] EXT4-fs (sdg2): mounted filesystem with ordered data mode. Opts: (null)
[ 276.460528] EXT4-fs (sdg3): mounted filesystem with ordered data mode. Opts: (null)
[ 276.499085] EXT4-fs (sdg1): mounted filesystem with ordered data mode. Opts: (null)
[ 578.549827] EXT4-fs (sdg1): error count since last fsck: 103
[ 578.549830] EXT4-fs (sdg1): initial error at time 1589216157: ext4_validate_block_bitmap:406
[ 578.549832] EXT4-fs (sdg1): last error at time 1589372294: ext4_lookup:1590: inode 186081476
[ 578.549836] EXT4-fs (sdg3): error count since last fsck: 47
[ 578.549837] EXT4-fs (sdg3): initial error at time 1589268525: htree_dirblock_to_tree:1022: inode 31604737: block 126419458
[ 578.549840] EXT4-fs (sdg3): last error at time 1589380312: ext4_lookup:1594: inode 33701921
[ 578.549844] EXT4-fs (sdg2): error count since last fsck: 4
[ 578.549845] EXT4-fs (sdg2): initial error at time 1589268773: ext4_validate_block_bitmap:406
[ 578.549847] EXT4-fs (sdg2): last error at time 1589336019: ext4_validate_block_bitmap:406
[ 639.938843] EXT4-fs (sdg1): mounting ext3 file system using the ext4 subsystem
[ 640.950738] EXT4-fs (sdg1): mounted filesystem with ordered data mode. Opts: (null)
[ 650.900006] EXT4-fs (sdg2): mounting ext3 file system using the ext4 subsystem
[ 651.207658] EXT4-fs (sdg2): mounted filesystem with ordered data mode. Opts: (null)
[ 658.836040] EXT4-fs (sdg3): mounting ext3 file system using the ext4 subsystem
[ 659.084558] EXT4-fs (sdg3): mounted filesystem with ordered data mode. Opts: (null)
So the system knows there are errors and has still mounted the disk without displaying any warnings other than the entries in dmesg.
Roughly 30 minutes later I checked again because I was curious now and found:
[ 955.353027] EXT4-fs (sdg2): error count since last fsck: 3248
[ 955.353031] EXT4-fs (sdg2): initial error at time 1589268773: ext4_validate_block_bitmap:406
[ 955.353033] EXT4-fs (sdg2): last error at time 1589437923: ext4_map_blocks:604: inode 103686210: block 1947002998
[ 955.353039] EXT4-fs (sdg1): error count since last fsck: 103
[ 955.353040] EXT4-fs (sdg1): initial error at time 1589216157: ext4_validate_block_bitmap:406
[ 955.353042] EXT4-fs (sdg1): last error at time 1589372294: ext4_lookup:1590: inode 186081476
[ 956.751484] EXT4-fs error (device sdg2): ext4_map_blocks:604: inode #103686210: block 1947002998: comm updatedb.mlocat: lblock 12 mapped to illegal pblock 1947002998 (length 1)
[ 956.767496] EXT4-fs error (device sdg2): ext4_map_blocks:604: inode #103686210: block 1947002998: comm updatedb.mlocat: lblock 12 mapped to illegal pblock 1947002998 (length 1)
[ 956.782683] EXT4-fs warning (device sdg2): htree_dirblock_to_tree:994: inode #103686210: lblock 12: comm updatedb.mlocat: error -117 reading directory block
Eeek! The error count has increased for sdg2!
Again I’ve not explicitly written to the disk all this time.
Before partitioning & formatting the drive with gparted I used fsck to run a bad block scan (took several days) and no errors were found. This is also a new disk. For this reason, I’m reasonably confident that the hardware is good.
What is possibly going on here? How worried should I be about the integrity of filesystems on this disk? What should my next steps be?
Hi kind people,
First of all: I do not have physical access to the pi. just ssh.
The problem:
I have a Pi 3b+ booting form an 1tb usb hdd with stretch.
Someone there unplugged the power and the Pi was gone for some days. Now its back online but i found some kernel messages at kern.log:
Jul 8 06:25:51 kernel: [56256.560073] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517646
Jul 8 06:25:51kernel: [56256.575081] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517644
Jul 8 06:25:51 kernel: [56256.586311] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517648
Jul 8 06:25:54 kernel: [56259.776821] EXT4-fs error (device sda2): ext4_lookup:1578: inode #37191: comm updatedb.mlocat: deleted inode referenced: 1517629
Jul 9 06:25:03 kernel: [142608.634548] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517646
Jul 9 06:25:03 kernel: [142608.656301] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517644
Jul 9 06:25:03 kernel: [142608.667414] EXT4-fs error (device sda2): ext4_lookup:1578: inode #1516286: comm updatedb.mlocat: deleted inode referenced: 1517648
Jul 9 06:25:03 kernel: [142608.898870] EXT4-fs error (device sda2): ext4_lookup:1578: inode #37191: comm updatedb.mlocat: deleted inode referenced: 1517629
Jul 9 06:56:14 kernel: [144479.464526] EXT4-fs (sda2): error count since last fsck: 8
Jul 9 06:56:14 kernel: [144479.464535] EXT4-fs (sda2): initial error at time 1562559951: ext4_lookup:1578: inode 1516286
Jul 9 06:56:14 kernel: [144479.464545] EXT4-fs (sda2): last error at time 1562646303: ext4_lookup:1578: inode 37191
I have no idea why its back online (if it was doing something while booting or someone attached power to it again).
Whats the best practice now?
Internet says running fsck at sda2 is a bad idea because its mounted as /.
Adding fsck.mode=force to cmdline.txt is suggested but the official docs doesn’t say anything about this parameter.
I asked at the chat and someone said since its not documented he would run fsck even if the partition is mounted. But im not feeling good with it, to be honest. So im asking for some help here.
My current cmdline.txt is the following:
Code: Select all
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=0862402d-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait ipv6.disable=1
Thank you in advance!
Thanks. I tried that but I’m still getting the same error.
Nov 13 09:54:49 pve kernel: EXT4-fs (dm-9): warning: mounting fs with errors, running e2fsck is recommended
Nov 13 09:54:49 pve kernel: EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null)
…
Nov 13 09:59:49 pve kernel: EXT4-fs (dm-9): error count since last fsck: 4
Nov 13 09:59:49 pve kernel: EXT4-fs (dm-9): initial error at time 1478905387: ext4_journal_check_start:56
Nov 13 09:59:49 pve kernel: EXT4-fs (dm-9): last error at time 1478908776: ext4_put_super:813
It’s a pretty new SSD drive, not that that means anything…
root@pve:~# fdisk -l
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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
Disklabel type: gpt
Disk identifier: F6E39634-6FBF-4BCE-ADDD-F30AB03DA489
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 262143 260096 127M EFI System
/dev/sda3 262144 250069646 249807503 119.1G Linux LVM
Disk /dev/mapper/pve-root: 29.8 GiB, 31943819264 bytes, 62390272 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 /dev/mapper/pve-swap: 7 GiB, 7516192768 bytes, 14680064 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 /dev/mapper/pve-vm—100—state—Oct_2016: 4.5 GiB, 4819255296 bytes, 9412608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm—100—state—Nov_2016: 4.5 GiB, 4819255296 bytes, 9412608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm—102—disk—1: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm—101—disk—1: 18 GiB, 19327352832 bytes, 37748736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm—103—disk—1: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm—100—disk—1: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x0002290a
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm—100—disk—1p1 * 2048 718848 716801 350M 83 Linux
/dev/mapper/pve-vm—100—disk—1p2 718849 4913152 4194304 2G 82 Linux swap / Solaris
/dev/mapper/pve-vm—100—disk—1p3 4913153 7010304 2097152 1G 83 Linux
/dev/mapper/pve-vm—100—disk—1p4 7010305 67108863 60098559 28.7G f W95 Ext’d (LBA)
/dev/mapper/pve-vm—100—disk—1p5 7010306 27076608 20066303 9.6G 83 Linux
/dev/mapper/pve-vm—100—disk—1p6 27076610 38340608 11263999 5.4G 83 Linux
/dev/mapper/pve-vm—100—disk—1p7 38340610 64704512 26363903 12.6G 83 Linux
/dev/mapper/pve-vm—100—disk—1p8 64704514 66648064 1943551 949M 83 Linux
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition 5 does not start on physical sector boundary.
Partition 6 does not start on physical sector boundary.
Partition 7 does not start on physical sector boundary.
Partition 8 does not start on physical sector boundary.
Partition 9 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm—100—state—Nov_2016_2: 4.5 GiB, 4819255296 bytes, 9412608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Guru
Joined: 06 Dec 2005
Posts: 446
|
||||||
|
||||||
I’ve been getting these errors everyone so often:
and earlier:
Is this a sign of a bad disk? A bad motherboard? Something else? This is in a quite-old (it has a Core 2 Duo) laptop with an about 6 year old SSD in it. Any suggestions about how to proceed would be helpful. |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
||
|
||
Nicias,
Maybe all of these things, maybe none of them. What other errors are there in dmesg? The output of
would be useful. Don’t run fsck unless you have a known good set of backups. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
||
|
||
got a ton of new errors in the last day:
https://pastebin.com/s7KVxKmR but SMART looks fine.
|
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
There are no underlying drive errors in dmesg nor in smartclt. Try fsck but be warned that all it does it make the filesystem metadata self consistent. It may trash your user data in the process of fixing the metadata. You cannot fsck a mounted partition. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
I have done fsck as recently as a couple of weeks ago. (from a sysrescuecd usb)
This is just the system drive, it has no actual data on it, so I’m not worried about data loss. I’d clobber the whole thing and do a reinstall except for the time that would take. I’ll wipe the disk and reinstall from the last backup. Why would these errors keep popping up? |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
Unclean shutdows, PSU problems of some sort. Maybe even RAM issues. Its worth a few cycles of memtest86. Be aware that memtest86 uses most of the rest of the system, so not all errors reported by memtest are due to RAM. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
Memtest ran for 24 hours and found no errors.
fsck found a ton of errors on sda3. sdb1 had no errors. sda is an internal sata ssd. sdb1 is externally (usb) attached spinning rust. Any suggestions? Bad drive? Bad motherboard/controler? |
Watchman
Joined: 18 Apr 2009
Posts: 6920
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
||
|
||
Nicias,
Bad SSD firmware ? There is one famous example where LBA 0 (the boot sector) would be trimmed, making the system impossible to boot. — edit — Hmm …
NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
I don’t have trim or discard set.
So it seems like maybe I should get a new drive :/ |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
||||
|
||||
Nicias,
I wouldn’t go that far yet. You have
Is there a newer firmware? This tool may help. Its probably Windows only. In increasing order of risk. Very last — update the drive firmware, if there is an update. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
The backup is file-level not file-system level. Doesn’t that mean that if it is an accurate copy of a bad file-system that it will just have files that are screwed up, not a corrupted file-system?
So if I reformat the drive, recreate the file system and restore from backup then I might just have some bad files, not a bad file-system. In that case would doing a emerge -e world (and recompile the kernel) fix those files? |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
That’s correct. You run the risk that something important like glibc is broken, so you won’t be able to boot, or something in the toolchain is broken, so you won’t be able to build packages. You would have noticed both of those particular examples already though but you get the idea. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
Good luck! NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
So far everything is running smoothly.
Reformatted and reinstalled from backup, then rebuilt toolchain, kernel, and world. Now doing the gcc upgrade for PIE (and world rebuild) no fs errors yet. When this world rebuild is done I’ll reboot to a live usb to check for fs errors. In terms of trim/discard, it seems like best practice is to do that via a cron job. Is this correct? |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
There are divided opinions on the use of trim/discard. Beware that some drives take a long time to become ready after a fstrim. Personally, I have the discard option in /etc/fstab but only the installed system is on the SSD. NeddySeagoon Computer users fall into two groups:- |
Guru
Joined: 06 Dec 2005
Posts: 446
|
|
|
|
NeddySeagoon,
There is not data on the SSD here either, so I put a daily fstrim cron job. Thanks for all of your help. After it finished emerging, I restarted from a thumb drive. Checked the filesystems, no errors. Hopefully this fixes it. -Nick |
Administrator
Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W
|
|
|
|
Nicias,
We don’t know what happened, so cannot take any steps to stop it happening again. All you can do is to watch for the errors recurring. NeddySeagoon Computer users fall into two groups:- |
Watchman
Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana
Guru
Joined: 06 Dec 2005
Posts: 446
Guru
Joined: 06 Dec 2005
Posts: 446
Display posts from previous: