Jump to content











Photo
- - - - -

get the disk capacity/size using grub4dos and the bios utility

grub4dos disk size

  • Please log in to reply
32 replies to this topic

#26 Ninho

Ninho

    Member

  • Members
  • 69 posts

Posted 30 March 2015 - 11:44 AM

Steve6375 wrote : " echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > (md)0x300+1 "

 

Uh ? Although the above "workaround" might (should) work for you, that is

a clear sign you misunderstood the EDD extended int 13 specification.

 

Instead of those blind "xxxx...", int 13 wants the length of your parameter block,

id est 0x001A for EDD v1.0, up to 0x0042 for EDD 3.0.

 

Providing a value which is in excess of the expected length - which is what your "xx" is accomplishing -

should be alright, but better limit yourself to 0x0042 : rather safe than sorry.

 

 

P.S : I have responded to the similar issue set by you at the Grub4DOS site - that is where I first 

noticed you having a problem. HTH anyway 


  • steve6375 likes this

#27 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 30 March 2015 - 11:46 AM

Hot swap means a drive can be inserted whilst power is on and redetected by OS.

Removable means it can be removed whilst the power is on - e.g. dismount/eject and remove.

They are not quite the same thing AFAIK but you are welcome to change the code to say whatever you like.



#28 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 30 March 2015 - 11:48 AM

Steve6375 wrote : " echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > (md)0x300+1 "

 

Uh ? Although the above "workaround" might (should) work for you, that is

a clear sign you misunderstood the EDD extended int 13 specification.

 

Instead of those blind "xxxx...", int 13 wants the length of your parameter block,

id est 0x001A for EDD v1.0, up to 0x0042 for EDD 3.0.

 

Providing a value which is in excess of the expected length - which is what your "xx" is accomplishing -

should be alright, but better limit yourself to 0x0042 : rather safe than sorry.

 

 

P.S : I have responded to the similar issue set by you at the Grub4DOS site - that is where I first 

noticed you having a problem. HTH anyway 

Thanks!

The spec was far from clear!  It just had (call)  next to the table entry  which could have meant 'before call' or 'after call'!

 

I have now fixed it using

write 0x60000 0x42


#29 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 30 March 2015 - 11:56 AM

Hot swap means a drive can be inserted whilst power is on and redetected by OS.
Removable means it can be removed whilst the power is on - e.g. dismount/eject and remove.
They are not quite the same thing AFAIK ...

Good :), but in practice WHAT is the difference? :unsure:

The moment the drive is seen by the BIOS it is ALREADY connected.
The first part of a hot swap is seemingly the same as "dismount/eject and remove".

I always thought that hot swappable meant at the same time hot removable and hot addable.

More than that, can you list WHICH specific BUSes/devices are suitable to be dismount/ejected and removed (i.e. flagged by the BIOS as "user-removable") AND ARE NOT (by design or as a side effect or collateral damage) hot-swappable? :dubbio:
 

... but you are welcome to change the code to say whatever you like.

Sure I am, the point is that personally I don't need that because I understand what you mean I was trying to tell you how the typical user of the thingy might not take the time to read about the subtle distinctions we are making here and that maybe you can find some better synonyms, as long as they do not contain the word "removable" which may create confusion to the user.

:duff:
Wonko



#30 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 30 March 2015 - 12:08 PM

I agree that 'Removable' is a confusing term - e.g. Removable drives are referred to in the UEFI specification without any definition of what they mean by 'Removable'.

A USB hard disk (RMB=0) reports itself as 'Removable' via Int 13 AH=48 as does a 'Removable' (RMB=1) Flash drive and a 'Fixed-disk' (RMB=0) USB Flash drive - but Windows lists the USB HDD and Fixed-Disk Flash drive as 'Local Disks' and the Flash drive as a 'Removable Disk'

That is why I changed the text to say User-Removable in the edited previous post.



#31 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 30 March 2015 - 12:20 PM

Yep :), and in windows you have to add the "can I host the pagefile on it?" kind of "removable" or "external" (which I believe is more similar to this case).

 

A USB hard disk ("fixed" and listed as "Local Disk") may not have the pagefile.sys on it, unless you use the Diskmod driver:

 http://reboot.pro/to...-usb-hard-disk/

 

:duff:

Wonko



#32 Ninho

Ninho

    Member

  • Members
  • 69 posts

Posted 30 March 2015 - 01:58 PM

 

Thanks!

The spec was far from clear!  It just had (call)  next to the table entry  which could have meant 'before call' or 'after call'!

 

I have now fixed it using

write 0x60000 0x42

 

If it were an output only, it would be labelled "return" rather than "call" wouldn't it ? The length is /needed/

since a BIOS  supporting 2 or more steppings of the call would need the size as /input/, lest it inadvertently overflows

buffer provided by a client which is unaware of the longer variant (or simply doesn't care about the extra pieces of data)..


Edited by Ninho, 30 March 2015 - 02:00 PM.

  • steve6375 likes this

#33 Ninho

Ninho

    Member

  • Members
  • 69 posts

Posted 30 March 2015 - 02:00 PM

Double trouble-grumble ! Really need a delete action button !


Edited by Ninho, 30 March 2015 - 02:12 PM.






Also tagged with one or more of these keywords: grub4dos, disk size

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users