LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2007, 01:14 AM   #31
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015

I didn't read the whole thread, but I get the basic idea of what's going on. With IDE drives, of which SATA are also, the way the drive operates on a very basic level is in the drive itself. The operating system makes a request for data, and the requested data is read from the drive platters into the IDE cache memory, right on the drive. The ondrive cache memory can be addressed like system memory, and even though more data is read from the platters to the cache than is immediately necessary, which is the whole point of caching, the operating system only takes the data it needs from the drive cache memory. Usually, if the drive reads data near the requested data this data will also be needed. The drive guesses at what will probably be needed, and the caching algorithm is correct more than it is wrong about what data will be needed next. So, the system works. But, I think it should be emphasised, an operating system does not directly address hard drive platters and heads. There is an intermediate layer of drive hardware and firmware operating between the os and the heads and platters in the drive. The drive itself translates commands in the ATA specification, which is used by the os, to physical movement of the read/write heads over the platters. It is a very complex system within each drive, and different manufacturers implement the ATA spec in different ways. There is also the sata spec which has some features not present in the ATA spec.

For instance, and this has nothing to do with the OP, some SATA drives, such as Seagate Barracuda NCQ drives can begin reading data in the middle of a track, read to that same point, which would mean the disk spinned one revolution, and reconfigure the track in cache memory so the data begin in the proper place, or is aligned properly in the linear cache memory. This cuts an 8 ms average seek time on a conventional ATA drive down to 4 ms on an NCQ equipped drive.

Last edited by AwesomeMachine; 02-08-2007 at 01:16 AM.
 
Old 02-08-2007, 12:50 PM   #32
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"But, I think it should be emphasised, an operating system does not directly address hard drive platters and heads."

Agreed. In fact, the number of heads, tracks, and sectors per track listed on a drive may not have anything to do with the actual physical configuration of the drive.

"For instance, and this has nothing to do with the OP, some SATA drives, such as Seagate Barracuda NCQ drives can begin reading data in the middle of a track,"

Agreed, but this should not be confused with "begin reading (or writing) data in the middle of a sector". Due to the way the data is physically encoded on the disk, no such thing is possible.
 
Old 02-08-2007, 08:44 PM   #33
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
Quakeboy, you're wrong.

I didn't touch this stuff till the 2nd year of my CS degree
 
Old 02-08-2007, 08:48 PM   #34
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"Quakeboy, you're wrong.

I didn't touch this stuff till the 2nd year of my CS degree"

LOL. OK, you win. I was wrong.
 
Old 02-20-2007, 07:00 PM   #35
here2serve
Member
 
Registered: Sep 2005
Location: Hinesville
Distribution: Debian, Mandriva, Ubuntu, Fedora
Posts: 104

Rep: Reputation: 15
Thanks guys. I'll be starting school in april....feeling pretty good about dd but I have heard of people packing the unused areas of a sector to hide data. I have not looked into it yet but from what I've read here I'm guessing that means coping the data from the sector and somehow using the extra data to pad it out to 512. Well I'm off to figure out how to recover or sniff out that extra data.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
Fedora Remove and restoring windows MBR boot loader eng_muhammad Fedora 3 12-03-2005 12:39 PM
Mandrake Install Screwed up MBR; Need to Make Boot Loader CD paul_m_d Linux - Newbie 5 12-09-2003 03:36 AM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 08:55 PM
possible to reinstall boot loader on the MBR? tarballed Linux - Newbie 3 02-14-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration