Troubleshooting: Don't See HDD or CD-ROM; Changing Locations SSD/HDD
When you install a new hard drive (HDD) or solid-state drive (SSD) in your computer, you might encounter issues where the operating system fails to recognize the drives. This article will guide you through troubleshooting and solving these problems, focusing on the global topic of computer hardware and storage devices.
1. The Operating System Doesn't Recognize the New HDD/SSD
If your operating system doesn't recognize the new HDD or SSD, first ensure that it is properly connected to the motherboard or a compatible adapter. Check the SATA and power cables for any damage or loose connections. If the drive is still not recognized, try connecting it to a different SATA port on the motherboard.
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 930G 0 part /
In the example above, the system recognizes the HDD (sda) and its partitions. If your system doesn't show the new drive, you might need to initialize and partition it manually.
2. Changing Locations of SSD/HDD
If you change the location of an SSD or HDD, the operating system might not recognize it due to a change in the disk's identifier. To solve this issue, you can use the disk's UUID (Universally Unique Identifier) instead of its device path. The UUID remains constant regardless of the disk's location.
# blkid
/dev/sda1: UUID="ABCDEFGH-1234-5678-90AB-CDEF01234567" TYPE="vfat" PARTUUID="123e4567-e89b-12d3-a456-426614174000"
/dev/sda2: UUID="2021-09-25-15-27-01-00" TYPE="ext4" PARTUUID="123e4567-e89b-12d3-a456-426614174001"
In the example above, the UUID for each partition is shown. You can use the UUID in your /etc/fstab file to ensure the operating system recognizes the drive, even after changing its location.
3. Don't See CD-ROM After Installing a New SSD/HDD
If your computer no longer recognizes the CD-ROM drive after installing a new SSD or HDD, it might be due to a change in the SATA port order. Make sure the CD-ROM drive is connected to a SATA port and that the SATA mode is set to AHCI or IDE in the BIOS settings.
- Ensure proper connection of the HDD/SSD and check for damaged cables or loose connections.
- Use the UUID of a drive instead of its device path to ensure recognition after changing its location.
- Check the SATA port order and BIOS settings if the CD-ROM drive is no longer recognized.