Question

i need with this linux: how do i do the following? Create a partition named /dev/sdf1...

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.

Homework Answers

Answer #1

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 /

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
I need to create a UNIX program for this assignment In this assignment, you are to...
I need to create a UNIX program for this assignment In this assignment, you are to create an "archive" utility. It is a simple way to have some version control. You've created software projects before that change and grow over time. You might have several different copies of it (let's assume that it's all in one file). Perhaps before making major changes, you make a back-up copy, in case you later decide to revert to the earlier version. The idea...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will use the tar utility to create, view, and extract a tar archive and use it options to name the tar file and view files as they are being archived and extracted. 1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory. 2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory...
I need the actual code for this... I found a similar response but it was not...
I need the actual code for this... I found a similar response but it was not thorough enough. Problem Prerequisites: None Suppose that a scientist is doing some important research work that requires her to use rabbits in her experiments. She starts out with one adult male rabbit and one adult female rabbit. At the end of each month, a pair of adult rabbits produces one pair of offspring, a male and a female. These new offspring will take one...
Hey i just read your comment and you just need to answer do you agree or...
Hey i just read your comment and you just need to answer do you agree or disagree with ir and explain My Teacher gave this answer and we need to response this answer You need to response this answer why you agree with it or why you disagree and explain You have Two Answer you need to response on your own word Reactions may include: feedback, agreements, disagreements, etc. with supporting facts, material, citations, etc. to support your reaction (or...
**[70 pts]** You will be writing a (rather primitive) online store simulator. It will have these...
**[70 pts]** You will be writing a (rather primitive) online store simulator. It will have these classes: Product, Customer, and Store. All data members of each class should be marked as **private** (a leading underscore in the name). Since they're private, if you need to access them from outside the class, you should do so via get or set methods. Any get or set methods should be named per the usual convention ("get_" or "set_" followed by the name of...
Assignment Statement Use the skeleton file starter code (below) to create the following classes using inheritance:...
Assignment Statement Use the skeleton file starter code (below) to create the following classes using inheritance: ⦁   A base class called Pet ⦁   A mix-in class called Jumper ⦁   A Dog class and a Cat class that each inherit from Pet and jumper ⦁   Two classes that inherit from Dog: BigDog and SmallDog ⦁   One classes that inherit from Cat: HouseCat The general skeleton of the Pet, Dog, and BigDog classes will be given to you (see below, "Skeleton", but...
This assignment involves using a binary search tree (BST) to keep track of all words in...
This assignment involves using a binary search tree (BST) to keep track of all words in a text document. It produces a cross-reference, or a concordance. This is very much like assignment 4, except that you must use a different data structure. You may use some of the code you wrote for that assignment, such as input parsing, for this one. Remember that in a binary search tree, the value to the left of the root is less than the...
How do I solve this? Need to show work. Questions: #1 - #3: A small factory...
How do I solve this? Need to show work. Questions: #1 - #3: A small factory that makes electrical components is considering a project which might generate future cash flows as follows.  The company will make a decision whether they will undertake this project based on the Net Present Value analysis/Payback period/IRR method. Project: Initial investment = $100 million Net cash flows   Year 1             Year 2              Year 3              Year 4   ($million)                 34                30                           40                             36                           1. What is the payback period of this project?  If the hurdle period for the...
Description The word bank system maintains all words in a text file named words.txt. Each line...
Description The word bank system maintains all words in a text file named words.txt. Each line in the text file stores a word while all words are kept in an ascending order. You may assume that the word length is less than 20. The system should support the following three functions: Word lookup: to check whether a given word exists in the word bank. Word insertion: to insert a new word into the word bank. No insertion should be made...