The 0 bytes error is not new. Many users complain about facing this error while trying to access their SD card or Flash drive on the computer.
Zero bytes implies no data in the storage drive. The error is bound to make you panic as it points towards data loss from the removable storage media.
However, there are various ways to repair USB or SD card showing 0 bytes error and restore the lost data.
What causes USBdrive 0 bytes error?
Following are the probable factors that can trigger 0 bytes error in removable disks:
- Virus infection
- Bad sectors in the storage drive
- Failed USB connection with computer
- Files are hidden in the USB storage
- Damaged Master Boot Record (MBR) of removable media
- Sudden interruption during the read/write process
- Improper unplugging of SD card, pen drive, or USB flash drive from the computer
- Physical damage in your USB flash drive or memory card
How to fix 0 bytes on a USB flash drive/ SD card?
No media error does lead to permanent loss of files from the storage drive, if not fixed. If your camera card or pen drive contains important photos and videos, immediately repair the 0 byte drive and restore its files.
Follow the below troubleshooting methods to fix USB 0 bytes error problem:
- Connect the removable media with another computer.
- Change the card reader.
- Install anti-virus on your computer.
- Unhide files in 0 byte SD card using CMD command.
- Run CHKDSK command.
- Create a partition in Disk Management.
- Repair Damaged MBR Using Command Prompt.
- Format USB/ SD card showing 0 bytes error.
- Restore 0 bytes photo and video files from SD card/ USB pen drive.
Solution 1: Connect the removable drive with another computer
Connect your SD card, USB drive or pen drive to another computer. Check if the 0 bytes error appears or not.
If you can access the storage media without error, it means the issue is with your computer. Immediately backup the files stored in the removable disk and format the media to fix the issue.
In case you still see the 0 bytes or empty media on another computer, then move to the next solution.
Solution 2: Change the card reader
If the SD card is showing 0 bytes error, try by changing the card reader. The SD card error may be due to the damaged card reader.
Solution 3: Install anti-virus on your computer with SD card/ USB drive Showing 0 Bytes
If the SD card or USB drive error is not a hardware issue, it could be a virus in the computer or the storage media.
Install a trusted anti-virus software to scan your computer and the removable media. The anti-virus would delete malicious software causing 0 bytes error.
After which, you should be able to access the photos, videos, or music stored in your pen drive or memory card.
Solution 4: Unhide files in 0 byte SD card using CMD command
The files may be there in the USB or SD card but hidden due to corruption in the media. Unhide and view the files by using CMD command in Windows.
Steps to run CMD command in Windows 10:
- Connect the removable drive with PC.
- Note the drive letter name of USB/ SD card/ pen drive in the drive list.
- Press Win+R and in the Run box type CMD and hit Enter.
- A command prompt window opens. Type the following command: attrib -h -r -s /s /d g:\*.* Here ‘g’ is the drive letter of your removable media.
- Press Enter.
Once the process completes, check the storage drive if you can access its files.
Solution 5: Run CHKDSK command
You can run the Check Disk Utility (CHKDSK) command to fix storage media corruption and view the files on SD card/ USB or pen drive showing 0 byte error.
CHKDSK utility can repair the file system errors which may be the cause of the USB 0 bytes problem.
Steps to run CHKDSK command:
- Connect the removable drive with PC.
- Note the drive letter name of USB/ SD card/ pen drive in the drive list.
- Press Win+R and in the Run box type CMD and hit Enter.
- A command window opens, type “chkdsk” followed by the drive letter of USB/ SD card/ pen drive, then a colon and /f. (e.g., chkdsk G: /f). Here G is the drive letter.
- Press Enter.
- Chkdsk will check for possible errors and try to fix the file system errors in the removable media. Next, follow the subsequent message prompts.
- Once the process is finished, restart your system. Now access the storage media. The 0 byte error should be fixed.
Solution 6: Create partition in Disk Management with SD card/ USB drive Showing 0 Bytes
Use this method if the 0 byte SD card or pen drive shows its data unallocated in disk management.
Steps to fix SD card/ USB error in disk management:
- Connect the USB/SD card to PC.
- Right-click on This PC > Manage > Disk Management.
- Right-click on the unallocated space of the SD card/ USB and select New Simple Volume.
4. Set partition size, drive letter, and file system (FAT 32 or NTFS).
5. Click Finish.
Solution 7: Repair Damaged MBR Using Command Prompt
Master Boot Record or MBR contains information about the logical partitions on the storage drive. When MBR of a drive gets corrupt or damaged, it may show disk errors such as 0 bytes.
Windows allow you to rebuild and fix damaged MBR. Automatic MBR repair tools are also available that can fix removable media MBR.
But, if you are a novice and not familiar with command lines, avoid this method to fix the 0 byte error.
Steps to fix MBR in Windows 10
- Boot your PC using the original Windows bootable CD or DVD.
- At the first screen, click to follow Repair your computer > Troubleshoot >Advanced > Command Prompt.
- In the Command Prompt window, type the below commands lines. Press Enter after each command:
- bootrec /FixMbr bootrec /FixBoot bootrec /ScanOs bootrec /RebuildBcd
- Wait for the process to finish and exit the Command Prompt window.
- Remove the CD/ DVD and restart your PC.
Now check if the removable disk 0 byte error is fixed or not.
Solution 8: Format USB/ SD card showing 0 bytes error
If the above methods don’t fix the ‘no media or 0 bytes problem’, try to format the removable media. Formatting fixes all kinds of corruption and errors in a storage drive.
Steps to format USB/ SD card/ pen drive in PC:
- Connect the storage drive to PC.
- Right-click the removable drive showing the error.
- Select Format.
- Next, click Browse to select a location and save the recovered files. Note: Do not select the same storage drive that shows 0 bytes or no media error. Choose a different location to save the recovered photos, videos, and music.
Conclusion
No media or 0 bytes error in the SD card or USB drive makes your photos and videos inaccessible. You may also lose data on your USB drive permanently. But you can try the above methods to fix the 0 bytes error in USB flash drives, SD cards, and other media.
Read Also: Simple way to Create a List of Installed Programs on Windows