The Ubuntu community has contributed 12232 ideas, 57574 comments, 1174524 votes
Idea
#6972: Ubuntu needs a tool for marking bad sectors of harddrives
|
| |
114
|
|
|
Written by Cybercod the 14 Apr 08 at 05:07.
Category: Hardware support.
Related to:
Nothing/Others.
Status: New
|
|
|
Description
If you've got a drive with some bad sectors in it, there is no easy method (or at all that I've found) to scan the disk and mark bad sectors.
This may make Ubuntu seem to be buggy and cause errors when it really isn't Ubuntu's fault.
Not only should Ubuntu support the user's hardware, but it should also provide tools for maintenance.
Tags:
(none)
Attachments
No attachments.
Duplicates
Comments
|
Eldmannen wrote on the 14 Apr 08 at 09:32
|
I think there is a program for this.
'fsck' can run 'badblocks'.
|
|
johno wrote on the 14 Apr 08 at 13:15
|
the -c option to fsck will do it when the filesystem isn't mounted (or -cc to do write-read testing). The point of the post though, may be how a user normally could find out about this type of thing.
Then if someone tries doing this after everything is installed, it may be hard to work out how to work with an unmounted filesystem -eg accessing the harddisk via a bootdisk.
So while it's technically quite possible, some users may have troubles working out how to do it.
|
|
Eldmannen wrote on the 14 Apr 08 at 17:46
|
I did this from the Ubuntu LiveCD.
$ sudo fsck -pcfv /dev/sda1
|
|
maybeway36 wrote on the 14 Apr 08 at 19:35
| |
Hoow about adding a small Linux hard drive image to the GRUB menu (using MEMDISK)? It could boot up, run fsck on all partitons it detects, and reboot.
|
|
ld_barthel wrote on the 14 Apr 08 at 23:49
|
fsck is already run on each boot if the filesystem is dirty or has exceed the maximum mount or day counts.
On large file systems, running a thorough bad blocks scan can take the better part of a day. It is not for the faint of heart.
With modern hard drives, the SMART tools can help here.
(But I can't help wondering if the originator had bad experiences due to FAT errors with Microsoft operating systems...)
|
|
glotz wrote on the 28 Jun 08 at 21:00
| |
Bad sectors? Oh now I remember, that's the thing we had in the 1980s...
|
Post your comment
|
|