i need with this linux: how do i do the following?
Create a partition named /dev/sdf1 that uses all the available space on /dev/sdf. Format the partition with the xfs file system. Check your work using the file -s /dev/sdf1command.
Mount /dev/sdf1 at /mnt/duplicate
Use the xfsdump utility to make a backup of your root file system. Store the backup in the file /mnt/tape/backup.
To partition, we need to specify the partitioning standard we want to use. GPT is the most modern standard. To choose GPT standard , type following command,
$sudo parted /dev/sdf mklabel gpt
Once the format is selected, create a partition spanning the entire drive,
$sudo parted -a opt /dev/sdf mkpart /dev/sdf1 ext4 0% 100%
To check the new portion , type following command
$lsblk
To format the partition with xfs file system, type following command,
mkfs.xfs /dev/sdf1
To mount the newly created partition, you will have to first create the directory to be a mount point.
Type following commands
mkdir /mnt/duplicate
mount /dev/sdf1 /mnt/duplicate
mount | grep /dev/sdf1
The following command is used to make the backup of your root file system
xfsdump -l 0 -L "Backup level 0 " -f /mnt/tape/backup
To restore the backup
xfsrestore -f /mnt/tape/backup /
Get Answers For Free
Most questions answered within 1 hours.