Moving /usr ... Is this possible?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Moving /usr ... Is this possible?
# 1  
Old 08-21-2007
Moving /usr ... Is this possible?

The server I inherited has a root partition at 98% capacity. I am curious about moving /usr to another partition to free up some space (1.1GB).
Is it possible to just mv /usr to another slice and create a symbolic link from /usr to the new location and have everything work as it had in its original location?

FYI: SunOS 5.9
# 2  
Old 08-21-2007
You have to be careful which directories are on which file system as during boot up the OS will only have access to the root file system until it starts mounting the others, which is a good reason why /bin and /usr/bin are different directories on some systems with /bin being a subset of /usr/bin.

If you get it wrong you then end up with a system that won't boot. Typically the ones you would put on different slices are /var, /opt, /export.

I would recommend trying it on a test system.
# 3  
Old 08-21-2007
Quote:
Originally Posted by FredSmith
The server I inherited has a root partition at 98% capacity. I am curious about moving /usr to another partition to free up some space (1.1GB).
Is it possible to just mv /usr to another slice and create a symbolic link from /usr to the new location and have everything work as it had in its original location?

FYI: SunOS 5.9
You could. You will need to take the system to single user for this (if you run mv /usr /somewhere/else in multiuser...). So as porter suggested, test it well first so that you know exactly what you need to do during the limited downtime.

Also, there is no need to do stuff like linking /usr anywhere else. Just mount the new slice under /usr.
# 4  
Old 08-24-2007
Does the new location have to actually be a slice called /usr, or can it be moved to /whereever with a symbolic link to /whereever called /usr?

thanks.
# 5  
Old 08-24-2007
As long as

(a) there is enough on root for the OS to begin the boot up sequence

(b) there is enough information in /etc/vfstab to mount the volume

/usr does not have to be it's own partition, but remember /usr is *heavily* used and you would be forcing every path name resolving in /usr to follow a symbolic link.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

2. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

3. Solaris

How to link sed from /usr/bin/sed to /usr/local/bin/sed?

Hi Guys, OS:- Solaris 10 64Bit I have a small query. On one server a user is facing sed command issue. He gets error regarding sed for this location /users/hoy/2999/batch5/bin/internal.sh: /usr/local/bin/sed: not found How ever the sed is actually present at this location on server:-... (13 Replies)
Discussion started by: manalisharmabe
13 Replies

4. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

5. UNIX for Dummies Questions & Answers

usr loggings??????

How and where do I get the log of any user is logged in my system? (2 Replies)
Discussion started by: zing_foru
2 Replies

6. Solaris

/usr hosed up

when I give the following commmand under cd /usr/platform/sun4u/sbin #file eeprom file: syntax error at line 1: `"\302^SÒ^D`^\^P\302ɢ^D`(^B\302^Y\302¥à\302"\302^^ê^D`^X^P\302â^D`' unexpected I had restored from tape. system is booting fine and showing no errors. Please help Thanks Jaya (1 Reply)
Discussion started by: vr76413
1 Replies

7. UNIX for Dummies Questions & Answers

Can't delete anything in /usr

I have Solaris 9 box that I am trying to clean up to use as an apache web server. In the process of attempting to remove an old copy of apache in /usr/local I have run into a problem. Logged in as root (or anything else) when trying to remove, chmod or chown anything in the /usr filesystem - the... (4 Replies)
Discussion started by: ms1951
4 Replies

8. UNIX for Dummies Questions & Answers

what is usr/bin ???

Even as a newly born newbie, I know it sounds as if I'm asking how many shoes in a pair, but such is life. I'm trying to discover java programming with osx and have only previously done simple programming with basic. I have had shell experience with the amiga years ago so I get the idea of using a... (2 Replies)
Discussion started by: nykije
2 Replies

9. UNIX for Dummies Questions & Answers

Better than asking about /usr/bin/cd...

Why does /usr/games/banner have a man page??? And why in the name of Ritchie is it in /usr/games?? Man, what a crappy game... (1 Reply)
Discussion started by: LivinFree
1 Replies
Login or Register to Ask a Question