Category Archives: Operating Systems

Quick Format vs. Full Format

Question:

What is the difference between Quick Format and Full Format?

Which option should you choose when formatting a drive?

Answer:

When you choose to run a Full Format on a volume (or partition), files are removed from the volume that you are formatting and the hard disk is scanned for bad sectors. The scan for bad sectors is responsible for the majority of the time that it takes to format a volume.

When you choose to run a Quick Format on a volume (or partition), format removes files from the partition, but does not scan the disk for bad sectors. Only use this option if your hard disk has been previously formatted and you are sure that your hard disk is not damaged.


Question:

What is the difference between MBR disk and GPT disk?

Which option should you choose when initializing a new external drive?

Answer:

MBR (Master Boot Record) disk allows you to install older operating systems. However it can only recognize up to 2TB space, and allows you to create up to 4 partitions.

GPT (GUID Partition Table) disk does not allow you to install older operating systems. However it can recognize more than 2TB space, and allows you to create more than 4 partitions.

When initializing a new external drive, probably you should initialize your disk as a GPT disk unless you want to install an old operating system on your external disk.

If you need to convert a disk to GPT while installing Windows then you can press Shift + F10 or Fn + Shift + F10 to open Command Prompt when you arrive the Windows Edition Selection screen. Then follow the procedure below.

Enter diskpart.exe, press Enter.
DISKPART> list disk
DISKPART> select disk 0 -- the disk should be selected, the number may be different in your machine.
DISKPART> clean
DISKPART> convert gpt
DISKPART> exit

In order to detect hard drive model, serial number and size use the command below.

wmic diskdrive get model, serialNumber, size

 


Problem:

How to solve Windows Server 2012 (R2) Extend Volume Greyed Out issue?

You are trying to extend partition with Disk Management snap-in Windows Server 2012 (R2), but you find the option to Extend Volume greyed out.
Solution:

Reason 1: The cause is disk partition style. Your disk partition is MBR style that supports only up to 2TB.

Solution for reason 1: Convert MBR to GPT disk for using un-allocated space beyond 2TB.

Reason 2: The un-allocated space is not contiguously behind the target partition that you want to extend.

Solution 1 for reason 2:

Step 1: Backup the partition (e.g. D:) behind the target drive (e.g. C:) you want to extend. Right-click on the D: partition and select "Delete Volume" in the drop down list.

Step 2: Once you have D: partition delete, it will turn into an unallocated space and be automatically merged with other unallocated space that is next to it if have. Now you can right-click on C: drive and "Extend Volume" option is available.
Solution 2 for reason 2:

Use a third-party application to merge the partitions, e.g. AOMEI Partition Assistant Server Edition.

 

How to Install Windows XP from a USB Flash Drive?

Why install Windows XP?

Sometimes you do need Windows XP for some specific tasks. For example running and testing old programs, a specific program, using your old computer for a specific task.

This is a  short guide to install Windows XP from a USB flash drive.

Requirements:

1. Windows XP installation files (you can use any Windows XP disc or ISO file).

2. DOS.zip file (download)

3. A USB flash drive of at least 2 GB (The best size is 1GB or 2GB. Some old computers do not allow to boot from USB having size being larger than 1GB).

4. A Windows 7 OS or a previous version.

Procedure:

1. Attach the USB to your computer

2. Unzip DOS.zip and run HpUSBformat.exe (this program can only be run under Windows 7 or a previous version), select below option values

  • File system: FAT
  • Volume label: SYSTEM
  • Select “Create a DOS Start up disk”
  • Select radio button “Using DOS system files located at:”
  • Enter the path where you have extracted DOS.zip files (Give the path of DOS folder).

3. Copy all other files from DOS folder to your USB disk (you can overwrite the existing ones).

4. Copy all the Windows XP installation files (I386) to the USB drive.

5. Boot system from the USB disk (you may need to adjust your BIOS for this).

6. Type fdisk, hit Enter and follow the instructions to create a partition for a new XP installation.

7. Type format d:/s to format the partition in the 6th step. If the partition already exists then use command format d:/q/s.

8. Type cd I386 and hit Enter to go to the I386 folder.

9. Type winnt and hit Enter.

10. Follow the screen instructions.

Important note: Your hard drive size should be less than 128Gb.

Topic 1 – Operating Systems

Why do I need to learn about operating systems?

Because you will develop your software using an operating system or for an operating system.

What can I do after finishing learning operating systems?

You will be prepared with skills that help you prepare environments for your your programming journey.

You will be prepared with knowledge that helps you understand programming terminologies.

You may even be inspired to learn programming to solve problems.

How many operating systems should I know?

As many as possible. We recommend that you learn how to work with Windows first. Then you learn about basic concepts of an operating system.

How do I learn to use operating systems?

Please read this Andy Rathbone (2015). Windows 10 For Dummies. Wiley book.

How about other operating systems such as macOS, Linux or Unix?

If you have a Mac then you can read this Pogue David (2019). macOS Mojave: The Missing Manual. O’Reilly Media book.

If you have a PC with Ubuntu, or Linux, or Unix then you can read this Mark G. Sobell (2015). A Practical Guide to Ubuntu Linux. Prentice Hall book.

After that please read these Introduction to Computing Principles lecture notes.

After that please read this Abraham Silberschatz et al. (2018). Operating System Concepts. Wiley book.

Terminology Review:

  • Central Processing Unit (CPU).
  • Random-Access Memory (RAM).
  • Hard Disk Drive (HDD).
  • Solid-State Drive (SSD).
  • Programs.
  • Basic Input/Output System (BIOS)
  • Unified Extensible Firmware Interface (UEFI).
  • Boot Loader.
  • Operating System (OS).
  • Monolithic Structure.
  • Microkernels.
  • User Mode.
  • System Calls.
  • Kernel.
  • Kernel Mode.
  • Processes.
  • Threads.
  • Process Synchronization.
  • Memory Management Unit.
  • Logical Address.
  • Physical Address.
  • Paging.
  • File System.
  • Security and Protection.
  • Networks.
  • Virtual Memory.
  • Virtualization.
  • Virtual Machines.

Once you finish learning about operating systems please click Topic 2 – Introduction to Computer Networks to continue.