Question

Using dd commands (linux) and its variations, given a usb, how would you: 1.) Create a...

Using dd commands (linux) and its variations, given a usb, how would you:

1.) Create a bit-wise image called image.dd

2.) Create a bit-wise image called image.dd with sha1 hash

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1
*********

Syntax
*******

dd if=/dev/input/DEVICE-HERE of=/dev/OUTPUT/DEVICE-HERE bs=64K conv=noerror,sync

where

1) if=/dev/file : Input device/file.
2) of=/dev/file : Output device/file.
3) bs=64k : Sets the block size to 64k. You can use 128k or any other value.
4) conv=noerror : Tell dd to continue operation, ignoring all read errors.
5) sync : Add input blocks with zeroes if there were any read errors, so data offsets stay in sync.

first find the usb drive using following command
sudo lsblk

find device path, LABEL, UUID and TYPE of block devices with help of command
sudo blkid

# sudo dd if=/dev/sda of=/home/madhav/Desktop/image.dd bs=64K conv=noerror,sync

above is my home desktop path of madhav username
Answer 2
***********
sha1sum {file}

# sha1sum image.dd

above command will generate sha1 sum for the file

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

Add a comment
Know the answer?
Add Answer to:
Using dd commands (linux) and its variations, given a usb, how would you: 1.) Create a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. the commands you used to create the directories and files in Linux and Windows; 2....

    1. the commands you used to create the directories and files in Linux and Windows; 2. the commands you used to determine default permissions in Linux and Windows; 3. the commands you used to change permissions on your files in Linux and Windows; 4. a paragraph about how directories and file permissions work and what was the same or different between Windows and Linux.

  • [1] How can you change the inode associated with a regular file? Specifically, what commands can...

    [1] How can you change the inode associated with a regular file? Specifically, what commands can you run that will result in a file that has exactly the same name as before but has a different inode? Please give the commands and explain what each does. [1] Does a "hole" in a UNIX file affect its logical size? What about its physical size? Explain briefly. [1] To setup key-based login using ssh, what file do you have to create or...

  • You are the backup administrator for a large trust company. The backup server is a Linux...

    You are the backup administrator for a large trust company. The backup server is a Linux operating system server. Your goal is to create a backup plan utilizing a technique from Chapter 11. Select from the following: Tape Archive Copy in Out Dump Dd Disc Buring Software Explain why you would select this technique. Once you have selected the technique, describe the commands you would utilize to set up the backup (give command examples). Your paper should be 1-2 pages...

  • Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the...

    Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the current working directory, (2) list the contents of a directory, (3) change directory, (4) create a directory, (5) clear the screen, (6) copy a file from a directory into another directory, (7) delete a directory, (8) delete a file, (9) report information for a single process or set of processes, and (10) report a real-time statistics for current processes.

  • Questions: 1) Write a simple program to create three processes using fork() commands. Use any three...

    Questions: 1) Write a simple program to create three processes using fork() commands. Use any three of the six system calls to show how each child process executes new sub-programs using exec’s minions. Show the output of each of the child process with different data samples.   2) Write a simple program in your Linux environment using C++ to identify PID, PPID and GID for the processes created in Question 1 and display the real and effective user ID.   3) Modify...

  • In some cases, people who are not strong in Linux may need to run specific Linux...

    In some cases, people who are not strong in Linux may need to run specific Linux commands. To make this easier, you can create a menu-driven program that runs these Linux commands. Such a program allows users to execute the commands without having to actually know about how to execute them. For this scenario, create a menu-driven program that has the following options: 1. List users who are logged in (using the who command) 2. List system information (using the...

  • Revision Question 3 on Linux. Please explain the shell script commands in the context of post...

    Revision Question 3 on Linux. Please explain the shell script commands in the context of post execution. You have just logged in and have a directory called "novel" in your home directory containing the following files: chapter1.docx chapter2.docx chapter3.docx draft.pdf save where "save" is itself a directory and contains the files Attributes.txt draft.pdf.1 draft.pdf.2 draft.pdf.3 indexA.txt indexB.txt list1.txt list2.txt a) Describe the results you would expect when executing the following shell commands: i) ls novel/save/*A* ii) ls novel/*r[23]* iii) rmdir...

  • Without writing any explanations, write Linux commands to achieve the following tasks: 1) create the subdirectories...

    Without writing any explanations, write Linux commands to achieve the following tasks: 1) create the subdirectories with the names...alpha, beta, gamma, and delta based on the following path: ~/alpha/beta/gamma/delta 2) Move to the delta subddirectory and create the following files: a.txt, b.txt, c.txt, ... Zetxt (totally 26 files). list these files to make sure they are created. 3) Move a.txt, b.txt and cutxt to the gamma Subdirectory and list these files from within the gamma subdirectory. 4) Move to your...

  • 1.Which of the following Linux scripting commands would be used to access the single command-line parameter...

    1.Which of the following Linux scripting commands would be used to access the single command-line parameter that a user has typed on the command-line? Group of answer choices A) $0 B) $# C) $$ D) $* E) $1 2. If I type the command “update my local Internet settings” (without the quotes) at the Linux command-line, from within the running script which of the following variables would the word “Internet” be stored in, if the script gets run correctly? Group...

  • Boot into your Linux partition (or open Linux in a VirtualBox VM). You will create a...

    Boot into your Linux partition (or open Linux in a VirtualBox VM). You will create a new directory in your home directory called csci2020u/lab02. We’ll add this folder to the Git repositories. Use the following steps to complete this lab: 1. Change into the csci2020u directory 2. Make a new directory, called lab02 3. Add the lab02 directory to Git 4. In the lab02 directory, create the directory structure used by Gradle (the files will be initially empty, you can...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT