[Techtalk] Re: [Newchix] Out of room for /usr, and replacing java

Alvin Goats agoats at compuserve.com
Tue Mar 11 16:35:24 EST 2003


> > 2)  Create the new partiton, make the filesystem. Mount this partition
> > to someplace, i.e. I make a directory /alvin and mount there for
> > anything that I want to be totally temporary and not confused with
> > anything else. It is fairly easy to do the copy with the gnu midnight
> > commander (mc) by highlightig /usr and pressing 'F5' to copy /usr to the
> > '/alvin' directory. This makes it easier for newbies as well as pro's as
> > you don't have to remember any of the arcane commands.
> 
> Do you really want to be doing that? Won't you loose the file permisions?
> Apologies if I'm wrong, I've assumed that midnight commanders copy works
> like cp. I've always used something like cpio to transfer files like this.
> 


I've done this numerous times. mc will copy everything keeping the
permissions the same as long as 'preserve attributes' is checked. Leave
everything else in the copy to: sectiion unchecked. The copy from
section "Using shell patterns" is checked. This is the default settings
of mc in Slackware. 

The links will be "broken" (i.e. red with DIR-COLORS on) until the
system is rebooted. This is because the links are defaulted to look
under the normal /usr... structure and not the /alvin/usr.... one. Once
everything is rebooted, you'll have the links active again as the
/usr... structure is now valid.

Alvin


More information about the Techtalk mailing list