Now unmount the filesystem. Create a sparse image file, called book.img, of the 2GiB hard drive. Use a hexdump program to look at book.img and work out the offsets that store the contents of the book youdownloaded. Record the offsets as a sequence of one or more ranges of hexadecimal numbers. For example, in the following hexdump the text The rain in Spain falls mainly on the plain. is stored at 0x10-0x1f, 0x30-0x4b (inclusive). 00000000: 0000 0000 0000 0000 0000 0000 0000 0000 .................00000010: 5468 6520 7261 696e 2069 6e20 5370 6169 The rain in Spai00000020: 0000 0000 0000 0000 0000 0000 0000 0000.................00000030: 6e20 6661 6c6c 7320 6d61 696e 6c79 206f n falls mainly 000000040: 6e20 7468 6520 706c 6169 6e2e 0000 0000 n the plain........ Compress the filesystem using gzip by running: #gzip book.img This should leave you with a file book.img.gz. You will use scp to transfer this file in a later task. Enter your ranges in answers2.json as the answer for question1. To receive points your answer must be in acomma-separated list of hexadecimal ranges and must be inclusive with the last byte, e.g., 0x10-0x1f,0x30-04b.
Now unmount the filesystem. Create a sparse image file, called book.img, of the 2GiB hard drive. Use a hexdump program to look at book.img and work out the offsets that store the contents of the book youdownloaded. Record the offsets as a sequence of one or more ranges of hexadecimal numbers. For example, in the following hexdump the text The rain in Spain falls mainly on the plain. is stored at 0x10-0x1f, 0x30-0x4b (inclusive). 00000000: 0000 0000 0000 0000 0000 0000 0000 0000 .................00000010: 5468 6520 7261 696e 2069 6e20 5370 6169 The rain in Spai00000020: 0000 0000 0000 0000 0000 0000 0000 0000.................00000030: 6e20 6661 6c6c 7320 6d61 696e 6c79 206f n falls mainly 000000040: 6e20 7468 6520 706c 6169 6e2e 0000 0000 n the plain........ Compress the filesystem using gzip by running: #gzip book.img This should leave you with a file book.img.gz. You will use scp to transfer this file in a later task. Enter your ranges in answers2.json as the answer for question1. To receive points your answer must be in acomma-separated list of hexadecimal ranges and must be inclusive with the last byte, e.g., 0x10-0x1f,0x30-04b.
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
Related questions
Question

Transcribed Image Text:Now unmount the filesystem.
Create a sparse image file, called book.img, of the 2GiB hard drive.
Use a hexdump program to look at book.img and work out the offsets that store the contents of the
book youdownloaded. Record the offsets as a sequence of one or more ranges of hexadecimal
numbers. For example, in the following hexdump the text The rain in Spain falls mainly on the
plain. is stored at 0x10-0x1f, 0x30-0x4b (inclusive).
00000000: 0000 0000 0000 0000 0000 0000 0000 0000 .................00000010: 5468 6520 7261
696e 2069 6e20 5370 6169 The rain in Spai00000020: 0000 0000 0000 0000 0000 0000 0000
0000.................00000030: 6e20 6661 6c6c 7320 6d61 696e 6c79 206f n falls mainly 000000040:
6e20 7468 6520 706c 6169 6e2e 0000 0000 n the plain........
Compress the filesystem using gzip by running:
#gzip book.img
This should leave you with a file book.img.gz. You will use scp to transfer this file in a later task.
Enter your ranges in answers2.json as the answer for question1. To receive points your answer
must be in acomma-separated list of hexadecimal ranges and must be inclusive with the last byte,
e.g., 0x10-0x1f,0x30-04b.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning