Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Filesystem check and disk cloning/shaare/Utyg1Q

  • linux
  • linux

fsck & xfs_repair → filesystem check

  • fsck → ext2, ext3, ext4

  • xfs_repair → xfs only

  • Made each boot & fix it

  • df -T → check

    • Unmount before fsck

fsck error code

  • 0 → no error

  • 1 → error corrected

  • 2 → reboot needed

  • 4 → some error left uncorrected

  • 8 → operational error

  • -f → force

  • -y → repair automatically

  • fsck /dev/sdb

  • umount /bigdata

  • xfs_repair /dev/mapper/stratis...


dd → disk cloning

  • dd if=<sourcefilename> of=<targetfilename>

  • dd if=/dev/sda1 of=/root/sda1.img

    • Backup copy disk partition
  • dd if=/root/sda1.img of=/dev/sdb3

    • Restore
2 months ago Permalink
cluster icon
  • Special Permissions (SetUID, SetGID, Sticky Bit) : chmod u+s xyz.sh → add SetUID (user-level special permission) chmod g+s xyz.sh → add SetGID (group-level special permission) chmod u-s xyz.sh → remov...
  • Process monitoring : ps Command ps → Current shell process status ps -e → All running processes ps aux → All in BSD style with details ps -ef → Running process with detai...
  • SSH and DNS : SSH ps -ef | grep sshd → check ssh systemctl status sshd DNS PTR record → IP to hostname A record → hostname to IP CNAME record → hostname to...
  • Computer Storage / Disk Partition : Computer Storage Local → RAM / HDD / SSD DAS (Direct Attached Storage) USB HDD / DVD SAN (Storage Area Network) through iSCSI cable or fiber ...
  • System information, root recovery, environment variables, shortcuts : Finding System Information cat /etc/redhat-release → Red Hat version uname -a → Linux hostname, kernel, architecture dmidecode → hardware, BIOS, syst...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community