Fix a disk that will not mount
We'll check the disk is visible, run fsck or xfs_repair, and fix fstab—or tell you when to escalate.
What you'll need
- Root or sudo on the server
- Console access if the system does not boot
Step-by-step diagnostic
Quick triage — pick your path
Get started
Choose the option that matches what you see. You can jump straight to that section.
Show full guide
Steps
Goal: Confirm the disk is visible, run fsck or xfs_repair if corrupted, and fix fstab so the disk mounts.
- Run
lsblkandblkidto confirm the disk is present. Checkdmesgfor I/O or hardware errors. If the filesystem is corrupted, unmount and runfsck -y(ext4) orxfs_repair(XFS). - Check /etc/fstab: use UUID, correct type, mount point exists. Run
mount -ato test. - Good: The disk mounts and is accessible.
- Bad: dmesg shows hardware errors or fsck fails repeatedly—escalate.
Check disk and fsck
Goal: Confirm the disk is visible and repair the filesystem if corrupted.
- Run
lsblkandblkid. Checkdmesg | tail -100for errors. Unmount, then runfsck -y(ext4) orxfs_repair(XFS). Remount. - Confirm you should see fsck complete and the mount succeed.
Fix fstab and mount
Goal: Correct fstab and mount the disk.
- Use UUID from blkid in fstab. Confirm type (ext4, xfs) and mount point. Run
mkdir -p /pathif needed. Runmount -a. - Confirm you should see no error from mount -a.
When to escalate
Gather lsblk, blkid, dmesg, and fsck output before escalating. Escalate if:
- dmesg shows I/O or hardware errors and the disk may be failing.
- fsck fails repeatedly or reports unrecoverable errors.
- The disk is on SAN or iSCSI and unreachable.
Verification
mountshows the disk mounted at the correct path.df -hshows the filesystem with available space.- Files can be read and written on the mount.
Escalation ladder
Work from the device outward. Stop when the problem is fixed.
- Confirm disk visible lsblk; blkid.
- dmesg Check for I/O or hardware errors.
- fsck / xfs_repair umount; fsck -y or xfs_repair.
- fstab and mount UUID, type, mount point; mount -a.
- Escalate Provide lsblk, blkid, dmesg, fsck output.
What to capture if you need help
Before calling support or posting for help, have these ready. It speeds everything up.
- lsblk output
- blkid output
- dmesg excerpt
- fsck or xfs_repair output
- fstab entry
- Steps already tried
Is the disk visible in lsblk?
Run lsblk and blkid.
You can change your answer later.
Disk not detected
Does dmesg show I/O or hardware errors?
dmesg | tail or journalctl -k.
You can change your answer later.
Escalate
Is the filesystem corrupted?
mount fails with filesystem error.
fsck succeeded?
You can change your answer later.
Fix fstab and mount
Reviewed by Blackbox Atlas
Frequently asked questions
- Why would a disk not mount?
- Filesystem corruption, wrong fstab entry, device not detected, I/O errors, or disk in use. Check lsblk, fsck, and dmesg.
- Can I fix disk mount failures myself?
- Yes. Run fsck or xfs_repair, fix fstab (UUID, type), create mount point. For hardware errors, replace the disk.
- When should I escalate disk mount issues?
- If fsck fails repeatedly, dmesg shows hardware errors, or the disk is on SAN/iSCSI and unreachable.
Rate this guide
Was this helpful?
Thanks for your feedback.