Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_server:home_server_setup:disk_check [2020-01-24 Fri wk04 05:40] – [Checking Root File System] baumkphome_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 format partition boot corrupt parted}}+{{tag>linux fsck format partition boot corrupt parted}}
 =====fsck - file system check===== =====fsck - file system check=====
  
Line 23: Line 23:
   *To check directory size use ''sudo du %%--%%max-depth=1 %%--%%all -h''   *To check directory size use ''sudo du %%--%%max-depth=1 %%--%%all -h''
   *The filesystem boot file is /etc/fstab, ''sudo vim /etc/fstab''. (Be careful with editing this.)   *The filesystem boot file is /etc/fstab, ''sudo vim /etc/fstab''. (Be careful with editing this.)
 +  *To check ext2/3/4 file system information and configuration of a partition ''sudo tune2fs -l /dev/sdX''
  
 ++++Home Server Index|<pagelist&header> ++++Home Server Index|<pagelist&header>
Line 33: Line 34:
 *[[home_server:home_server_setup:other_services:index]] *[[home_server:home_server_setup:other_services:index]]
 </pagelist>++++ </pagelist>++++
 +
 +
 +====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/modify tunable parameters on ext2, ext3 and ext4 type filesystems.  The command to display filesystem information is ‘’tune2fs -l /dev/sda2’’.  The ‘’df’’ command lists current mounted disks.
 +
 +
 +----
  
 <- home_server:home_server_setup:vnc_setup|Prev ^ home_server:home_server_setup:summary|Start page ^ home_server:home_server_setup:other_services:index|Next -> <- home_server:home_server_setup:vnc_setup|Prev ^ home_server:home_server_setup:summary|Start page ^ home_server:home_server_setup:other_services:index|Next ->
 +  *''lsblk'' by itself give the basic drive partition and mount point information.
 +  *''lsblk -o NAME,MODEL,SERIAL,WWN,HCTL,MOUNTPOINT'' gives more comprehensive information: 
 +    *WWN is a unique identifier ode list on the drive
 +    *HCTL lists the drive sata port
 +  *''lsblk --help'' to list all the options