Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:disk_check [2019-11-20 Wed wk47 18:24] – baumkp | home_server:home_server_setup:disk_check [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag> | ||
=====fsck - file system check===== | =====fsck - file system check===== | ||
Line 7: | Line 8: | ||
The root file system can not be unmounted and checked. Two possible options to check the system are: | The root file system can not be unmounted and checked. Two possible options to check the system are: | ||
- | *Force the Root Filesystem to use fsck during reboot, The Geek Stuff covers this well in, How to Force Check Root Filesystem using fsck During Reboot. A summary of key commands: | + | *Force the Root Filesystem to use fsck during reboot, The Geek Stuff covers this well in, [[https:// |
- | *The Root file system is automatically checked at certain intervals. To check this: "sudo tune2fs -l /dev/sda1 | grep -i check". | + | *The Root file system is automatically checked at certain intervals. To check this: '' |
*[[http:// | *[[http:// | ||
- | *"cd /" | + | *'' |
- | *"sudo touch forcefsck" | + | *'' |
*Boot the system to a rescue file system. From the rescue file system the main boot drive may then be checked with fsck. (Further details not given.) | *Boot the system to a rescue file system. From the rescue file system the main boot drive may then be checked with fsck. (Further details not given.) | ||
Line 17: | Line 18: | ||
====Some other file system tips:==== | ====Some other file system tips:==== | ||
- | *To check current mounted disks use "df -h" | + | *To check current mounted disks use '' |
- | *To check current disks use "sudo fdisk -l". (This is a disk partition command. Be careful with use.) | + | *To check current disks use '' |
- | *To check current disks use "sudo parted -l". (This is a disk partition command, more modern than fdisk. Be careful with use.) | + | *To check current disks use '' |
- | *To check directory size use "sudo du %%--%%max-depth=1 %%--%%all -h" | + | *To check directory size use '' |
- | *The filesystem boot file is / | + | *The filesystem boot file is / |
- | <- home_server: | + | *To check ext2/3/4 file system information and configuration of a partition '' |
+ | |||
+ | ++++Home Server Index|< | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | *[[home_server: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====Find Information on Hard disks==== | ||
+ | The ‘’lsblk’’ command has a lot of information returned. | ||
+ | The ‘’tune2fs’’ command is used by the system administrator to change/ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | <- home_server: | ||
+ | *'' | ||
+ | *'' | ||
+ | *WWN is a unique identifier ode list on the drive | ||
+ | *HCTL lists the drive sata port | ||
+ | *'' |