Re: Best way to copy /usr to different partition?

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

 



On Thu, Dec 06, 2007 at 07:31:28PM -0800, Daniel B. Thurman wrote:
> 
> I was getting dangerously close to running out of disk space
> since /usr was filling up fast.
> 
> I thought it was simple to tar-copy /usr to a different drive/partiton
> using tar copy such as:
> 
> (cd /usr; tar cpf - .) | (cd /newpartition; tar xpf -)
> 
> I tar copied the contents of /usr into my new drive/partition
> and I changed the partition label to /usr, updated my
> /etc/fstab file, renamed my /usr to /usr-b, created
> an empty directory /usr, chmod it to 775, mounted
> /usr - and it all looked fine.  I then unmounted /usr,
> and then rebooted.
> 
> The reboot reported that there was a problem with
> the two library files: somelibfile.so.1 and somelibfile.so.2
> and then gnome came up with user/password screen.
> 
> I logged in as a normal user, and after that point, I a
> black screen came up with the gnome-X-cursor and
> then stopped.  Nothing worked at this point.
> 
> I then rebooted using rescue CD, and examined the
> messages log file and it appears that selinux reported
> all sorts of AVC denied over /usr and other non-system
> mounted filesystems.
> 
> Clearly, it seems that selinux is having problems.
> 
> I suppose I can reboot setting the selinux = 0 and then
> begin the task of somehow repairing selinux tags in all
> of my files?  Does this make any sense?
> 
> Anyone have a better solution?
> 
Personally I'd try 'cp -R', that's supposed to handle most
things OK.


-- 
Chris Green

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux