LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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


Reply
  Search this Thread
Old 12-05-2003, 11:15 AM   #1
Sugarat
Member
 
Registered: Sep 2003
Posts: 71

Rep: Reputation: 15
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.
 
Old 12-05-2003, 11:26 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 12-05-2003, 11:39 AM   #3
Sugarat
Member
 
Registered: Sep 2003
Posts: 71

Original Poster
Rep: Reputation: 15
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.
 
Old 12-05-2003, 12:20 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
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.
 
Old 12-06-2003, 12:10 PM   #5
Sugarat
Member
 
Registered: Sep 2003
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the reply, all sorted now!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor will not resize Drifter Linux - Hardware 2 12-01-2005 06:37 AM
how to resize mepis david waldo MEPIS 1 06-04-2005 01:12 AM
how to resize disk !!! abhigo Linux - Software 3 01-23-2005 01:59 PM
How to resize a partition siepmann Linux - Software 3 10-27-2004 08:53 PM
XP resize problem tincho Linux - Newbie 2 09-22-2003 07:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration