Re: move a disk to another machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Feb 26, 2015 at 10:49 AM, Chuck Campbell <campbell@xxxxxxxxxxxx> 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?

Mount with a permissive context:
mount -o context=unconfined_u:object_r:default_t

If you mount without that, ls -Z will show you the labeling and you
can probably figure out why you're getting the denials based on the
AVC message.


-- 
Chris Murphy
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux