Sunday, April 18, 2021

Format Disk in Linux

 snap-9df717f4 US Census 1980

-------------------------------

lsblk

df -h

cat /etc/fstab

fdisk -l


https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

--------------------------------

mount 


available/in-use - Status of Volumes



If Snapshot is Encrypted, Volume is also Encrypted

If Snapshot is not-Encrypted, Volume is also unEncrypted


Shred Command


https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html


shred -u filename

shred overrides a File's Value and then removes it - so Restore from Recycle Bin does not happen


[ec2-user ~]$ sudo file -s /dev/xvdf

/dev/xvdf: data


Create a file system on the volume - [Conditional Step]

sudo mkfs -t xfs /dev/xvdf


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass