Power Developer
https://powerdeveloper.org/forums/

Install problem using cp --preserve=all methode
https://powerdeveloper.org/forums/viewtopic.php?f=7&t=2707
Page 1 of 1

Author:  Aleix Orti [ Thu Apr 04, 2013 5:55 am ]
Post subject:  Install problem using cp --preserve=all methode

hello,

I'm trying to backup my debian armhf system from the SSD of the smartbook to a autobootable SD.
I've made two partitions on the SD (one for boot and one for /, as I have on the SSD);
I've copied all from SSD to SD with a cp -rv --preserve=all sentence; I've changed new fstab, and, finally, I've changed boot.scr to start SSD, to the boot.scr to start SD.

The new system in the SD starts perfectly, and all runs well until it arrives the X system login.
When I tried to log with my normal user I get a 'Failed to execute login command'.
If I try to login a tty with the same user and password I login as normally. I also tried to create a new user but I have the same problem. Futhermore If I try to login as root I can login.
I use slim as display manager.

Time ago I had a similar problem in a system I tried to install it using cp --preserve=all methode. I think it maybe a problem with the X login permissions system but I'm completly lost.

Someone can help me to fix it or at least give me some clue?

thanks in advance

Author:  Aleix Orti [ Fri Apr 05, 2013 6:24 am ]
Post subject:  Re: Install problem using cp --preserve=all methode

After reading this link http://www.debian-administration.org/articles/575 about Making a bootable backup Debian system disk,

I've done the backup to SD with a 'rsync -axv' instead a 'cp -r --preserve=all' command and it works fine!

Now I can install a new system on the ssd without lose nothing of my ancient system!

Author:  Neko [ Fri Apr 12, 2013 10:54 am ]
Post subject:  Re: Install problem using cp --preserve=all methode

Quote:
After reading this link http://www.debian-administration.org/articles/575 about Making a bootable backup Debian system disk,

I've done the backup to SD with a 'rsync -axv' instead a 'cp -r --preserve=all' command and it works fine!

Now I can install a new system on the ssd without lose nothing of my ancient system!
You should also possibly add --numeric-ids to that rsync command, since sometimes on some rsync it is not the default - otherwise it will map the NAMES of the users in the filesystem to the ones on the host system and not the ones for the target (in case you have aleix=1001 on your PC, and aleix=1000 on the Efika MX, it will turn all aleix users into uid 1001 meaning your Efika MX user will no longer "own" any files (including the home directory).

Author:  Aleix Orti [ Thu May 02, 2013 10:07 am ]
Post subject:  Re: Install problem using cp --preserve=all methode

Quote:
You should also possibly add --numeric-ids to that rsync command, since sometimes on some rsync it is not the default - otherwise it will map the NAMES of the users in the filesystem to the ones on the host system and not the ones for the target (in case you have aleix=1001 on your PC, and aleix=1000 on the Efika MX, it will turn all aleix users into uid 1001 meaning your Efika MX user will no longer "own" any files (including the home directory).
Thanks Neko, I didn't know it and I will add it.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/