Hi

Does 8.0.0 have the ability to do fsck at boot? Or even badblocks?

After the flaky problems I'd had a few weeks ago, my LMS PCP finally
died yesterday and so I installed an Ubuntu VM so I could finally check
the sd card.


Code:
--------------------
    
  sudo fsck -fv /dev/sdc2
  fsck from util-linux 2.34
  e2fsck 1.45.5 (07-Jan-2020)
  Pass 1: Checking inodes, blocks, and sizes
  Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes
  Inode 524747 was part of the orphaned inode list.  FIXED.
  Inode 524748 was part of the orphaned inode list.  FIXED.
  Inode 524749 was part of the orphaned inode list.  FIXED.
  Inode 524750 was part of the orphaned inode list.  FIXED.
  Inode 524751 was part of the orphaned inode list.  FIXED.
  Inode 524752 was part of the orphaned inode list.  FIXED.
  Inode 524753 was part of the orphaned inode list.  FIXED.
  Inode 524754 was part of the orphaned inode list.  FIXED.
  Inode 524755 was part of the orphaned inode list.  FIXED.
  Inode 524756 was part of the orphaned inode list.  FIXED.
  Inode 524757 was part of the orphaned inode list.  FIXED.
  Inode 524758 was part of the orphaned inode list.  FIXED.
  Inode 524759 was part of the orphaned inode list.  FIXED.
  Inode 524760 was part of the orphaned inode list.  FIXED.
  Inode 524761 was part of the orphaned inode list.  FIXED.
  Inode 524762 was part of the orphaned inode list.  FIXED.
  Inode 524763 was part of the orphaned inode list.  FIXED.
  Inode 524764 was part of the orphaned inode list.  FIXED.
  Inode 524765 was part of the orphaned inode list.  FIXED.
  Inode 524766 was part of the orphaned inode list.  FIXED.
  Inode 524767 was part of the orphaned inode list.  FIXED.
  Inode 524768 was part of the orphaned inode list.  FIXED.
  Inode 524769 was part of the orphaned inode list.  FIXED.
  Inode 524770 was part of the orphaned inode list.  FIXED.
  Inode 524771 was part of the orphaned inode list.  FIXED.
  Inode 524772 was part of the orphaned inode list.  FIXED.
  Inode 524773 was part of the orphaned inode list.  FIXED.
  Inode 524774 was part of the orphaned inode list.  FIXED.
  Inode 524775 was part of the orphaned inode list.  FIXED.
  Inode 524776 was part of the orphaned inode list.  FIXED.
  Inode 524777 was part of the orphaned inode list.  FIXED.
  Inode 524778 was part of the orphaned inode list.  FIXED.
  Inode 524779 was part of the orphaned inode list.  FIXED.
  Inode 524780 was part of the orphaned inode list.  FIXED.
  Inode 524781 was part of the orphaned inode list.  FIXED.
  Inode 524782 was part of the orphaned inode list.  FIXED.
  Inode 524783 was part of the orphaned inode list.  FIXED.
  Inode 524784 was part of the orphaned inode list.  FIXED.
  Inode 524785 was part of the orphaned inode list.  FIXED.
  Inode 524786 was part of the orphaned inode list.  FIXED.
  Inode 524787 was part of the orphaned inode list.  FIXED.
  Inode 524788 was part of the orphaned inode list.  FIXED.
  Inode 524789 was part of the orphaned inode list.  FIXED.
  Inode 524790 was part of the orphaned inode list.  FIXED.
  Inode 524791 was part of the orphaned inode list.  FIXED.
  Inode 524792 was part of the orphaned inode list.  FIXED.
  Inode 524793 was part of the orphaned inode list.  FIXED.
  Inode 524794 was part of the orphaned inode list.  FIXED.
  Inode 524795 was part of the orphaned inode list.  FIXED.
  Inode 524796 was part of the orphaned inode list.  FIXED.
  Inode 524797 was part of the orphaned inode list.  FIXED.
  Inode 524798 was part of the orphaned inode list.  FIXED.
  Inode 524799 was part of the orphaned inode list.  FIXED.
  Inode 524800 was part of the orphaned inode list.  FIXED.
  Inode 524801 was part of the orphaned inode list.  FIXED.
  Inode 524802 was part of the orphaned inode list.  FIXED.
  Inode 524803 was part of the orphaned inode list.  FIXED.
  Inode 524804 was part of the orphaned inode list.  FIXED.
  Inode 524805 was part of the orphaned inode list.  FIXED.
  Inode 524806 was part of the orphaned inode list.  FIXED.
  Inode 524807 was part of the orphaned inode list.  FIXED.
  Inode 524808 was part of the orphaned inode list.  FIXED.
  Inode 524809 was part of the orphaned inode list.  FIXED.
  Inode 524810 was part of the orphaned inode list.  FIXED.
  Inode 524811 was part of the orphaned inode list.  FIXED.
  Inode 524812 was part of the orphaned inode list.  FIXED.
  Inode 524813 was part of the orphaned inode list.  FIXED.
  Inode 524814 was part of the orphaned inode list.  FIXED.
  Inode 524815 was part of the orphaned inode list.  FIXED.
  Inode 524816 was part of the orphaned inode list.  FIXED.
  Inode 524817 was part of the orphaned inode list.  FIXED.
  Inode 524818 was part of the orphaned inode list.  FIXED.
  Inode 524819 was part of the orphaned inode list.  FIXED.
  Pass 2: Checking directory structure
  Pass 3: Checking directory connectivity
  /lost+found not found.  Create<y>? yes
  Pass 4: Checking reference counts
  Pass 5: Checking group summary information
  
  PCP_ROOT: ***** FILESYSTEM WAS MODIFIED *****
  
  5837 inodes used (0.15%, out of 3899392)
  17 non-contiguous files (0.3%)
  3 non-contiguous directories (0.1%)
  # of inodes with ind/dind/tind blocks: 0/0/0
  Extent depth histogram: 5820/8
  788944 blocks used (10.15%, out of 7773184)
  0 bad blocks
  1 large file
  
  5585 regular files
  242 directories
  0 character device files
  0 block device files
  0 fifos
  0 links
  0 symbolic links (0 fast symbolic links)
  0 sockets
  ------------
  5827 files
  
--------------------


But then I thought there may be an issue with the card itself so I found
the linux equivalent of chkdsk /r :

sudo badblocks -v /dev/sdc2
Checking blocks 0 to 31092735
Checking for bad blocks (read-only test): done                          

Pass completed, 0 bad blocks found. (0/0/0 errors)

After all that it complained at boot:
[   83.647774] FAT-fs (mmcblk0p1): Volume was not properly unmounted.
Some data may be corrupt. Please run fsck.

I couldn't get fsck to work but then I realised that being FAT I could
use good old chkdsk from Windows and then it was fine, and everything
seems to be working again.

Is badblocks or similar available via PCP? It'd be really handy to do
all the sd-card diag stuff from PCP without having to pull the card and
use two different OS.


------------------------------------------------------------------------
mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044
View this thread: http://forums.slimdevices.com/showthread.php?t=114828

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to