Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to expand root partition

18 views
Skip to first unread message

davi...@my-deja.com

unread,
Dec 29, 2000, 12:02:34 AM12/29/00
to
Hi,

I was trying to add GCC 2.95.2 to my SPARC 10 station however got the
error:
cpio: Cannot write "reloc/lib/libstdc++.a.2.10.0", errno 28, No space
left on device

I found that it is the root partition which is running out of space. It
only got about 65M free. How can I increase the size of the root
partition?

Here is the output of "df -k":

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t3d0s0 91415 25947 65377 29% /
/dev/dsk/c0t3d0s6 211607 171324 40072 82% /usr
/dev/dsk/c0t3d0s7 413639 257 412969 1% /export

I would like to learn from Solaris expert before I attempt to do
anything on the root partition.

TIA and Happy New Year!

David


Sent via Deja.com
http://www.deja.com/

Thommy M. Malmström

unread,
Dec 29, 2000, 11:05:57 AM12/29/00
to
Hi David!

Never split your root disk in partitions (unless it's 18G or larger).
There's no need any more.

You have to do a ufsdump to tape, repartition the disk, newfs, installboot
and ufsrestore.

Takes a couple of hours but you'll never create a to small root
partition again ;-)


Happy New Year! ;-)

/Thommy M.

Thommy.M.Malmstrom.vcf

Joshua Gould

unread,
Dec 29, 2000, 11:05:20 AM12/29/00
to
davi...@my-deja.com writes:

>
> I found that it is the root partition which is running out of space. It
> only got about 65M free. How can I increase the size of the root
> partition?
>
> Here is the output of "df -k":
>
> Filesystem kbytes used avail capacity Mounted on
> /dev/dsk/c0t3d0s0 91415 25947 65377 29% /
> /dev/dsk/c0t3d0s6 211607 171324 40072 82% /usr
> /dev/dsk/c0t3d0s7 413639 257 412969 1% /export
>

Someone else mentioned that you could save to tape, repartition and
then dump it all back. That's fine and perhaps the easiest way to go.

Another option is to use ufsdump/ufsrestore to dump / over to a file
on either /usr or /export since you have enough space free. Then you
could boot from the Solaris CD-ROM or via network, repartition and use
ufsrestore to dump that file back to /. It's a little more work than
tape, but if you don't have a tape drive, it might be your only
option.

If you need more details, write me and I'll step ya through it.


Joshua

paul...@my-deja.com

unread,
Dec 29, 2000, 5:20:37 PM12/29/00
to
In this case you don't need to repartion you hard disk, all you need to do is
create a directory under /export/home, and then link it to root /.

Paul

In article <92h5t8$kt8$1...@nnrp1.deja.com>,

Ben Taylor

unread,
Dec 29, 2000, 5:57:38 PM12/29/00
to
In comp.unix.solaris davi...@my-deja.com wrote:
: Hi,

: I was trying to add GCC 2.95.2 to my SPARC 10 station however got the
: error:
: cpio: Cannot write "reloc/lib/libstdc++.a.2.10.0", errno 28, No space
: left on device

That would be pkgadd unloading the temporary file somewhere in /var,
/var/spool if I remember right.

What you could do is a :

mkdir -p /export/tmp/gcc
pkgtrans -s gcc-2.95.2-sparc-local /export/tmp/gcc
cd /export/tmp/gcc
pkgadd -d .
rm -rf /export/tmp/gcc #Note, this is just the package file in a directory format

Which will probably explode your /usr file system since it will
install in /usr/local.

So before you do the pkgadd, mv /usr/local to /export/usr/local
(if you already have a /usr/local), and symlink /export/usr/local to
/usr/local.

Gack. Looks like a 1g drive. I'd make that one big partition if I
had it all to do again. Might split /var off on it's own, but with
1G, I'd start looking for another drive... ;-)

Hope this helps.

Ben

: I found that it is the root partition which is running out of space. It

Neil W Rickert

unread,
Dec 29, 2000, 10:40:48 PM12/29/00
to
davi...@my-deja.com writes:

>I was trying to add GCC 2.95.2 to my SPARC 10 station however got the
>error:
>cpio: Cannot write "reloc/lib/libstdc++.a.2.10.0", errno 28, No space
>left on device

>I found that it is the root partition which is running out of space. It
>only got about 65M free. How can I increase the size of the root
>partition?

>Here is the output of "df -k":

>Filesystem kbytes used avail capacity Mounted on
>/dev/dsk/c0t3d0s0 91415 25947 65377 29% /
>/dev/dsk/c0t3d0s6 211607 171324 40072 82% /usr
>/dev/dsk/c0t3d0s7 413639 257 412969 1% /export

Disk's are cheap. Go buy yourself a bigger disk.

0 new messages