Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to format a hard drive.

I've used mkfs.ntfs /dev/sda1 after the fdisk command, but mkfs doesn't work! And when I press Ctrl+Alt+F6 I see this message:

Buffer I/O error on device sda1, logical block 4684514

Have I lost my hard drive? If not, what should I do?

share|improve this question

The error message may point to a hardware error. Please run:

dd if=/dev/zero of=/dev/sda1 bs=1048576

This command should abort after writing as many mebibytes as your partition is large. If it aborts before with an error, or if dmesg shows hard disc I/O errors, your HDD is bad, and you ought to move the data off it and trash the bad disc ASAP.

Warning! The above command deletes all data currently written to your /dev/sda1 partition!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.