Author Topic: Question hdd control badblocks  (Read 3205 times)

0 Members and 1 Guest are viewing this topic.

Offline classicsamus87Topic starter

  • Regular Contributor
  • *
  • !
  • Posts: 97
  • Country: br
Question hdd control badblocks
« on: November 09, 2020, 11:27:30 pm »
On an HDD if a file is downloaded and written to a bad sector and the firmware relocated sector table is full what will happen to this file? will it be recorded or not? will it be recorded and corrupted?
 

Offline retiredfeline

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: au
Re: Question hdd control badblocks
« Reply #1 on: November 10, 2020, 12:09:52 am »
If your firmware reallocated sector table is full I would avoid having to guess the answer to this question, i.e. replace the disc.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Question hdd control badblocks
« Reply #2 on: November 10, 2020, 12:31:11 am »
it will go to empty space. if the disk is full you will get an 'out of space' error
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline AntiProtonBoy

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: au
  • I think I passed the Voight-Kampff test.
Re: Question hdd control badblocks
« Reply #3 on: November 10, 2020, 01:55:44 am »
The relocated sector table will map bad sectors over to good spare sectors, without affecting the reported drive capacity to the OS. So writing to those sectors will save data to the spare sectors, without much issues. This works even if the relocation table is full, provided that no addional bad sectors develop over time. In the latter case, new bad sectors will probably cause the drive to signal "write errors" back to the OS.
 

Offline classicsamus87Topic starter

  • Regular Contributor
  • *
  • !
  • Posts: 97
  • Country: br
Re: Question hdd control badblocks
« Reply #4 on: November 10, 2020, 10:03:20 am »
this table of good and bad sectors at some point it gets full in the firmware so it is no longer possible to write files in good sectors if this happens the file is downloaded and saved in bad sector this file will be corrupted and accessible with two clicks and this file damaged can it also be burned to dvd?
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Question hdd control badblocks
« Reply #5 on: November 10, 2020, 02:57:51 pm »
NO. Data will not be written to bad blocks. you will get an error that the disk is full. and that's it. file lost.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17089
  • Country: us
  • DavidH
Re: Question hdd control badblocks
« Reply #6 on: November 10, 2020, 03:57:32 pm »
On an HDD if a file is downloaded and written to a bad sector and the firmware relocated sector table is full what will happen to this file? will it be recorded or not? will it be recorded and corrupted?

A good hard drive will note an uncorrectable error and return an error to the operating system and the data will be corrupt.  Some hard drives will lock up and timeout until reset.
« Last Edit: November 10, 2020, 03:59:15 pm by David Hess »
 

Offline classicsamus87Topic starter

  • Regular Contributor
  • *
  • !
  • Posts: 97
  • Country: br
Re: Question hdd control badblocks
« Reply #7 on: November 14, 2020, 02:53:21 pm »
I have Seagate and Western Digital HDDs from the year 2000 and these HDDS have badblocks bad sectors and I downloaded important files in these HDDS so I thought these files were saved and corrupted in the bad sectors and if the error correction table is full making it impossible for more corrections files were also saved in these bad sectors?
 

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 6921
  • Country: de
Re: Question hdd control badblocks
« Reply #8 on: November 14, 2020, 05:33:08 pm »
Does your keyboard have a period symbol? You know, this "." little guy? Give it a try, it magically makes your texts easier to read.  ::)
 
The following users thanked this post: tooki

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9894
  • Country: gb
Re: Question hdd control badblocks
« Reply #9 on: November 14, 2020, 10:05:52 pm »
Does your keyboard have a period symbol? You know, this "." little guy? Give it a try, it magically makes your texts easier to read.  ::)
dont bother. it probably not implemented yet in "his" logic. if you want to go happy marry go round with this "guy", amuse "him" https://www.eevblog.com/forum/general-computing/hdds-and-badblocks-corrupt-downloaded-files/msg3258032/#msg3258032 it seems "he" managed to infiltrate into few threads go check his posts/topics.

Your Caps key is broken.   ;)

Strangely, so is free-electron's. It must be catching.  ;D
« Last Edit: November 14, 2020, 10:10:11 pm by Gyro »
Best Regards, Chris
 

Online Siwastaja

  • Super Contributor
  • ***
  • Posts: 8729
  • Country: fi
Re: Question hdd control badblocks
« Reply #10 on: November 15, 2020, 08:05:33 am »
But the question is...

What...

is...

the...

NAME????
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Question hdd control badblocks
« Reply #11 on: November 16, 2020, 07:35:26 pm »

Strangely, so is free-electron's. It must be catching.  ;D
my favorite programming language is basic. because it is case insensitive. the 'english' alphabet has 26 letters. not 52... we live in 2020 soon 2021. text editors should know by now that ,after a period and a space, the first letter should be capitalized. if the first letter is an i followed by a space then the first letter of that word should be capitalized too. that being said: all letters on a keyboard are written in uppercase, yet we type in lowercase by default. kind of makes the 'caps lock' key totally illogical ...
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline DrG

  • Super Contributor
  • ***
  • !
  • Posts: 1199
  • Country: us
Re: Question hdd control badblocks
« Reply #12 on: November 16, 2020, 08:22:22 pm »
my favorite programming language is basic.

I feel very strongly that you meant to type, "My favorite programming language is BASIC."  ;)

You are not alone in the cause of Death to the Caps Lock (née shift lock) e.g., https://medium.com/forwardtick/its-time-for-caps-lock-to-die-81c9eaa4dfa7
- Invest in science - it pays big dividends. -
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11705
  • Country: my
  • reassessing directives...
Re: Question hdd control badblocks
« Reply #13 on: November 16, 2020, 09:39:40 pm »
my favorite programming language is basic.
I feel very strongly that you meant to type, "My favorite programming language is BASIC."  ;)
now you proved that you have blood and veins. i dont mind caps letters what i do mind is extra finger to press the shift key and few brain cells and time to think when to or not to. if we have dedicated 52 keys keyboard i might consider. we are not linguist teacher and dont have time to care for such "non-influencing effect" thing. we are here to make something not working to be working. as once i remember in school that "our" definition (directive) is... to harness natural resources for the good of humanity... :P
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17089
  • Country: us
  • DavidH
Re: Question hdd control badblocks
« Reply #14 on: November 20, 2020, 12:45:28 am »
my favorite programming language is basic

My favorite programming language is solder.
 
The following users thanked this post: RJSV

Offline classicsamus87Topic starter

  • Regular Contributor
  • *
  • !
  • Posts: 97
  • Country: br
Re: Question hdd control badblocks
« Reply #15 on: November 26, 2020, 02:56:33 pm »

I have had this doubt for a long time, if I download files in bad sectors of my HDD these files will be automatically redirected to a good sector but when the firmware mapping table has no more space it is full the files started to be saved in bad sectors? I recorded these files on DVD but I don't know if they are corrupted because of the defective sectors of the HDD
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Question hdd control badblocks
« Reply #16 on: December 04, 2020, 03:26:27 pm »

I have had this doubt for a long time, if I download files in bad sectors of my HDD these files will be automatically redirected to a good sector but when the firmware mapping table has no more space it is full the files started to be saved in bad sectors? I recorded these files on DVD but I don't know if they are corrupted because of the defective sectors of the HDD

dude, give it up. If files are saved ,and there are bad blocks , and there are free good blocks the dat will be stored in the good blocks. if there are no more good blocks the disk is full. a bad sector cannot be read. the data is corrupt. you cannot recover the original data. if a sector containging data goes bad the data is corrupted.

that's why you keep backups of important data. and no, one copy is NOT a a backup ! a backup is a minimum of 2 verified copies stored in geographically different locations.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline classicsamus87Topic starter

  • Regular Contributor
  • *
  • !
  • Posts: 97
  • Country: br
Re: Question hdd control badblocks
« Reply #17 on: December 08, 2020, 10:35:43 pm »

the burning of the zip, rar and exe files on my DVDs was 100% completed these files may have been downloaded to the badblock bad sector of the HDD and then burned to DVD
 

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4868
  • Country: gb
Re: Question hdd control badblocks
« Reply #18 on: December 18, 2020, 10:25:40 pm »
Assuming your real worry, is the data integrity of ROM images. I'd suggest you simply checksum your ROM files (on your HDDs/DVDs), and check those checksums, against known published checksums, for those ROMs.
Also, make/keep sensible backups of your data, rather than worrying too much about a particular HDD drive, DVD disc or specific file copy operation.

Further details:
https://forums.nesdev.com/viewtopic.php?t=12478



I've had to research what the real/actual question, seems to be about.

The OP, (speculation on my part), will tend to NOT TRUST peoples responses and/or links. Which I think is why they want to know the precise details, so that THEY THEMSELVES (the only person they trust), can checkout the files, badblocks, etc etc.

tl;dr
I think their data is just fine, but they are panicking, over the details they observed, from the S.M.A.R.T. HDD information. (Non-zero sector re-allocation).
In all likelihood, the HDD probably managed to read their data just fine, the bad blocks, were probably either not part of the ROM files and/or easily read/corrected and re-allocated by the HDD.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6816
  • Country: fi
    • My home page and email address
Re: Question hdd control badblocks
« Reply #19 on: December 19, 2020, 05:34:21 am »
Assuming your real worry, is the data integrity of ROM images. I'd suggest you simply checksum your ROM files (on your HDDs/DVDs), and check those checksums, against known published checksums, for those ROMs.
This was my suggestion also.  To repeat – so that others can confirm or refute my suggestion –:
Quote from: Nominal Animal
Do note that browsers do occasionally fail a download.  This is much more common than any bad blocks issues on HDDs.  These often occur because of network connectivity issues. Usually, the browser download window notes that the download was aborted, but the partial file still exists in the download folder.
So, you should be much more worried about whether the downloads succeeded or not, than about HDD badblocks.

This is also the reason why you see shaNsum files provided at download sites. For example, San Fransisco GCC 10.2.0 mirror.

The sha512.sum file contains checksums that one can compare to the downloaded files, to verify the file integrity.  There are command-line commands in Linux, BSDs, Mac OS, and even Windows (PowerShell) to verify these checksums.  You can use e.g. Quickhash GUI to generate these for your own files, or verify any files you have downloaded.

The idea is that before burning (a copy of your own files), you use calculate the sha512 checksums of those files.
Before burning downloaded files, you verify their sha512 checksums match.
This way, you verify that the data you are burning to the DVD is correct.

(The DVD itself has extensive error correction mechanism, and again, if the DVD degrades, you will get read errors rather than bad/broken data.)

Personally, I also burn those checksum files to the DVD, because hey, why not: verifying them on the DVD makes doubly sure the data is still intact.
Later on, when you need those files, you first re-check the files against their checksums.  If the checksums still match (or the verification passes, if you use the GUI), then you can be assured that the data on the DVD is still intact.  But, if the DVD is readable and copies the files without popping up error windows, the data should still be intact.
I also explained that this has worked well for me for over two decades; I tend to make a full backup of my own files at least once a year, and burn to a DVD-R (initially CD-R).  (I do incremental backups more often, around once a month for stuff I don't care much about, every time after a significant change for stuff I do care about, to USB flash storage.)
I keep the DVD-R/CD-R discs shielded from natural light, because I did have one set of CD-Rs degrade in a semi-transparent storage box on a shelf in direct sunlight.  I do prefer metal sheet boxes for this (like old-timey tins used for coffee and so on), but I do no other maintenance at all to them.  (And I'm not even sure if it is only because I kinda like those old-fashioned painted tin boxes, and similarly painted ceramics at kitchen for storing tea and spices...)

The underlying problem here is that stating the above, even with direct links to software, and describing the procedure to checksum, verify, and re-burn copies with checksum files for later verification, will not help the asker with the underlying problem, because the underlying problem is an affliction that requires non-technical specialist help in behaviour control.  You don't get rid of OCD by creating better rituals: those just provide short-term help with the symptoms.

Here, if we use germophobia as an analog, we have shown that yes, washing ones hands when coming home, before preparing food and eating, is indeed a good idea because those germs do exist.  But excessive hand washing itself is a health risk; and if moving from regular hand soap to industrial cleaning agents, can be fatal.  Even at a biologically/physically harmless level, as a behavioural pattern it can be a serious social barrier for interaction.

The solution is not to suggest patterns that keep the hand washing to an acceptable level, because the sufferer already knows that, but to stop the discussion on which soaps and how often to use them, and directly tell the person they need help with this, because the symptoms themselves are making that person too difficult to interact with.  These are not rare problems in humans at all – even I am talking about personal experience here –, and there is absolutely no shame in seeking help with these, no more than seeking medical help when you have a broken bone.  It is a known affliction, with a rather good chance of seriously alleviating the root causes via proper therapy, not only making the person themselves happier, but also much easier for others to interact with.  Win-win, in my opinion.

But it does need that gentle but firm "Dude, stop. This is not the way." intervention.
 
The following users thanked this post: MK14, RJSV

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11705
  • Country: my
  • reassessing directives...
Re: Question hdd control badblocks
« Reply #20 on: December 19, 2020, 08:18:29 am »
all people usually will seek help in event of physical problem, but none i've found will happily seek or even admit of a mental problem. if few people here claim to be psychiatrist experts maybe we can open "psychiatry section"
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf