Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-05-2003, 11:15 AM
|
#1
|
Member
Registered: Sep 2003
Posts: 71
Rep:
|
Resize / ?
I am trying to do $ pkgadd -d gcc-3.3.2-sol9-sparc-local but the solaris pkgadd reports out of space on disk.
I am assuming that it writes files to /var temporarily, and eventually /usr, which are both just mounted on the /.
My question then is how can I make the / filesystem bigger without losing data or reinstalilng solaris from scatch?
Many thanks.
|
|
|
12-05-2003, 11:26 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You would need to repartition your drives using a partition tool, etc.
You could however check your /var directory for large log files that you can clean out possible and check your /tmp directory for temp files you can clear out to temporarily gain some more space, etc.
|
|
|
12-05-2003, 11:39 AM
|
#3
|
Member
Registered: Sep 2003
Posts: 71
Original Poster
Rep:
|
I thought as much.
Can you recommend a partitioning tool to use?
I basically need to enlarge the existing /, which lives on /dev/dsk/c0t0d0s1 so that it fills that disk.
|
|
|
12-05-2003, 12:20 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018
Rep:
|
You could also use a different partition mounted as /usr or /var, to free up some space. If you have a spare partition available (or unused space that could be made into one), format it, mount it in a temporary location like /tmpusr or /tmpvar, copy (recursively with '-R', along with '-dp' to preserve symbolic links and such) everything from /usr or /var to it. Then you can clear off the space from your root partition, and mount the new partition as /usr or /var. I don't know how precisely that'd work in Solaris, but it should be feasible.
If you don't have a spare partition lying around, though, the best thing would be as suggested above; find some way to clean off old logs and stuff. Barring that, you may have to use a partition resizing program like GNU parted.
It's because of this possibility that I left a big chunk (30GB) of a new 80GB hard drive unpartitioned. Kind of a waste, since I can't use the space, but that way, if I run out of room later, I can always make a new partition in the unused space without worrying about losing data on an existing partition.
|
|
|
12-06-2003, 12:10 PM
|
#5
|
Member
Registered: Sep 2003
Posts: 71
Original Poster
Rep:
|
Thanks for the reply, all sorted now!
|
|
|
All times are GMT -5. The time now is 01:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|