Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intercepting SCSI commands during bootup (i.e. read_capacity)

Status
Not open for further replies.

Vicis

Programmer
Jan 29, 2004
10
US
Hi peoples,

I recently formatted my seagate hard drive to fit a 528 byte block size. I have been told by Seagate staff that this should work. However, Linux does not like this. The reason is because it only accepts 512, 1024, 2048, etc...

I'd like to intercept the SCSI commands that tell Linux it's a 528 byte so that I can hard code in 512. I know this can be done, but the problem is I do not know where this change can be made. If anyone's willing to help out, a good starting place is /usr/src/linux(version here)/drivers/scsi/sd.c . There's a function in there which I already attempted to set sector size to 512, but that didn't work. There must be somewhere else where I have to change.

ALSO, if anyone knows where I can get a log of the code files utilized during the bootup, that'd be awesome. I am aware of being able to get the logs of the hardware checks, the errors, and so on, but this is useless to me if I don't know what files all this occurred from.

- John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top