When confronted with a drive that says there are 36 sectors/track,
ignore and set it to 18 sectors/track. This allows FreeBSD to boot with 2.88MB floppies which are used in older ThinkPads. Submitted by: Random Net person whose name I lost
This commit is contained in:
parent
b7f41e3f67
commit
e21fd30049
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10816
@ -24,7 +24,7 @@
|
||||
* the rights to redistribute these changes.
|
||||
*
|
||||
* from: Mach, Revision 2.2 92/04/04 11:35:49 rpd
|
||||
* $Id: disk.c,v 1.13 1995/05/30 07:58:31 rgrimes Exp $
|
||||
* $Id: disk.c,v 1.14 1995/06/23 01:42:42 ache Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -91,7 +91,10 @@ devopen(void)
|
||||
#endif
|
||||
|
||||
di = get_diskinfo(dosdev);
|
||||
spc = (spt = SPT(di)) * HEADS(di);
|
||||
spt = SPT(di);
|
||||
/* Hack for 2.88MB drives */
|
||||
if (spt == 36) spt = 18;
|
||||
spc = spt * HEADS(di);
|
||||
if (dosdev == 2)
|
||||
{
|
||||
boff = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user