#[solved] Does gnome disks "create a disk image" create a perfect copy of a disk, and can you b
59 messages · Page 1 of 1 (latest)
Yes, you can also use dd
Note that the GPT UUID and the filesystem UUID are duplicated, which can cause conflicts in some cases.
You may want to change them later
I thought dd was for HDDs only and damages nvme's?
No such thing
oh, what issues might this cause?
Should I note the UUID's separately? ie. make a backup of the UUIDs of the original?
or both disks
As long as no file system or partition uses the same UUID, which is meant to be unique
how will I know
For example, your kernel may not know which partition you want to mount if you use something like root=UUID=32aefa97-e044-45e2-9729-6c0789095279.
Use lsblk -f to see filesystem UUIDs
Use ls -lha /dev/disk/by-partuuid to see partition UUIDs
okay, so they're different currently,
if I clone the disk using gnome disks, and i check using lsblk -f, and they become identical...does this mean I should change the destination disk's UUID
And any occurrences of such UUIDs in the cloned disc, e.g. in the kernel command line, GRUB config, fstab, etc.
i'm using LUKS by the way
uh, how do I check those
for reference only, you need to do your own research
- /etc/fstab
- /etc/default/grub - only if you are using grub as your boot loader.
alright
i'll just note down all the UUIDs for both disks using lsblk -f and ls -lha /dev/disk/by-partuuid
In fact, gnome-disk dumping and restoring disk images does more IO.
Than a direct copy via dd
does more IO? is that a good or bad thing
@vivid valleyif I have luks on the original disk, will LUKS be transferred to the destination? is it better to encrypt destination with LUKS separately
If you click Create Disk Images, gnome-disks will have to write 250GB to a disk image file,
When you click Restore Disk Images, gnome-disks will read this file and write it to the destination directory, this is another 250GB write.
In total, 500GB would be written.
dd would write 250 GB
which of these use dd
which one should I use to clone a disk?
Just for information, use whatever pleases you.
Sorry, I'm just a bit confused.
So either command do the same thing?
I don't want to do "what pleases me", I want to do the one that is designed for what I'm trying to achieve.
I hope I'm not being pushy.
dd and gnome-disks do the same, and gnome-disks takes an extra step by saving a disc image to a different location.
Please do your own research, and please read the DD manual page https://man.archlinux.org/man/dd.1.en
No. I am sorry if I upset you.
okay...
man pages are only very useful when you already know what it does
Mayhap this wiki will help https://wiki.archlinux.org/title/Dd
@vivid valleywait, now I understand...
So you have to create the image first, to a .img file, then restore that file using the restore option
I thought you could just create it
then boot off it
so that's why you said 500gb
Yes, this is an extra step that causes the additional 250GB to be written.
so in order to avoid this, I can use dd?
What would not happen if dd were to be used
It's a live system disk that I'm cloning, is that a problem
i'll read the article now
btw I'm not using arch
This section of the article will keep you informed. https://wiki.archlinux.org/title/Dd#Cloning_an_entire_hard_disk
It doesn't really matter.
okay. Last question, is it a problem that it's a live system that I'm cloning?
Probably, please don't clone a disc with active IO
It is better to do it in another OS, such as Arch Live ISO.
... solved
#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you