Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.