1831642 Members
1814 Online
110027 Solutions
New Discussion

how many bytes in a Mb

 
SOLVED
Go to solution

how many bytes in a Mb

Using HPUX 10.20 doing an lvdisplay, I have 680Mb's. Does 1Mb = 1,000,000 bytes or 1,048,576 bytes?
4 REPLIES 4
Ron Cornwell
Trusted Contributor
Solution

Re: how many bytes in a Mb

There are 1024 byte in 1 KB, there are 1024 KB 1 1MB. 1024x1024=1048576.
A. Clay Stephenson
Acclaimed Contributor

Re: how many bytes in a Mb

Although the term is ambiguous in this case it it 2^20.
If it ain't broke, I can fix that.
MANOJ SRIVASTAVA
Honored Contributor

Re: how many bytes in a Mb

Here it goes

1 KB = 1024 Bytes
1 MB = 1024*1024 = 1048576 Bytes
1 GB = 1024*1024*1024 = 1073741824 Bytes

Manoj
Carlos Fernandez Riera
Honored Contributor

Re: how many bytes in a Mb

This a disk labeled 18.2


SCSI describe of /dev/rdsk/c2t0d0:
vendor: SEAGATE
product id: ST318203LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
rev level: HP01
blocks per disk: 35566480
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)52 (33)43 (34)34 (35)30 (36)31 (37)31 (38)31 (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0
(48)0 (49)0 (50)0 (51)0 (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0
(70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0
(92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (104)29 (105)20 (106)31 (107)39 (108)39 (10
9)39 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (123)2 (124)1e (125)b3
(126)90 (127)0 (128)0 (129)2 (130)0 (131)0 (132)0 (133)0 (134)0 (135)0 (136)0 (137)0 (138)0 )


#bc b=17783240*1024
b
18210037760
scale=2
b/(1024^3)
16.95


Giga of 1000, 1024 or ..?
unsupported