Mirano
Mirano
Instructions: In this assignment, you will explore various aspects of system startup and shutdown,
gaining practical experience in key tasks. Choose one task from each category and complete it.
Summarize your actions and any challenges you faced during the process. Be prepared to discuss your
findings in class.
Bootstrapping
Research how to check for firmware updates for your computer's BIOS or UEFI.
No updates available
Document the update process and any changes you observe in system behavior.
1
REPUBLIC OF THE PHILIPPINES
Booting PCs
Identify unnecessary startup programs and disable them to optimize boot time.
2
REPUBLIC OF THE PHILIPPINES
Measure the improvement in boot time and document the changes made.
Boot Loaders
If you have a multi-boot system (e.g., dual-boot with Linux and Windows), access your boot
loader's configuration.
Change the default operating system and adjust the timeout settings.
Test the changes by rebooting and verifying that the boot options work as expected.
I have set up a guide on how to do this and follow this toward everything
Open a terminal.
Edit the GRUB configuration file. In most cases, this file is located at
/etc/default/grub. You can use a text editor like Nano or Vim to edit it.
Open the System Configuration utility by typing msconfig in the Run dialog box
(Win + R).
Select the operating system you want to set as default and adjust the timeout.
3
REPUBLIC OF THE PHILIPPINES
GRUB_TIMEOUT sets the time (in seconds) that the GRUB menu is displayed before
automatically booting the default option.
In Windows Boot Manager, you can change the default OS and adjust timeout settings
directly from the System Configuration utility.
After saving the changes in the bootloader configuration, reboot your computer.
You should see the updated settings in action during the boot process.
Research how to access single-user mode on your specific operating system (e.g., Linux, macOS,
Windows).
4
REPUBLIC OF THE PHILIPPINES
Perform a basic system maintenance task (e.g., resetting a password) and document the
process.
Startup Scripts
Create a simple custom startup script (e.g., a shell script or batch file) that performs a specific
task during system startup (e.g., create a log file, start a custom service).
Place the script in the appropriate startup script directory on your operating system.
Test the script by rebooting the system and confirm that it executes during startup.
Research and document the emergency shutdown procedures for your computer or server.
Simulate an emergency shutdown by abruptly cutting power to your computer (if safe to do so).
Describe any issues or data loss that occurred due to the abrupt shutdown.
My laptop cannot handle simulation towards computers and servers but I have researched on
steps on how to do it and here’s what I've found
5
REPUBLIC OF THE PHILIPPINES
Choose "Shut down" from the options. In some cases, you might need to press and hold
the power button for a few seconds if the system is unresponsive.
Open a terminal.
Use the shutdown command. For example, to shut down immediately, you would use
sudo shutdown -h now.
3. Server:
If you're using a server, it's important to follow the manufacturer's guidelines for
emergency shutdown procedures, as they can vary depending on the specific hardware.
1. Desktop Computer:
Unplug the power cord or, if applicable, turn off the power strip or surge protector.
2. Server:
Abruptly cutting power to a computer or server can result in several potential issues:
Any unsaved data or data in the process of being written to storage may be lost or
corrupted.
The abrupt shutdown can lead to file system errors or damage, which may require a file
system check (e.g., chkdsk in Windows or fsck in Linux) on the next boot.
6
REPUBLIC OF THE PHILIPPINES
3. Incomplete Processes:
Processes that were running at the time of the shutdown may not have had a chance to
complete their tasks. This can lead to inconsistencies or errors.
While modern hardware is designed to handle sudden power cuts, there's still a slight
risk of hardware damage, especially in older systems.
5. System Instability:
The system may become unstable or fail to boot properly due to the unexpected
shutdown.
Process Management
Use system tools (e.g., Task Manager on Windows, top on Linux) to monitor running processes
on your computer.
Identify a resource-intensive process and take action to either prioritize or terminate it.
7
REPUBLIC OF THE PHILIPPINES
Document the process's resource usage before and after your intervention.
8
REPUBLIC OF THE PHILIPPINES
ANSWERS:
1. During the POST (Power-On Self-Test) phase, the computer's hardware components are tested
to ensure they're functioning correctly.
2. Optimizing boot time can be achieved by disabling unnecessary startup programs, upgrading
hardware components, and using SSDs for faster disk access.
3. The primary goal of bootstrapping is to load and initialize the operating system on a computer.
4. The bootloader is responsible for loading and executing the operating system kernel, making it a
crucial part of the bootstrapping process.
5. The primary role of a boot loader is to load and execute the operating system kernel, initiating
the boot process.
6. Secure Boot enhances system security during boot by verifying the digital signature of the
bootloader and other components, ensuring they haven't been tampered with.
7. Booting into single-user mode is for troubleshooting and maintenance, providing a minimal
environment with limited services and user access.
8. Common tasks in single-user mode include system repairs, password resets, and performing
maintenance tasks that require exclusive access to the system.
9. Startup scripts during system boot are used to initialize system services, settings, and
applications required for normal operation.
9
REPUBLIC OF THE PHILIPPINES
10. Startup scripts on a Linux system can be found in the /etc/init.d/ directory or in directories
specific to the init system (e.g., /etc/systemd/system/ for systemd).
11. Rebooting restarts the computer's operating system, while shutting down powers off the system
completely.
12. Gracefully terminating processes before rebooting or shutting down prevents data loss,
corruption, and potential system instability.
13. Process management in operating systems involves tasks like process creation, scheduling,
termination, and resource allocation.
14. Process monitoring is important in system administration to ensure that processes are running
efficiently, identify resource-intensive tasks, and address potential issues before they lead to
system instability.
10