A hard drive is the data storage component of a computer, used to store the operating system, applications, and files. At some point, you may want to install a new hard drive to expand storage capacity or replace a faulty one. This article will guide you through the process of installing a hard drive on a desktop or laptop computer.
Steps
Installing a Hard Drive on a Desktop Computer

Ensure you are using a Windows computer. While you can replace the hard drive on an iMac, it is extremely challenging and may void the warranty. In contrast, Windows desktops are generally easier to handle.
- If you need to install a hard drive on a Mac, consider visiting an Apple support center for assistance.

Back up your computer data. If you plan to remove the current hard drive from your computer, ensure you back up your data so you can restore it afterward.
- If you want to keep the originally installed hard drive, you will install a second hard drive.

Ensure your computer can accommodate a new hard drive. Before purchasing a new hard drive, confirm that your computer can support it. If you want to add a second hard drive to a desktop, make sure the computer case has enough space. For all-in-one computers, verify that the internal hard drive is replaceable.

Purchase a hard drive compatible with your computer's motherboard. SATA drives are the most common for modern computers, but newer motherboards may support M.2 SSDs, which are smaller and faster than SATA drives (if both the drive and motherboard support NVMe).
- SATA drives come in two sizes. The -inch size is used in most desktops, while all-in-one computers typically require a 2.5-inch SATA drive.
- M.2 SSDs also come in various sizes, denoted by four digits. For example, an M.2 2280 drive measures 22x80mm, while an M.2 2260 is 22x60mm. To install an M.2 SSD, check if your motherboard has an M.2 slot and supports the drive's size. The 2280 size is common for desktops. Also, verify whether the M.2 slot uses an M-key or B-key, as M-key SSDs won't fit in B-key slots. Refer to your motherboard's manual to ensure compatibility.
- Compare SSDs and HDDs: HDDs are mechanical drives, slower and more affordable. SSDs have no moving parts, offering faster performance, quieter operation, and higher costs. You can also opt for hybrid HDD/SSD drives.

Shut down and unplug your computer. To turn off your computer, click the Start icon, then select the power icon in the Start menu and click Shut Down. Alternatively, press and hold the power button on your laptop or desktop case. Unplug the power cord and press the power button to discharge any residual electricity from the components.

Remove the computer case cover. You'll need a small Phillips-head screwdriver to remove the side panels of the computer case. Both side panels must be taken off.

Ground yourself. This step prevents electrostatic discharge from damaging computer components. You can ground yourself by touching a metal object while working or wearing an anti-static wristband when handling internal parts.

Remove the old hard drive. If you plan to remove the old hard drive, disconnect all cables connecting it to the motherboard and power supply. Unscrew any screws securing the drive in place.
- You may also need to remove other cables or cards to access the hard drive mounted inside the case.

Install the new hard drive (if applicable) into the drive bay. Some computers use a special tray or bracket to hold the hard drive. If your computer has one, unscrew the tray, remove the old drive, and secure the new drive in place using the screws provided.

Mount the new hard drive. Place the hard drive into the slot previously occupied by the old drive or an additional slot for a second drive.

Secure the hard drive. Once the drive is in place, use the provided screws to fasten it securely. It’s best to use two screws on each side of the drive. If the screws aren’t tightened properly, the drive may rattle, causing noise and potential damage.
- Tighten the screws firmly, but avoid over-tightening to prevent damage to the drive.

Connect the hard drive to the motherboard. The new hard drive will use a thin SATA cable, similar to a USB cable. Use the SATA cable to link the hard drive to the motherboard. The SATA cable can be connected at either end.
- To install an M.2 SSD, insert the SSD into the M.2 slot at a 30-degree angle. Press the other end of the SSD down and secure it with a screw to attach it to the motherboard.
- If connecting to the originally installed hard drive, the SATA cable should be plugged into the first SATA channel, labeled SATA0 or SATA1. Refer to the motherboard documentation for details.

Connect the power supply to the hard drive. Most modern power supplies come with SATA power connectors, but older ones may only have Molex connectors (4-pin). In such cases, you’ll need a Molex-to-SATA adapter to install a SATA hard drive.
- Gently wiggle the cables to ensure they are securely connected.

Close the computer case. Reattach the side panels and secure all cables back to their original positions after working inside the case.

Plug in the computer and power it on. You should hear a sound indicating the hard drive is spinning up.
- If you hear beeping or a screeching noise, turn off the computer immediately and check the hard drive connections.

Install the operating system. You’ll need to install an operating system on the new hard drive to use the computer.
Installing a Hard Drive in a Laptop

Back up your laptop data. If you plan to replace your laptop's hard drive, back up the data on the current drive so you can restore it to the new one.

Ensure your laptop supports adding or replacing a hard drive. Before purchasing a new hard drive, consult the user manual or open the laptop to confirm whether you can replace or add a second drive. Most laptops lack additional slots for a second hard drive. On some newer laptops, the hard drive may be soldered in place and/or non-replaceable.

Purchase a hard drive compatible with your laptop model. Most modern desktops and laptops use SATA drives. Look for a drive that fits your laptop and meets your needs. Most laptops use 2.5-inch SATA drives, while some newer models support smaller, faster M.2 SSDs.
- M.2 SSDs come in various sizes, denoted by four digits. For example, an M.2 2280 measures 22x80mm, while an M.2 2260 is 22x60mm. To install an M.2 SSD, check if your motherboard has an M.2 slot and supports the drive's size. The 2280 size is common for desktops. Also, verify whether the M.2 slot uses an M-key or B-key, as M-key SSDs won't fit in B-key slots. Refer to your motherboard's manual to ensure compatibility.
- Compare SSDs and HDDs: HDDs are mechanical drives, slower and more affordable. SSDs have no moving parts, offering faster performance, quieter operation, and higher costs. You can also opt for hybrid HDD/SSD drives.

Turn off the laptop. Unplug the charger, then press and hold the power button until the laptop shuts down. You can also use the Power settings to turn it off:
- Windows - Click the Start menu, select the power icon, and click Shut down.
- Mac - Click the Apple menu, select Shut Down..., and confirm by clicking Shut Down.

Turn the laptop upside down. Close the laptop and flip it so the bottom side is facing up.

Remove the laptop's back cover. The process varies depending on the laptop model, but you'll typically need a screwdriver to detach the cover. Use a plastic prying tool to carefully move around the edges where the cover is attached to the keyboard and gently pry it open.
- Many laptops require special screwdrivers, such as Pentalobe or Y-head types, to open the cover.
- Some laptops, like Macs, have multiple screws around the cover's perimeter that need to be unscrewed.
- Be mindful of any ribbons or cables connected from the cover to the motherboard. If you spot any, note their connection points and carefully disconnect them.

Ground yourself. This step prevents accidental damage to the computer's small components due to static electricity. You can ground yourself by touching a metal object or wearing an anti-static wristband while working inside the laptop.

Remove the battery (if possible). Most laptops come with removable batteries to prevent electric shocks during hard drive installation.

Open the hard drive cover (if present). On some laptops, the hard drive is housed under a dedicated cover, usually located near the hard drive logo. You'll need a small-headed screwdriver to unscrew the bolts and remove the cover.

Unscrew the bolts securing the hard drive. Depending on the laptop model, the hard drive may be held in place by screws. Remove all screws that are securing the hard drive.

Remove the existing hard drive (if necessary). Simply disconnect the hard drive from its port. You may need to release a latch or ribbon cable to detach it. The hard drive will pop out about 1 cm, allowing you to easily remove it from its slot.
- You might also need to disconnect power or data cables from the hard drive.
- It’s a good idea to store the old hard drive in a safe place in case you need to retrieve data later.

Install the new hard drive (if applicable) into the hard drive caddy. Some laptops use a special caddy to secure the hard drive. If your laptop has one, unscrew all the bolts, remove the old hard drive, and place the new one into the caddy. Secure it by tightening the screws.

Install the new hard drive. Ensure the hard drive is oriented correctly, then firmly press it into place so it connects with the ports. Avoid forcing it in if it doesn’t align properly, as this could damage the connectors.
- If you removed screws to take out the original hard drive, remember to screw them back in.
- For M.2 SSD installation, insert the SSD into the M.2 slot at a 30-degree angle and press the other end down. Secure it with a screw to the motherboard.

Reconnect any cables you previously disconnected. If you removed power or data cables from the old hard drive, attach them to the new one.

Close the laptop cover. Position the cover back onto the laptop body and secure it by tightening the screws.
- If you removed any ribbons or cables to open the cover, remember to reconnect them before closing the laptop.

Install the operating system. You’ll need to install an operating system on the new hard drive to use the laptop.
Advice
- Hard drives generate heat during operation. If you’re installing multiple drives, ensure there’s enough space between them to prevent the laptop from overheating.
- Be cautious about static electricity when handling internal components. Use an anti-static wristband or touch a screw on a powered light switch to ground yourself before touching any parts or cables inside the laptop.
Warning
- Not all computers, especially laptops, allow for hard drive replacements.
