<div class="gmail_quote">On Thu, Sep 3, 2009 at 4:55 AM, Mogens Kjaer <span dir="ltr"><<a href="mailto:mk@crc.dk">mk@crc.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 09/03/2009 09:00 AM, choyaumeshu wrote:<br>
...<br>
<div class="im">>     tar --one-file-system -cf - . | tar -xpf - -C /mnt/bb<br>
</div>...<br>
> /bin/bash: Permission denied<br>
<br>
Looks like a SELinux problem. Try booting in rescue mode,<br>
mount root, and do a<br>
<br>
touch /mnt/sysimage/.autorelabel<br>
<br>
and a reboot.<br>
<br>
Mogens<br>
<font color="#888888">--<br>
Mogens Kjaer, Carlsberg A/S, Computer Department<br>
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark<br>
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08<br>
Email: <a href="mailto:mk@crc.dk">mk@crc.dk</a> Homepage: <a href="http://www.crc.dk" target="_blank">http://www.crc.dk</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br><br>Here's a update:<br>I. I did what Mogens suggested:<br>  a. reboot into rescue mode with livecd<br>  b. mount root partition<br>  c. run 'touch /mnt/sysimage/.autorelabel<br>
  d. reboot<br>and I was able to login successfully - thank you all for your suggestions<br><br>II. However, for curiosity sake, I did the following:<br>  a. fresh install of CentOS x86 5.3 install w/<br>    /dev/hda1  swap<br>
    /dev/hda2  /boot<br>    /dev/hda3  /home<br>    /dev/hda5  /<br>  this system booted up fine<br>  b. migrate the /dev/hda system to /dev/sda using the rescue livecd with the following partition<br>    /dev/sda1  swap<br>
    /dev/sda2  /<br>  c. edit grub, fstab, mtab, and run grub<br>  d. reboot the new system<br><br>  e. grub cannot find my kernel image<br>BUT<br>  f. the migration is successful if the partition of /dev/sda mirrors the table setup for /dev/hda<br>
<br>I don't know why the partition setup has to mirror the original, but I wanted to share this info with the community. I assume all this is SELinux related.<br>Thanks again.<br>