229k views
4 votes
Which statement is used to partition an image on another machine?

Option 1: netcat -l -p 1234 | dd of=/dev/hdc bs=16065b
Option 2: dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=notrunc,noerror
Option 3: dd if=/dev/fd0 of=/home/sam/ conv=notrunc
Option 4: None of the above

User Coltfred
by
7.2k points

1 Answer

3 votes

Final answer:

Option 1 is the correct statement to partition an image on another machine, combining netcat with dd to receive data over the network and write it to a hard drive partition.

Step-by-step explanation:

The statement used to partition an image on another machine from the options provided is Option 1: netcat -l -p 1234 | dd of=/dev/hdc bs=16065b. This command combines the use of netcat and dd. Netcat listens on port 1234 and receives data, which is then piped to dd, writing it directly to a hard drive partition, /dev/hdc, on the machine. The block size (bs) is set to 16065 bytes.

Option 2 is a standard dd command used for copying data from one partition to another on the same machine, not across a network to another machine. Option 3 is also a dd command but is used for copying data from a floppy disk to a file in a user's home directory. Thus, Option 1 is the correct answer for partitioning an image on another machine or network cloning.

User Frenchi In LA
by
8.5k points