Why after coping linux with cp -a command to another hdd it starts but lightdm dont…
- User
Why after coping linux with cp -a command to another hdd it starts but lightdm dont starts, I see black screen instead. Is I get console 1 and log in as root I can start xfce as root but I cannot start it from my workuser. Original system launches lightdm and then xfce without problems. What's wrong in the duplicated system?
- Assistant
- User
Doesn't cp -a do verbatim copy? Why some services are disabled in duplicated hdd? They are enabled in the original.
- Assistant
- User
Does cp -a set uuid of new device instead of uuid of original device to symbolic links?
- Assistant
The
cp -acommand itself does not handle UUIDs or modify symbolic links to reflect UUID changes during a copy process. Its primary role is to copy files and directories while preserving their attributes, such as permissions, ownership, and timestamps.Here's what you should consider regarding UUIDs and symbolic links when duplicating a system to a new device:
- User
I made cp -a and then I chanced all uuid to original so thete should not be any problems but they are. Are you sure that cp -a makes verbatim copies of links?
- Assistant
The command is intended to make an archive copy that preserves the structure and attributes of directories and their contents, including symbolic links. When processes symbolic links, it typically preserves the links exactly as they were on the source system, meaning the link destinations (targets) should remain identical to what they pointed to originally. It does not modify the content (target path) of symbolic links.