Forum     

Go Back   Digit Technology Discussion Forum > Hardware > Hardware Q&A
Register FAQ Calendar Mark Forums Read

Hardware Q&A Discuss basic Hardware problems, find solutions to your hardware queries which don't fit in the other sections.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-05-2010, 08:53 AM   #1 (permalink)
In The Zone
 
hansraj's Avatar
 
Join Date: Sep 2004
Location: Pune
Posts: 436
Default Whats written in an unformatted new hard disk


Guys I was just wondering what is actually written in a brand new HDD. We know that 0 and 1 written in all the sectors across the HDD makes our data worthwhile and random 0 and 1 is written by varios security agencies to wipe out the old data but what happens in case of a brand new hd.

This doubt actually arose coz of the fact that in a full format or chkdsk the PC writes 0s to the bad sectors, then how does the OS know hereafter that this particular sector with 0 is the corrupt sector and not the 0 written because of some useful existing data.
__________________
"An eye for an eye leaves the world blind." - Gandhi

Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
hansraj is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-05-2010, 09:03 AM   #2 (permalink)
Apprentice
 
p_dude's Avatar
 
Join Date: Sep 2009
Posts: 53
Default Re: Whats written in an unformatted new hard disk

by indexing the files in the hard disk???
p_dude is offline  
Old 12-05-2010, 01:26 PM   #3 (permalink)
Wise Old Owl
 
Cool Buddy's Avatar
 
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
Default Re: Whats written in an unformatted new hard disk

A new formatted hard disk has all zeroes on it. The OS doesn't identify the file by reading the zeroes & ones individually, it has a list of files on the hard drive & knows where each is located. Just removing the entry from this list is enough to make a file appear deleted (i.e. it will not show up in windows explorer). That's why a deleted file is often recoverable, because the area is not actually rewritten with zeroes but only the entry pertaining to that file from the file system's table is deleted.
__________________
Digital Sheets Technology Blog
AMD Phenom II X4 840, 4 GB RAM, MSI HD5670, Corsair CX400 PSU :)
Nokia 5230 :(
Canon IXUS 115 HS :)
Cool Buddy is offline  
Old 12-05-2010, 03:58 PM   #4 (permalink)
In The Zone
 
hansraj's Avatar
 
Join Date: Sep 2004
Location: Pune
Posts: 436
Default Re: Whats written in an unformatted new hard disk

@ cool buddy
lets assume that in a hard disk which was brand new, a file 1.doc has been written. Lets say, it occupied first 100 sectors in the hard disk. Then I copied another mp3 file which started from 101st sector till 345th sector. Now after 2 days i edited the 1.doc and its size came down from the orig size. This resulted in making 71st to 100th sector free in the hard disk. Now the question is

1. what will happen in 71st to 100th sectors data. Will they all become zeros or will they remain as they were earlier?

2. Will only the relevant entry in the table of contents in FAT get updated as regards to edited 1.doc is concerned(with 1 to 70th sector occupied) or 1.doc shall occupy a new place in hd, i.e 346th sector onwards?
__________________
"An eye for an eye leaves the world blind." - Gandhi

Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
hansraj is offline  
Old 12-05-2010, 09:58 PM   #5 (permalink)
Wise Old Owl
 
Cool Buddy's Avatar
 
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
Default Re: Whats written in an unformatted new hard disk

The file will remain in it's original position. The file system (NTFS) will be updated that 1.doc occupies sectors 1-70. 71 to 100 may remain the way it was. it will be rewritten only when you put in some other data. Now suppose when sector 71-100 are empty, you put in a file which needs 60 sectors. first half will be written in sector 71-100 and the remaining half in sector 346-375. the file system will have info about this fragmentation. this is what file fragmentation is. this fragmentation can be removed by running a disk defrag utility.
FAT was the older file system which is used today mostly in pen drives because FAT can be read with windows, mac, linux, every OS whereas NTFS can be read only by windows. NTFS has a master file table. This file table can be used to search for files without indexing the drives with the help of everything search.
__________________
Digital Sheets Technology Blog
AMD Phenom II X4 840, 4 GB RAM, MSI HD5670, Corsair CX400 PSU :)
Nokia 5230 :(
Canon IXUS 115 HS :)
Cool Buddy is offline  
Old 13-05-2010, 08:16 AM   #6 (permalink)
In The Zone
 
hansraj's Avatar
 
Join Date: Sep 2004
Location: Pune
Posts: 436
Default Re: Whats written in an unformatted new hard disk

Thanks a lot..... enlightened.
__________________
"An eye for an eye leaves the world blind." - Gandhi

Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
hansraj is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hard disk crash problem anant197 Hardware Q&A 3 17-03-2010 07:57 PM
Hard Disk makes noise & whistles g_goyal2000 Hardware Q&A 20 25-05-2008 08:00 PM
Improving Vista's Hard disk performance gxsaurav Hardware Q&A 6 16-03-2007 11:23 AM
80GB hard disk converted into 10780 MB hard disk ssingha QnA (read only) 12 24-08-2004 11:57 AM

 
Latest Threads
- by trublu
- by Sujeet
- by ico
- by Tenida
- by c4u

Advertisement




All times are GMT +5.5. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2