TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:674] Adding new space




On Mon, 20 Jul 1998, Clark Whiting wrote:

> Date: Mon, 20 Jul 1998 10:50:11 PDT
> From: Clark Whiting <crwhiting@hotmail.com>
> Reply-To: tclug-list@listserv.real-time.com
> To: tclug-list@listserv.real-time.com
> Subject: Re: [TCLUG:674] Adding new space
> 
> Safer might be:
> 
> (as root)
> 0. Make sure you have a bootable disk -- just in case
> 1. Install & partition your new drive.
> 2. As Init mode-3, Mount the new drive (change fstab).
> 3. cp -r your /usr directory onto your new drive into the correct
>    directories / filesystems.

Make sure you use cp -dpR, as this will preserve symlinks, ownership, and
permissions!

> 4. mv usr usr.backup
> 5. Immediately creat a link by: ln -s <mount_dir> usr
> 6. Make sure the file/directory ownerships are OK.
> 6. Make sure everything works find by cd'ing into all of your
>    usual /usr directories, as if nothing were different.
> 7. Reboot and test again.
> 8. If everything is working correctly, you can delete your /usr.backup
> 9. Since there are system binaries in the /usr directory, there is 
>    a possibility that you will not even be able to reboot. This is
>    where you pull out the emergency boot disk, mount the hda drive, 
>    delete the link, and move the /usr.backup back and reboot and
>    try again.
> 
> This works great for minor directories -- but I've never tried it on
> system directories. Should be the same though... It is important that
> you create the link immediate after moving the /usr directory. you
> can even make it a single command by:
> 
>     mv usr usr.backup; ln -s <?> usr
> 
> Messing with your primary drives and directories is always risky.
> Have a boot disk handy -- and if you have a tape drive, backup first!
> At least save any critical files that are not already on disk or
> tape before doing this.
> 
> Good luck.