Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: gottlieb@allan.ultra.nyu.edu (Allan Gottlieb)
Subject: Re: Disk repartioning.
Date: 1995/07/28	[thread overview]
Message-ID: <GOTTLIEB.95Jul28090601@allan.ultra.nyu.edu> (raw)
In-Reply-To: 3v9mrl$8rr@nunki.usc.edu

In article <3v9mrl$8rr@nunki.usc.edu> mian@nunki.usc.edu (THE INTERNET SURFER) writes:

> My problem is that it did create partitions on all of 1 GB disk but 
> only 500 M are available on two partitions / and /usr. I want to get 
> the rest of the disk in use and I have completely filled the /usr 
> partition (about 400 M ) by installing gnu and X stuff. 
> How can I mount the rest of the partitions or increase the size of 
> the /usr partition with out going through all the compilation process
> again.
> 
> 8 partitions:
> #        size   offset    fstype   [fsize bsize   cpg]
>   a:   131072        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 197*)
>   b:   262144   131072    unused        0     0         # (Cyl.  197*- 592*)
>   c:  2050860        0    unused        0     0         # (Cyl.    0 - 3088*)
>   d:   552548   393216    unused        0     0         # (Cyl.  592*- 1424*)
>   e:   552548   945764    unused        0     0         # (Cyl. 1424*- 2256*)
>   f:   552548  1498312    unused        0     0         # (Cyl. 2256*- 3088*)
>   g:   819200   393216    4.2BSD     1024  8192    16   # (Cyl.  592*- 1825*)
>   h:   838444  1212416    unused        0     0         # (Cyl. 1825*- 3088*)
> 
I like this program (disklabel).  You are currently using partitions a
(root) b (swap, even though disklabel says unused) and g (usr).

Look at the last (comment) field giving the cylinders.  c is your
whole disk and a,b,g are contiguous and use about 60% of it.  h is the
rest of the disk so you need to newfs it.

I WOULD WAIT A FEW DAYS TO SEE IF ANYONE NOTES ANY ERRORS IN WHAT I
HAVE BELOW BEFORE USING IT.

MAKE A FULL BACKUP OF EVERYTHING FIRST.

To "mount the h partition" should be simple.  Go to single user mode
and do the following five lines ONCE.

cd /
mount /usr
newfs /dev/rrz0h 
mkdir /xxx   # could be any name you choose
mount /dev/rz0h /xxx

To use this space (say for gnu products) I would suggest the following
(I am assuming your current gnu material is in /usr/gnu)

mkdir /xxx/usr.gnu
cd /usr
tar cf - gnu | 'cd /xxx/usr.gnu; tar xpf -'
rm -rf gnu
ln -s /xxx/usr.gnu /usr/gnu

Now /usr/gnu is a symlink over to /xxx/usr.gnu, which contains all the
files /usr/gnu had before we started.

Personally I do this for all non dec-supplied files.  That is I like
to have the distribution of the OS in filesystems disjoint from other
files.  For example, I have a directory /xxx/usr.local as well.  You
might have some like /xxx/usr.src.gnu if you keep the gnu source after
building, etcetera.

After testing, put /dev/rz0h into /etc/fstab (look at the file to see
the format) and reboot back to multi-user mode.

Good Luck!
-- 
Allan Gottlieb                  gottlieb@nyu.edu
New York University             http://cs.nyu.edu/cs/faculty/gottlieb/



  reply	other threads:[~1995-07-28  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-27  4:00 Disk repartioning THE INTERNET SURFER
1995-07-28  4:00 ` Allan Gottlieb [this message]
1995-07-28  4:00 ` Stephen Mullin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox