Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Mepis - The good, The Bad and the...


I have a 10 gig Mandrake partition, used perhaps 4 gig of it.
I wanted to create a directory on it and call it say "mepis-usr"
then make it the /usr directory, or make a subdirectory call "usr" to be /usr when I boot up Mepis.
Mandrake won't bother with it.

I don't want to create another partition really, or is this the only way to do it ?

Chris

----- Original Message ----- From: <amos@xxxxxxxxxxxxxxxxxx>
To: <slug@xxxxxxxxxxx>
Sent: Saturday, November 06, 2004 1:28 AM
Subject: Re: [SLUG] Mepis - The good, The Bad and the...


Martin wrote:
$quoted_author = "amos@xxxxxxxxxxxxxxxxxx" ;

mkfs the new partition
mount the new partition
take system down to single-user mode
"cp -a /usr /new/usr/partition"
umount the new filesystem
"mv /usr /oldusr"
update /etc/fstab
mount new filesystem under /usr
take system back to multi-user mode
make sure everything is ok
(possibly - backup /oldusr)
rm -rf /oldusr to free this disk space


doing it that way can be painful if you need something in /usr/lib or
/usr/local/lib after you try to move /usr out of the way to create the new
mountpoint.

What would you possibly need from there while in single-user mode?
There are about 2-3 commands which are done without /usr here, and
/bin is supposed to provide everything you'll need before mounting /usr.


i'd be inclined to boot from a live cd (knoppix, ubuntu etc.etc.) and then
operate on the disk using the tools you have on the cd.

That's a possibility too, but sounds like a hassle if you don't have
such a cd handy, and the way I offered is the the way such procedures
where done for eons before the live-cd era.


cheers
marty


Cheers,

--Amos




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 1/11/2004