[opensuse] Format fat32 with badblocks range
Hi, I have an old iRiver IHP-120 hard disk ogg vorbis and mp3 player whose disk has got partly damaged. It still works and I'd like to format the disk so that the range of blocks where the damage is will be marked bad. I've already tried to format with -c option but it takes way too long. At the moment I'm scanning the disk with badblocks to get an idea where the damage is (the range of blocks that are mostly bad). How should I format the disk or how do I choose the correct block size and should I first create a file with a long list of block numbers and give this file to mkdosfs with the -l option? Cheers, Teemu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri March 2 2007 09:13, Teemu Nikkilä wrote:
How should I format the disk or how do I choose the correct block size and should I first create a file with a long list of block numbers and give this file to mkdosfs with the -l option?
Hi Teemu, What are the hard drive's make, model and serial/revision numbers? And have you checked the manufacturer's website for an appropriate utility to lock out any bad sectors? regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-03-02 at 09:25 -0500, Carl Hartung wrote:
What are the hard drive's make, model and serial/revision numbers? And have you checked the manufacturer's website for an appropriate utility to lock out any bad sectors?
There is no need for that with FAT. Also, many disks handle that transparently. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF6EW5tTMYHG2NR9URAofiAKCZBuQ5cGLDcSoAs12bqMprYnHo2gCeN8cU Z220tzVj/KgpNw86Crc5g6M= =izGG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri March 2 2007 10:41, Carlos E. R. wrote:
The Friday 2007-03-02 at 09:25 -0500, Carl Hartung wrote:
What are the hard drive's make, model and serial/revision numbers? And have you checked the manufacturer's website for an appropriate utility to lock out any bad sectors?
There is no need for that with FAT.
The disk drive oem utilities I've seen usually don't deal at the filesystem level.
Also, many disks handle that transparently.
That's why I look for manufacturer-supplied utilities in these situations. They're designed for the specific hardware and firmware in question. Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-03-02 at 15:45 -0500, Carl Hartung wrote:
There is no need for that with FAT.
The disk drive oem utilities I've seen usually don't deal at the filesystem level.
But FAT does. Bad sectors can be marked on the FAT.
Also, many disks handle that transparently.
That's why I look for manufacturer-supplied utilities in these situations. They're designed for the specific hardware and firmware in question.
But you don't need to do anything if the disk has that capability. You simply write to a bad sector, and it gets automatically remapped to a new one, reserved on factory, till the factory list is full. It is OS transparent, implemented on the disk firmware. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF6I8ctTMYHG2NR9URAjwMAJ9T6nv+gcEPIz6MA361pYZP94eJUwCeNxhn T7vOwRWPiVWRsrVtmttHEZA= =njER -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri March 2 2007 15:54, Carlos E. R. wrote:
The Friday 2007-03-02 at 15:45 -0500, Carl Hartung wrote:
There is no need for that with FAT.
The disk drive oem utilities I've seen usually don't deal at the filesystem level.
But FAT does. Bad sectors can be marked on the FAT.
I understand this, Carlos, but it presumes everything up to and including the drives built-in controller and firmware are functioning normally. When I encounter problems like the OP is describing, I want to see everything the manufacturer's tools can tell me before deciding how to proceed... especially if they're free to download. ;-) Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-03-02 at 16:41 -0500, Carl Hartung wrote:
I understand this, Carlos, but it presumes everything up to and including the drives built-in controller and firmware are functioning normally. When I encounter problems like the OP is describing, I want to see everything the manufacturer's tools can tell me before deciding how to proceed... especially if they're free to download. ;-)
Ah, I see. Right, it wouldn't be a bad idea. Unfortunately, those tests usually do not run in a external box (usb unit, for instance). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF6MW4tTMYHG2NR9URAkBeAJ0SuZieBCuJNJpSLHFnmIw0dE4tSQCcDcOl 6YSNgxLxCjAz2iNw2clVeik= =EzpT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-03-02 at 16:13 +0200, Teemu Nikkilä wrote:
I have an old iRiver IHP-120 hard disk ogg vorbis and mp3 player whose disk has got partly damaged. It still works and I'd like to format the disk so that the range of blocks where the damage is will be marked bad.
I've already tried to format with -c option but it takes way too long. At the moment I'm scanning the disk with badblocks to get an idea where the damage is (the range of blocks that are mostly bad).
It takes very long because it retries many times (10, I think). I don't know if you can limit that number. It might be faster if you access the disk locally (ide cable).
How should I format the disk or how do I choose the correct block size and should I first create a file with a long list of block numbers and give this file to mkdosfs with the -l option?
If you have the list, yes, suposedly you can feed the list to the format program. Another method is to format anyway, then use "dosfsck -t". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF6EfItTMYHG2NR9URAshhAKCAj7jzSeiZgcN8PFrynxEJDz1oVQCeMKJe Xk4yYJsdDrMMjvElJV8uaSo= =z/Kq -----END PGP SIGNATURE-----
Thanks all for suggestions. On Friday, 2. March 2007 17:50, Carlos E. R. wrote:
It takes very long because it retries many times (10, I think). I don't know if you can limit that number.
I haven't seen an option for this.
It might be faster if you access the disk locally (ide cable).
The disk is inside the player and can not be accessed without voiding the warranty. I think it is a Toshiba 1.8'' 20 GB unit. The start and end of the disk are good, the damage is roughly at 1/3 of the total of blocks. I'll do some more tests to narrow down the area.
How should I format the disk or how do I choose the correct block size and should I first create a file with a long list of block numbers and give this file to mkdosfs with the -l option?
If you have the list, yes, suposedly you can feed the list to the format program.
Another method is to format anyway, then use "dosfsck -t".
I can easily format using the player's firmware, but then reading some files will fail. I tested by creating a ~2GB file of zeroes and copying it over and over. It failed on third run. -Teemu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-03-02 at 18:48 +0200, Teemu Nikkilä wrote:
Thanks all for suggestions.
On Friday, 2. March 2007 17:50, Carlos E. R. wrote:
It takes very long because it retries many times (10, I think). I don't know if you can limit that number.
I haven't seen an option for this.
Me neither.
It might be faster if you access the disk locally (ide cable).
The disk is inside the player and can not be accessed without voiding the warranty. I think it is a Toshiba 1.8'' 20 GB unit. The start and end of the disk are good, the damage is roughly at 1/3 of the total of blocks. I'll do some more tests to narrow down the area.
If the bad area is extensive, I would replace the disk, warranty or not. Or, use the warranty to have the disk replaced, if covered. Perhaps they will say that you have subjected it to too much vibrations and damaged the head and surface (I would). You can accept a few bad sectors, a dozen perhaps. If there are many, it means badly damaged, like head landing, and the number of bad sectors will increase. The disk will become very unreliable.
How should I format the disk or how do I choose the correct block size and should I first create a file with a long list of block numbers and give this file to mkdosfs with the -l option?
If you have the list, yes, suposedly you can feed the list to the format program.
Another method is to format anyway, then use "dosfsck -t".
I can easily format using the player's firmware, but then reading some files will fail. I tested by creating a ~2GB file of zeroes and copying it over and over. It failed on third run.
I know, but the -t option of dosfsck will remap bad sectors. You can use "dd" to overwrite the whole disk (file or raw). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF6HEmtTMYHG2NR9URAiqBAJ40lM4+/2gZKkEA5zyk3UEgCH1j9gCfYrUq Y8QxZEfkegqh7/aMA5c7s78= =s66g -----END PGP SIGNATURE-----
participants (3)
-
Carl Hartung
-
Carlos E. R.
-
Teemu Nikkilä