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
  • Linux File Ownership, ACLs, and I/O Redirects : File Ownership chown → Change ownership chgrp → Change group Access Control List (ACL) setfacl → Set file ACL getfacl → Get file ACL Add Permissi...
  • Share folder (NFS and Samba) : NFS → Network File System Share folder NFS Server dnf install nfs-utils libnfsidmap systemctl enable rpcbind systemctl enable nfs-server ...
  • 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...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...
  • Basic File Commands / File Search Commands : touch one two three → Create 3 files mkdir folder → Make directory mv -R / cp -R → Move or copy folder including subfolders find . -name "geor...


(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