The officially official Devuan Forum!

You are not logged in.

#26 2024-08-27 20:42:14

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 213  

Re: how restore default permissions root folder after copy OS to SSD?

if it so, why this important thing not mentioned in the rsync manual at first place?

That I do not know.  I have moved/archived/copied installs this way for several years now.  When using only devuan to copy or rsync an install this was never an issue, so I never used the "--numeric-ids" in my rsync command.  However, once I used a different operating system, this became an issue.  So I tried it on the recommendation in the Void forums, and it worked.  I used devuan to rsync a different linux OS, and "--numeric-ids" worked.

It is mentioned in the rsync man file:

man rsync

--numeric-ids            don't map uid/gid values by user/group name

Offline

#27 2024-08-28 16:51:28

chris2be8
Member
Registered: 2018-08-11
Posts: 309  

Re: how restore default permissions root folder after copy OS to SSD?

It won't matter if on both systems the users have the same numeric UID and GID. But it will make a difference if the users have different UIDs or GIDs. Check /etc/passwd on both systems to see what is likely to happen.

Eg if chris has UID 1000 on the source system and UID 1001 on the target you don't want to use --numeric-ids.
But if the names differ but have the same UID (eg chris is UID 1000 on source and fred is UID 1000 on the target (chris doesn't exist on it)) --numeric-ids would leave everything owned by fred.

I hope that's enough to let you understand what difference it would make.

Offline

#28 2024-08-28 18:40:14

nahkhiirmees
Member
Registered: 2022-07-24
Posts: 261  

Re: how restore default permissions root folder after copy OS to SSD?

To deepforest: look at the link about dd's man page or say in terminal:

man dd

. The most essential parameters are "if=/dev/source" and "of=/dev/target".

Although, if you're not familiar with dd, i strongly recommend experimenting inside a vm first before using "dd" in bare metal.

Dd'ing to smaller partition will result in a damaged target partition and some complaints from dd when target runs out of space. So, not recommended.

Offline

#29 2024-08-28 20:29:32

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: how restore default permissions root folder after copy OS to SSD?

shit too
try it
its so slooow working
its searching all my partitions about 10-15 min
i start clonzilla iso to ram from easy2boot flash


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#30 2024-08-29 06:28:59

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: how restore default permissions root folder after copy OS to SSD?


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#31 2024-09-01 07:57:44

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: how restore default permissions root folder after copy OS to SSD?

@chris2be8

It won't matter if on both systems the users have the same numeric UID and GID. But it will make a difference if the users have different UIDs or GIDs. Check /etc/passwd on both systems to see what is likely to happen.

Eg if chris has UID 1000 on the source system and UID 1001 on the target you don't want to use --numeric-ids.
But if the names differ but have the same UID (eg chris is UID 1000 on source and fred is UID 1000 on the target (chris doesn't exist on it)) --numeric-ids would leave everything owned by fred.

I hope that's enough to let you understand what difference it would make.

and what happens if i use  --numeric-ids, but with same user names?
at cloned disk, at /etc/group, /etc/passwd my user have 1000:1001 is it correct?


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#32 2024-09-01 16:46:31

chris2be8
Member
Registered: 2018-08-11
Posts: 309  

Re: how restore default permissions root folder after copy OS to SSD?

If the ID has the same name, UID and GID then  --numeric-ids won't make any difference.

Try an experiment copying a small directory with various options and see how it works.

Offline

#33 2024-10-10 15:24:15

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 206  

Re: how restore default permissions root folder after copy OS to SSD?

regarding post number 8 in this thread.

i can no longer recommend PartedMagic after discovering multiple reports of very poor customer service.

see these links for just a few such instances:

https://www.reddit.com/r/sysadmin/comments/8k61r6/partedmagic_anyone_else_still_using_it_any/

https://www.trustpilot.com/review/partedmagic.com

edited: added more content

Last edited by stargate-sg1-cheyenne-mtn (2024-10-11 20:18:37)


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

Board footer