Q: 5
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following
commands will accomplish this task?
Options
Discussion
Is anyone sure rsync (B) wouldn't clone the partition contents just like dd?
C imo.
dd if=/dev/sdc1 of=/dev/sdd1 does a raw, block-level copy, so it's the right tool for cloning the whole partition, not just files. rsync (B) only copies contents but won’t recreate partition structure or boot info-classic trick option here. Not 100% perfect if partitions are mounted/active, but for basic cloning, dd is correct. Anyone disagree?Why not use dd here? tar and rsync both just work at the file level, so you’d miss partition tables and boot sectors which are needed for a true clone. Unless they want just data, C looks like the only real choice. Anyone see a trick I missed?
Nah, rsync (B) is a trap here since it only copies files, not the whole partition structure or boot sector. For real cloning you need block-level copy, so it's C. Unless they wanted to preserve just data and not the partition metadata, which I doubt. Pretty sure about C but open to other takes if I'm missing something.
B . rsync is often used for copying data, so if you just want the files not a full bitwise clone, it could be tempting.
Had something like this in a mock, it's C for sure.
Probably B. rsync copies files and directories, so I think it works for cloning the partition's contents. dd is powerful but feels riskier if you just want a logical copy, not a full block-level image. Not 100% sure though since raw block devices might need something lower level. Disagree?
C or D? I remember official practice questions showing dd (C) as the tool to clone partitions because it does a bit-for-bit copy, which is what you need for a real partition clone. But if the goal was some kind of remote operation, scp (D) could be close, though it's not for raw partitions. If you want to be extra sure, checking the Linux+ study guide and doing a quick lab can help.
Why do they still put tar and scp in these options? C
C
Be respectful. No spam.