How can I perform a check to my USB HD and/or microSD?

Hi guys,
I’d like to check the healt of my USB HD (Linux fs) and if there are problems correct them because it happens to me that I had to unplug the power supply of my Raspy to reboot after a freeze…
How can I check a disk or partition in OSMC/Jessie?

umount the partition (ie. sudo umount /dev/sda1)

to check the drive:

sudo fsck /dev/sdX#

more info here: 10 Linux Fsck Command Examples to Check and Repair Filesystem

Thanks I’ll give a look to the link asap.

Looking in the logger I found:

osmc kernel: FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

what does it means?

It just means the system wasn’t shut down/rebooted correctly and the filesystem is marked as being ‘dirty’. This is common as we Pi users frequently pull their power. Linux doesn’t like that though, so it’s doing a bit of complaining.

Running fsck on the sd card will clear the dirty bit without really having to fix anything most of the time.