Ask Your Question

How use tune2fs in DD?

asked 2014-02-28 11:21:21 -0500

Vitor Mazuco gravatar image

In This tutorial is write "To regain unique UUIDs, use "tune2fs /dev/sdbX -U random" on every partitions."

Ok, but how can I use with this command?

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

Or I have to use after dd comand?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-28 14:41:13 -0500

jmt gravatar image

You example command copies the entire disk sda over the disk sdb. Every partition on sdb will have the same UUID as the original partition. If you want to change the UUIDs, you'll have to issue the command

tune2fs /dev/sdbX -U random

for every partition on the disk sdb (where X is the partition number starting from 1).

This, of course, assumes that you have an ext2/ext3/ext4 file system on these partitions.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-02-28 11:21:21 -0500

Seen: 219 times

Last updated: Feb 28 '14