🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54036

A quick config query.

#54036
From: Tony Langdon
Date: Sat, 29 Nov 1997 00:00
61 lines
2693 bytes
It's 26 Nov 97  13:38,
We'll return to dstanawa@mail.usyd.edu.au and All's
discussion of A quick config query.

 ds> I would like to move my /usr directory to a new filesystem, and mount
 ds> it onto the root filesystem on startup.

 ds> Are there any warnings that people would like to share.

What you have to be careful about is that your /usr tree is accessible
at all times during this process, otherwise strange things may occur
(like commands not being found when needed).

The process I use goes something like:

Mount the new /usr partition somewhere on the filesystem, e.g.

mount -t ext2fs /dev/hdd1 /mnt/tmp

Next, copy the /usr tree to the new partition:

cp -ar /usr/* /mnt/tmp  (make sure you use the -ar options here!)

Finally, unmount the new /usr from /mnt/tmp.  You can do a test mount by
mounting it over the top of the old /usr tree and see if all is well.
Otherwise, you can simply rename the old /usr directory and mount the
new one in its place.

e.g. mv /usr /oldusr
mkdir /usr
mount -t ext2fs /dev/hdd1 /usr

Now, confirm all is OK, and if it is, you can rm -rf /oldusr (I'd leave
this step until the system has been running a while, just in case you
slipped somewhere :) ).

 ds> Also
 ds> In what script and where in the script should I mount the device on
 ds> /usr in /etc/rc.d
 ds> (I have Redhat 4.1)

Make an entry in /etc/fstab, so /usr is mounted automatically at boot
time.  You can use the X based control panel can do this if you like.

 ds> And just for the record (I doubt it is relevant)
 ds> it is a quantum fireball 420Mb drive and it is the secondary slave,
 ds> and has one primary partition which is an ext2 filesystem.

Only relevant piece of information is the drive being a secondary slave
and having one partition.  That makes your new partition /dev/hdd1 (note
I used this in my examples :) ).

... If Marriage is Outlawed, only Outlaws will have Inlaws!
--
| Fidonet:  Tony Langdon 3:632/367.2
| Internet: tlang@freeway.DIALix.oz.au
|
| Freeway Internet Gateway, Melbourne, Australia.  For information about
| our services and conditions of use, e-mail:
| info@freeway.DIALix.oz.au, to receive a copy of the FAQ.
Technical Details
Message-ID: <e9e_9711301645@freeway.DIALix.oz.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <65g5b9$lgh@metro.usyd.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,c00196e6083c9214
X-Google-Attributes: gid102983,public
From: tlang@freeway.DIALix.oz.au (Tony Langdon)
Subject: A quick config query.
Date: 1997/11/29
Message-ID: <e9e_9711301645@freeway.DIALix.oz.au>
X-Deja-AN: 293824182
References: <65g5b9$lgh@metro.usyd.edu.au>
Organization: Fidonet: Freeway Usenet <=> FTN gateway 
X-FTN-To: dstanawa@mail.usyd.edu.au
Newsgroups: aus.computers.linux