Re: after rsync restore - cannot login



On Tue, 30 Dec 2008 15:10:33 -0700
Kevin Kempter <kevin@xxxxxxxxxxxxxxxxxxx> wrote:

Hi All;

I did a backup of a test Fedora 10 install as follows:

1) installed Fedora 10 and applied no updates

2) booted into single user mode and as root ran this:

rsync -av <dir> /stage/backup

I wrapped the above rsync command in a script where <dir> is replaced
with the root (/) dir's I want backed up. Basically everything
except the following:

/proc
/dev
/sys
/stage


Then I rebooted, and ran a yum update, installed a new kernel, many
packages, etc


Then as a test I booted back into single user mode and as root ran
this:

rsync -av --delete /stage/backup/<dir> /

again the above command was in a script where <dir> was replaced with
the same list of root (/) dirs as I used for the backup

once complete I rebooted and now I cannot login, I get to a login
screen but a login just takes me back to the login screen again.

I booted into single user mode, and ran init 3
at the login prompt I tried to login as root and some text flashes by
the screen too quickly to read however I did catch the phrase
'permission denied'

What have I done wrong ?

You need to use -X with rsync to preserve the selinux extended
attributes on files. You probibly also want -A for acls.

Right now you should be able to touch /.relabel on the machine and
reboot and it should go through and fix all the selinux lables and
hopefully let you login.


Thanks in advance...


kevin

Attachment: signature.asc
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Relevant Pages

  • Re: Fedora 9, installed, but no desktop
    ... but with Fedora 9 on booting up there is no desktop. ... How can I get the different desktops that FC3 has? ... Last login: Thu Jul 31 16:43:04 on tty1 ... On the face of it, even though you elected to install Everything, it looks ...
    (Fedora)
  • Re: Cannot Telnet to Solaris 5.7 server
    ... In order to install this oftware the user had to clear some ... I was attempting to login as root on the grpahical screen, ... below the screen went black then flashed back to the login screen. ... This is on a Solaris 5.7 server and I noticed that there is no Bin ...
    (comp.unix.solaris)
  • Re: FC2 post-install hangs on dual boot system - SOLVED, KIND-OFF, NOT REALLY.
    ... Trying to dual boot Windows XP Pro and Fedora Core 2 on a Dell Dimension ... Use the kernel that works for now, ... as root from the console or xterm session type ... And install them from the console or xterm session by ...
    (linux.redhat.install)
  • Re: fedora-list Digest, Vol 5, Issue 411
    ... Re: text login ... Re: freeware x-server ... Fedora Core 2 and Lucent WinModem ... My first attempt to install FC2 failed during the installation of packages, ...
    (Fedora)
  • RE: Urgent help needed with Login problems after installation of FC1
    ... can't login. ... >From Gnome desktop, I was able to logout user, login root, over and ... Am able to boot from floppy. ... >After another minimal install, I was able to add my user and su to ...
    (Fedora)