## how we can calculate this bytes(55207936) in to MB(output=26957)

how we can calculate this bytes(55207936) in to MB(output=26957)
# 1
09-29-2009
how we can calculate this bytes(55207936) in to MB(output=26957)

root@erpdevserver \$ vxassist -g devdg maxsize
Maximum volume size: 55207936 (26957Mb)

This is the output in vxvm(3.1).. my question is
how we can calculate this bytes(55207936) in to MB(output=26957) or in GB.plz tell how to calculate
 tv.praveenkumar View Public Profile for tv.praveenkumar Find all posts by tv.praveenkumar
# 2
09-29-2009
1 KB = 1 KiloByte = 2^10 (1024) Bytes
1 MB = 1 MegaByte = 2^10 (1024) KiloBytes = 2^20 (1048576) Bytes
1 GB = 1 GigaByte = 2^10 (1024) MegaBytes = 2^20 (1048576) KiloBytes = 2^30 (1073741824) Bytes
and so on to TB, PB, EB, ZB, ....

And there's no way to get to ~26 GB from 55207936, so I highly doubt that's given in Bytes, but rather stripes (or something similar).
 pludi View Public Profile for pludi Find all posts by pludi
# 3
09-29-2009
This number is in sectors. A sector is 512 bytes long.
55207936*512=28266463232=26957MiB.
 jlliagre View Public Profile for jlliagre Find all posts by jlliagre

Test Your Knowledge in Computers #635
Difficulty: Medium
The iPhone 6 and 6S were available in three sizes at launch: 32, 64, and 128 GB.
True or False?

## Shell script - entered input(1-40 bytes) needs to be converted exactly 40 bytes

hello, suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly. example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly. enter your name: donald duck (this is of 11 bytes) expected is as below - display 11...

## X bytes of 0, Y bytes of random data, Z bytes of 5, T bytes of 1. ??

Hello guys. I really hope someone will help me with this one.. So, I have to write this script who: - creates a file home/student/vmdisk of 10 mb - formats that file to ext3 - mounts that partition to /mnt/partition - creates a file /mnt/partition/data. In this file, there will...

## awk to calculate timex output

I have a timex 'dd' command that generates an output similar to this: real 701.92 user 3.06 sys 469.10 for the moment, i m redirecting the output to a temp file to stage the calculation (using bc) for: a) MB/s b) cpu usage = 100*(user+sys)/real I am looking around for an 1-liner...

## Output only first 400 bytes of a huge text file

How do I output only the first 400 bytes of a huge text file to a new file. It has to be unmodified so no added invisible characters. Many thanks.....

## Copying 1024 bytes data in 3-bytes chunk

Hi, If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script. dd bs=1024 count=3 if=/src of=/dest But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help.

## Error PHP Fatal error: Allowed memory size of 67108864 bytes exhausted(tried to allocate 401 bytes)

While running script I am getting an error like Few lines in data are not being processed. After googling it I came to know that adding such line would give some memory to it ini_set("memory_limit","64M"); my input file size is 1 GB. Is that memory limit is based on RAM we have on...

## Remove first N bytes and last N bytes from a binary file on AIX.

Hi all, Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this? Your help is greatly appreciated!! Best Regards, Naveen.

## calculate output

I was wondering can anyone give me a clue how to start script which would do the following: I have 2 numbers as input for example: 100 and 1000 and I need to create file and in that file should be written 100 - 199 200 - 299 300 - 399 400 - 499 500 - 599 600 - 699 700 - 799...

## cron output = 0 bytes

I have a cron job set to run a script everyday. If I run the script out side of cron it runs correctly. If cron runs the script is produces a 0 byte file and it puts the output in the / directory. The script is set to put the output in a specific directory. Any help would be appreciated.