Choose style:

Author Topic: File system corruption  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
File system corruption
« on: December 30, 2017, 03:25:10 am »
Hi guys

This morning quite unexpectedly I went to use my PC running PM8 (respin) to find it acting weird ie it wouldn't save a picture file I had scanned the previous evening it was telling me my filesystem was read only and other weird behavior which I recognised because the same thing happened a couple of weeks ago,

when I tried to reboot I was thrown into a busybox shell, I then rebooted again into recovery mode and ran fsck /dev/sdb6  and after fixing a load of errors it rebooted and all is well again.

This is the second time it's happened in the space of 2 weeks and only began after installing the PM8 respin

This is the errors showing booting into recovery mode



this is a screenshot running fsck


The fact this has only started shortly after installing the respin could be completely coincidental but as it's now happened twice in the space of 2 weeks I'm pretty certain it will happen again and I'm not so confident I'll always be able to recover because I don't know if this is a software or hardware error.

as it stands I have the PM8 respin installed alongside the original PM8 I installed a while ago when it was first released so I can simply go back to using that  meantime to see if the error occurs again or should I completely wipe & reformat the drive and reinstall from scratch

any advice would be much appreciated

Many thanks


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1777
  • Karma: 469
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: File system corruption
« Reply #1 on: December 30, 2017, 05:03:42 am »
Hi emegra,

I suggest running the SMART disk analysis tool to see if the drive is failing. Good luck.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: File system corruption
« Reply #2 on: December 30, 2017, 05:16:35 am »
Quote
I suggest running the SMART disk analysis tool to see if the drive is failing. Good luck.

Good idea Slim I never thought of that,

I had to do that a while ago with another drive but I forget exactly how to do it but I'm sure I'll figure it out

This is a fairly new SSD but I know that doesn't mean anything

Thanks for your help

Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: File system corruption
« Reply #3 on: December 30, 2017, 06:21:22 am »
It's a USB attached drive that appears to be having problems .. you have an SSD attached via USB ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: File system corruption
« Reply #4 on: December 30, 2017, 09:41:37 am »
Quote
It's a USB attached drive that appears to be having problems .. you have an SSD attached via USB ?

It's strange you mentioned that because I thought the same thing but I have no USB drives of any kind attached, and the corruption is in sdb6 which is defiantely my main drive which is an SSD connected via SATA

Code: [Select]
graeme@Linux1 ~ $ sudo fdisk -l
[sudo] password for graeme:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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: dos
Disk identifier: 0xfb42e543

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1  *     2048 976773119 976771072 465.8G 83 Linux




Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 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: dos
Disk identifier: 0x8430bac8

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 264890038 264887991 126.3G 83 Linux
/dev/sdb2       264890366 468860927 203970562  97.3G  5 Extended
/dev/sdb5       460509184 468860927   8351744     4G 82 Linux swap / Solaris
/dev/sdb6       264890368 460509183 195618816  93.3G 83 Linux

Partition table entries are not in disk order.



Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: File system corruption
« Reply #5 on: December 30, 2017, 12:59:10 pm »
What have you got connected via USB ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: File system corruption
« Reply #6 on: December 30, 2017, 01:21:19 pm »
Quote
What have you got connected via USB ?

A wireless mouse transmitter, keyboard and a bluetooth dongle, interestingly I've only recently started using the bluetooth dongle

EDIT
sorry the keyboard is PS2


Code: [Select]
graeme@Linux1 ~ $ lsusb
Bus 002 Device 015: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 062a:4101 Creative Labs Wireless Keyboard/Mouse
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
graeme@Linux1 ~ $




Graeme
« Last Edit: December 30, 2017, 01:31:12 pm by emegra »
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: File system corruption
« Reply #7 on: December 30, 2017, 01:27:01 pm »
Do you get those USB errors in
/var/log/dmesg

every time you boot ? .. you can check after a reboot with:
Code: [Select]
dmesg | grep -i usb
And what's the output from:
Code: [Select]
lsusb
« Last Edit: December 30, 2017, 01:28:37 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec