English Amiga Board


Go Back   English Amiga Board > Main > Retrogaming General Discussion

 
 
Thread Tools
Old 16 December 2020, 21:18   #1
S. Campbell
Registered User
 
Join Date: Aug 2003
Location: Left a bit/ Fire!
Posts: 323
Why don't numbers work properly?

I have an SD card for my RK2020 retro handheld, onto which I want to burn a pre-made image of emulators.

SOUNDS SIMPLE, RIGHT?

- the micro SD card (a Toshiba bought from a legit UK online source) is ostensibly a 128GB one.

- the IMG file I've downloaded is 119GB according to Windows.



- except the image-writer app (BalenaEtcher) thinks the IMG is 128GB and that the card capacity is only 125GB, so refuses to write it.





- and if I try to format the card, Windows says its actual capacity is only 116GB.



WHY ARE NONE OF THESE NUMBERS THE SAME AND HOW DO I FIX IT?
S. Campbell is offline  
Old 16 December 2020, 21:32   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
Balena Etcher is bloated crap. I'm using win32 disk imager. It's small, free and it works.
jotd is offline  
Old 16 December 2020, 21:58   #3
S. Campbell
Registered User
 
Join Date: Aug 2003
Location: Left a bit/ Fire!
Posts: 323
Quote:
Originally Posted by jotd View Post
Balena Etcher is bloated crap. I'm using win32 disk imager. It's small, free and it works.
Win32 Disk Imager also complains that it doesn't have enough sectors (it claims to need something like 249,000 but only has 245,000). It's currently trying to write it anyway but I'm not hopeful.

("119GB" is actually 128,000Mb, so if I could get the card to format to 119 rather than 116 I think I'd be fine.)
S. Campbell is offline  
Old 17 December 2020, 01:28   #4
Titler
Zone Friend
 
Titler's Avatar
 
Join Date: Nov 2002
Location: UK
Posts: 303
I'm afraid your drive is reading it's true, correct size. But it's because there's a loophole in the law in how "Giga" is defined.

In normal mathematics, which uses a base 10 system, a Byte is 1000.
But in computer Bytes, which is counting in 8s, it's 1024.

It wasn't a too noticeable difference back when the values of computer storage were smaller, but the larger storage has gotten that 24 number difference has added up, so a card now with 128GB only has 115GB or so in computer terms on it... and vendors are allowed to sell under the mathematical label, as long as they say somewhere in small print what the real value the computer will read is.

I did a quick google, and found someone else who lists that a Toshiba 128gb does indeed come out at 115.2gb in computer terms.

But the important thing is, a file that is 119gb is never going to fit, so the way forward is either to buy a larger sized SD card... or look at the file and see if you can shrink it further, and read it with the emulator in a compressed/zipped state.
Titler is offline  
Old 17 December 2020, 02:19   #5
amiman99
Registered User
 
amiman99's Avatar
 
Join Date: Sep 2009
Location: San Antonio, TX USA
Age: 50
Posts: 1,184
I had the issue with few image files, always too small.

Most of the time the files in the image don't fill out the whole space on disk, so you could write it into bigger card, plug in Linux, resize the partition, image it again.
amiman99 is offline  
Old 17 December 2020, 03:53   #6
S. Campbell
Registered User
 
Join Date: Aug 2003
Location: Left a bit/ Fire!
Posts: 323
Quote:
Originally Posted by Titler View Post
But the important thing is, a file that is 119gb is never going to fit, so the way forward is either to buy a larger sized SD card... or look at the file and see if you can shrink it further, and read it with the emulator in a compressed/zipped state.
In fact Win32 Disk Imager does indeed seem to have written it, despite its own "not enough sectors" warning. Everything works so far.
S. Campbell is offline  
Old 17 December 2020, 04:30   #7
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
It'll work until it tries to read the data for the files that were at the end of the image, if there were any. It might have been empty space at the end.
Dude you need to sort out that misbehaving caps lock key.
rare_j is offline  
Old 17 December 2020, 04:37   #8
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by Titler View Post
In normal mathematics, which uses a base 10 system, a Byte is 1000.
But in computer Bytes, which is counting in 8s, it's 1024.
This is EXACTLY the problem, and the cause of so much f-ing confusion.

A digital computer is base 2, binary, ALWAYS, and so the correct term, or the one I used back then was ALWAYS 1024, it was simplicity itself.

But then ignorant people came along, years later, whined about WHY does it have to have the extra 24, because they cannot possibly fathom counting systems that use more or less than the fingers and thumbs on their hands (probably mathematically illiterate too) and yet counting systems are in use that are base 8 and base 16 as well. The base used doesn't matter (you could use base 27 if you wanted to) as long as the value is correct, and it is NOT for the first example quoted above for a digital base 2 system.

This is the reason for the confusion, I believe. They even have two different names for the bases quoted, but I will stick with what I know from the past.
Foebane is offline  
Old 17 December 2020, 07:31   #9
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Quote:
Originally Posted by amiman99 View Post
I had the issue with few image files, always too small.

Most of the time the files in the image don't fill out the whole space on disk, so you could write it into bigger card, plug in Linux, resize the partition, image it again.
If you're using linux, why not just mount the image via a loop device and copy the files out to a new card instead of wasting time writing it and reading it back in..
Jope is offline  
Old 17 December 2020, 08:25   #10
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 818
Quote:
Originally Posted by Foebane View Post
A digital computer is base 2, binary, ALWAYS, and so the correct term, or the one I used back then was ALWAYS 1024, it was simplicity itself.
Then you shouldn't use previously defined prefixes like kilo, mega and so on

Quote:
But then ignorant people came along, years later
And by ignorant you mean people who tried to redefine well established prefixes?
britelite is offline  
Old 17 December 2020, 09:52   #11
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Indeed, instead of being a legal loophole, computer size definitions have always been the anomaly when compared to SI prefixes in use for centuries. When this started to become a significant problem (around the time when hard drive sizes moved into the GB range), a new standard was established based on binary for use with computer storage sizes. This is KiB, MiB, GiB, TiB etc. system (Kibibyte, Mebibyte, Gibibyte, Tebibyte), and has been around for over two decades IIRC, enough time that people should be used to it by now

But old habits die hard, and most people (including myself) still use the old system in casual settings. But whenever there is scope for confusion, it's a good idea to be clear about the intended meaning.
Daedalus is offline  
Old 17 December 2020, 10:09   #12
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by britelite View Post
Then you shouldn't use previously defined prefixes like kilo, mega and so on

And by ignorant you mean people who tried to redefine well established prefixes?
Well, yes.
Foebane is offline  
Old 17 December 2020, 10:28   #13
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
as I said don't use balena etcher crap glad you sorted that out.

I'm using Win32 disk imager (also: open source) for years successfully, to read & write back SD cards for Raspberry Pi (that have a tendency to rot just before I need them urgently for my retrogaming events!!) and also for CF cards.

there aren't that much tools like that actually, and that WORK. A bit like .cue image burners. Only ImgBurn works.
jotd is offline  
Old 17 December 2020, 11:16   #14
jPV
Registered User
 
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 1,006
Quote:
Originally Posted by Foebane View Post
But then ignorant people came along
Wasn't it more like money hungry harddisk manufacturers who invented that they can sell disks better if they seem to be bigger than they really are? At old times they used real values, but then at some point when we went to gigabyte sizes they started to divide values by 1000...
jPV is offline  
Old 17 December 2020, 11:38   #15
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 818
Quote:
Originally Posted by Foebane View Post
Well, yes.
Doesn't really sound like it
britelite is offline  
Old 20 December 2020, 14:59   #16
S. Campbell
Registered User
 
Join Date: Aug 2003
Location: Left a bit/ Fire!
Posts: 323
Quote:
Originally Posted by Jope View Post
If you're using linux, why not just mount the image via a loop device and copy the files out to a new card instead of wasting time writing it and reading it back in..
What I heard: ARGLE FLARGLE WARGLE BARGLE SNARGLE.
S. Campbell is offline  
Old 20 December 2020, 16:04   #17
-Acid-
Registered User
 
Join Date: Oct 2012
Location: South Shields
Posts: 812
The size problem is manufacturers sell drive capacities in decimal units so 1 gigabyte = 1000 megabytes but Windows is displaying the sizes in binary so 1 GiB = 1024 MiB. Hence 128 gigabytes as sold is roughly 119.21 GiB (gibibyte) in Windows.
-Acid- is offline  
Old 20 December 2020, 17:00   #18
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by Daedalus View Post
...and has been around for over two decades IIRC, enough time that people should be used to it by now

But old habits die hard, and most people (including myself) still use the old system in casual settings. But whenever there is scope for confusion, it's a good idea to be clear about the intended meaning.
In fact, I actually think it's a spread a bit deeper than that. Most operating systems and hardware vendors still label pretty much all relevant numbers in terms of one KB=1024 bytes, one MB=1024*1024 bytes (etc).

It doesn't seem to merely be a habit that takes a while to die, but rather a de-facto standard that has never really changed. The only exceptions to the old style of doing things seem to be Apple (OSX Finder labels 1000 bytes as 1KB) and harddisk/storage manufacturers (where the confusion is compounded by most users being unaware storage capacity is always measured before any filesystem is put on there).

Anyway, I do fully agree it's silly to use a well-defined prefix and have it mean something else, but I don't see it ending on the short term. And even if it does change in a more widespread fashion, we'd still have literally millions of programs, pieces of hardware, books, etc that do not use the new definition so the confusion will likely stick around for quite a while.
roondar is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i replace Multiview or get Amigaguide to work properly? Jolabandola support.Apps 1 11 October 2019 13:27
Icons don't display properly. source support.Apps 14 17 July 2013 08:37
Why won't Megalomania work properly?!?!?!? Cookiedeathbot support.WinUAE 11 03 November 2009 19:44
Can't get SAS C 6.5 to work properly RickyD-II Coders. General 1 20 March 2007 10:26
CD32 games that work properly Ian support.WinUAE 109 25 October 2005 16:25

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

Forum Jump


All times are GMT +2. The time now is 16:41.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09509 seconds with 15 queries