[CentOS] move a disk to another machine

Thu Feb 26 18:33:05 UTC 2015
m.roth at 5-cent.us <m.roth at 5-cent.us>

Chuck Campbell wrote:
> I have a centos 6.6 laptop which is having trouble (intermittent boot
> failures, or more rightly so, multiple failures, intermittent booting).
The laptop
> is running selinux. I pulled the second internal disk out to get my data
off of
> it. I plugged it into my centos 5.x machine and mounted it. I was able
to do a
> dir listing, but whrn I tried to cd into any of the directories, I get a
bunch of AVC
> denials, and I can't see any files. The contos 5.x machine is selinux
enforcing,
> and so is the centos 6.x box. The files are all owned by me, and have
the same
> uid/gid on both boxes.
>
> What is the right way to do this?
<snip>
My reaction would have been simple: set selinux to permissive on your
machine, back up what you wanted, then return it to enforcing.

       mark