Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 5 - 3 ESTIMATED TIME: 4 5 minutes OBJECTIVE: Create partitions and ext 4 filesystems. DESCRIPTION: In this hands - on project, you work
Project ESTIMATED TIME: minutes OBJECTIVE: Create partitions and ext filesystems. DESCRIPTION: In this handson project, you work with partitions. You will first create a partition using the fdisk utility. Next, you create an ext filesystem on the partition and mount it to the directory tree. Finally, you use the etcfstab file to automatically mount the partition at boot time. Switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!. At the command prompt, type lsblk and press Enter. Note the storage device file that holds the partitions that you created during Fedora installation. Also note the partitions under this storage device. At the command prompt, type fdisk device and press Enter, where device is the storage device file from Step egdevsda At the fdisk prompt, type m and press Enter to view the various fdisk commands. At the fdisk prompt, type p and press Enter to view the partition table on your storage device. Do the partitions match the output from Step Note whether your storage device uses an MBR or GPT If your storage device uses an MBR perform the following. Otherwise, proceed to Step At the fdisk prompt, type n and press Enter to create a new partition. Type e to select an extended partition and press Enter. When prompted for the start sector, observe the valid range within the brackets and press Enter to select the default the first available sector When prompted for the end cylinder, observe the valid range within the brackets and press Enter to select the default the last available sector Type p and press Enter to view the partition table on your storage device, noting the new extended partition and the device file it uses. At the fdisk prompt, type n and press Enter to create a new partition. If your storage device uses an MBR you may be prompted to create a logical drive or primary partition if there are primary partitions available for use; in this case, type l to create a logical drive. Otherwise, when prompted for the start sector, observe the valid range within the brackets and press Enter to select the default the first available sector When prompted for the end cylinder, type GB and press Enter. At the fdisk prompt, type p and press Enter to view the partition table on your storage device. Note the partitions present and the device file for the GB partition that you created in Step At the fdisk prompt, type l and press Enter to view the different partition types and press q when finished. Which character would you type at the fdisk prompt to change the type of partition? At the fdisk prompt, type w and press Enter to save the changes to the storage device and exit the fdisk utility. At the command prompt, type partprobe and press Enter. At the command prompt, type mkfs t ext device and press Enter where device is the partition device file from Step egdevsda At the command prompt, type mkdir newmount and press Enter. At the command prompt, type mount t ext device newmount and press Enter where device is the partition device file from Step egdevsda Next, type the df hT command and press Enter to verify that the filesystem was mounted correctly. At the command prompt, type ls F newmount and press Enter. Is the lostfound directory present? Next, type cp etchosts newmount at the command prompt and press Enter to copy the hosts file to the new partition. Verify that the copy was successful by typing the ls F newmount command at the command prompt again, and press Enter. At the command prompt, type umount newmount and press Enter. Next, type the df hT command and press Enter to verify that the filesystem was unmounted correctly. At the command prompt, type vi etcfstab and press Enter. Observe the contents of the file. Add a line to the bottom of the file as follows where device is the partition device file from Step : device newmount ext defaults Save your changes and quit the vi editor. At the command prompt, type reboot and press Enter. After your Linux system has been loaded, switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!. At the command prompt, type df hT and press Enter. Is your new filesystem mounted? At the command prompt, type umount newmount and press Enter. Next, type the df hT command to verify that the filesystem was unmounted correctly. At the command prompt, type mount a and press Enter. Next, type the df hT command and press Enter. Is your new filesystem mounted again to newmount Why? Type exit and press Enter to log out of your shell.
Project
ESTIMATED TIME: minutes
OBJECTIVE: Create partitions and ext filesystems.
DESCRIPTION: In this handson project, you work with partitions. You will first create a partition using the fdisk utility. Next, you create an ext filesystem on the partition and mount it to the directory tree. Finally, you use the etcfstab file to automatically mount the partition at boot time.
Switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!.
At the command prompt, type lsblk and press Enter. Note the storage device file that holds the partitions that you created during Fedora installation. Also note the partitions under this storage device.
At the command prompt, type fdisk device and press Enter, where device is the storage device file from Step egdevsda At the fdisk prompt, type m and press Enter to view the various fdisk commands.
At the fdisk prompt, type p and press Enter to view the partition table on your storage device. Do the partitions match the output from Step Note whether your storage device uses an MBR or GPT
If your storage device uses an MBR perform the following. Otherwise, proceed to Step
At the fdisk prompt, type n and press Enter to create a new partition.
Type e to select an extended partition and press Enter. When prompted for the start sector, observe the valid range within the brackets and press Enter to select the default the first available sector When prompted for the end cylinder, observe the valid range within the brackets and press Enter to select the default the last available sector
Type p and press Enter to view the partition table on your storage device, noting the new extended partition and the device file it uses.
At the fdisk prompt, type n and press Enter to create a new partition. If your storage device uses an MBR you may be prompted to create a logical drive or primary partition if there are primary partitions available for use; in this case, type l to create a logical drive. Otherwise, when prompted for the start sector, observe the valid range within the brackets and press Enter to select the default the first available sector When prompted for the end cylinder, type GB and press Enter.
At the fdisk prompt, type p and press Enter to view the partition table on your storage device. Note the partitions present and the device file for the GB partition that you created in Step
At the fdisk prompt, type l and press Enter to view the different partition types and press q when finished. Which character would you type at the fdisk prompt to change the type of partition?
At the fdisk prompt, type w and press Enter to save the changes to the storage device and exit the fdisk utility.
At the command prompt, type partprobe and press Enter.
At the command prompt, type mkfs t ext device and press Enter where device is the partition device file from Step egdevsda
At the command prompt, type mkdir newmount and press Enter.
At the command prompt, type mount t ext device newmount and press Enter where device is the partition device file from Step egdevsda Next, type the df hT command and press Enter to verify that the filesystem was mounted correctly.
At the command prompt, type ls F newmount and press Enter. Is the lostfound directory present? Next, type cp etchosts newmount at the command prompt and press Enter to copy the hosts file to the new partition. Verify that the copy was successful by typing the ls F newmount command at the command prompt again, and press Enter.
At the command prompt, type umount newmount and press Enter. Next, type the df hT command and press Enter to verify that the filesystem was unmounted correctly.
At the command prompt, type vi etcfstab and press Enter. Observe the contents of the file. Add a line to the bottom of the file as follows where device is the partition device file from Step :
device newmount ext defaults
Save your changes and quit the vi editor.
At the command prompt, type reboot and press Enter. After your Linux system has been loaded, switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!.
At the command prompt, type df hT and press Enter. Is your new filesystem mounted?
At the command prompt, type umount newmount and press Enter. Next, type the df hT command to verify that the filesystem was unmounted correctly.
At the command prompt, type mount a and press Enter. Next, type the df hT command and press Enter. Is your new filesystem mounted again to newmount Why?
Type exit and press Enter to log out of your shell.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started