Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/usr too small! 2

Status
Not open for further replies.

tech84

Technical User
May 18, 2000
126
US
This is driving me crazy! I made the /usr file system too small, now I can't figure out how to increase its size. Don't you have to umount before you can alter the size? And you can't umount that file system, can you? It's a Sparc 5 system w/64MB of RAM and a 2X CD-ROM, so I'm not looking forward to having to reinstall! ZZzzzzzzzzzz....

Thanks for your help!

Mike Mike
[morning]
 
Oh wait! Can I use the format command, then in the partition menu, select the slice in question, change the partition size, then label the disk? I hope so. Of course, I'd also have to change the starting cyl of the slice next to it since the entire disk is taken up by two slices. (small disks) Mike
[morning]
 
Oh boy... say I change the starting and/or ending cylinder using the format> partition command, as I stated above. Once I use the format> partition> label command, will it move the data as well, or will I be screwed? I'd hate the change the slice sizes only to discover my data is gone!!

Any pointers?

Thanks! Mike
[morning]
 
I think the best way of doing this is as follows.

1) Perform a FULL system backup, preferably in single user mode.
2) Boot up using the CD-Rom with "boot cdrom -s" to a root prompt.
3) Repartition the disk that conatins /usr
4) Mount each affected partition as /mnt and cd to it.
5) Restore each file system.
6) Boot up as normal.

Anybody agree or disagree?
 
doing this, you have to reinstall /usr my be more!
there are 3 possibilities:
a) need time
reinstall
b) quick
mv big-usr-dirs to other locations and link them
suppose /export is a partition
cd /usr
#on older unix you cannot 'mv' across filesystems
tar cfb - 126k openwin|(cd ../export; tar xfvp -)
ln -s ../export/openwin
C) very complex + need experiance:
save /usr
boot single
configure a pseudo root dir
then using chroot: repartition of /usr, newfs, restore saved /usr, reboot :( ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
Thanks! These are both very useful posts. I may have to opt with option a or b from jamisar, since this is a cheap little system to practice on and I have no means to perform backups. Option b looks like a winner.

Thanks again to both of you!

Mike Mike
[morning]
 
I used the tar w/soft link option, and it works great! I had a /home file system that was completely empty, so I mounted it as /usr2 (changing the /etc/vfstab file as well), and moved the openwindows folder/subfolders there. Problem solved! Thanks again!

Mike Mike
[morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top