EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 66


SIMULATION -

Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.

Show Answer
Correct Answer:

To add a new logical partition of size 100MB and create the data mount point for it, follow these steps: 1. Open disk partitioning tool by typing 'fdisk /dev/hda' (replace 'hda' with your actual device name). 2. Type 'n' to create a new partition. 3. When prompted, choose 'l' for a logical partition. 4. Press Enter to accept the default starting cylinder. 5. Specify the size by typing '+100M'. 6. Type 'p' to verify the partition table and note the new partition's name (e.g., /dev/hda5). 7. Type 'w' to write the changes to the partition table. 8. Run 'partprobe' command or reboot the system. 9. Create the ext3 filesystem by typing 'mkfs -t ext3 /dev/hda5' (replace 'hda5' with your actual partition name). 10. Create a mount point directory by typing 'mkdir /data'. 11. Edit the fstab file to ensure the partition mounts at boot time by typing 'vi /etc/fstab' and adding the following line: '/dev/hda5 /data ext3 defaults 0 0'. 12. Finally, mount the new partition by typing 'mount /dev/hda5 /data'. This will add a new logical partition of size 100MB and mount it to the /data directory.

Discussion

1 comment
Sign in to comment
Hayder_Alobaidi
Jul 23, 2022

To created a logical partitions do this in fdisk: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions