Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 5 - 7 ESTIMATED TIME: 2 0 minutes OBJECTIVE: Create and manage XFS filesystems. DESCRIPTION: In this hands - on project, you create a

Project 5-7
ESTIMATED TIME: 20 minutes
OBJECTIVE: Create and manage XFS filesystems.
DESCRIPTION: In this hands-on project, you create a new partition using the cfdisk utility, format and check an XFS filesystem on that partition, as well as mount the filesystem using a GUID at boot time.
1
Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.
2
At the command prompt, type cfdisk device and press Enter where device is the block device file from Step 2 of Hands-On Project 5-3(e.g.,/dev/sda). Highlight the Free space within the cfdisk utility and select New. Specify a partition size of 2G and press Enter. Note the device file for your new partition.
3
Select Write to save your changes; type yes and press Enter when prompted to confirm. Next, select Quit to save your changes and exit the cfdisk utility.
4
At the command prompt, type partprobe and press Enter.
5
At the command prompt, type mkfs -t xfs device and press Enter, where device is the device file for the partition you created in Step 2. Next, type mkdir /xfsmount and press Enter to create a mount point directory for your filesystem. Following this, type mount device /xfsmount and press Enter, where device is the device file for the partition you created in Step 2.
6
At the command prompt, type df -hT and press Enter to verify that your XFS filesystem was mounted successfully. Next, type ls /xfsmount and press Enter. Why is there no lost+found directory?
7
At the command prompt, type umount /xfsmount and press Enter. Next, type fsck -f device and press Enter, where device is the device file for the partition you created in Step 2. Why did you receive an error? Following this, type xfs_repair device and press Enter, where device is the device file for the partition you created in Step 2.
8
At the command prompt, type blkid and press Enter. Record the UUID of your XFS filesystem: ___________________________.
9
At the command prompt, type vi /etc/fstab and press Enter. Add the following line to the bottom of the file, where filesystemUUID is the UUID that you recorded in the previous step:
UUID="filesystemUUID" /xfsmount xfs defaults 00
10
Save your changes and quit the vi editor.
11
At the command prompt, type reboot and press Enter to reboot your machine and ensure that the partition table was read into memory correctly. After your Linux system has been loaded, switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.
12
At the command prompt, type df -hT and press Enter. Is your XFS filesystem mounted?
13
Type exit and press Enter to log out of your shell.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions