Subject: Re: Ooooh A new HDD!
        Date: Fri, Mar 27, 1998 at 10:19:40PM +1200

In reply to:Michael Beattie

Quoting Michael Beattie([EMAIL PROTECTED]):
> 
> On Wed, 25 Mar 1998, George Bonser wrote:
> 
> > 
> > 
> > It greatly depends on what you do.  cd to / as root and try the following:
> > 
> > du -s /usr
> > 
> > du -s /var
> 
> Okay, this was handy, but I have a logistical problem now... :)
> here is some info:
> 
> Size (MB)   Path
> 
>  22   /usr/X11R6
>  17   /usr/bin
>   3   /usr/sbin
>   0   /usr/dict
>  11   /usr/doc
>   0   /usr/games
>   4   /usr/include
>   3   /usr/info
>  29   /usr/lib
>   0   /usr/local
>   8   /usr/man
>   0   /usr/media
>  21   /usr/netscape
>   7   /usr/share
>   0   /usr/src
> ---
> 125
> 
> I have a 100MB HDD...
> 
> (I know, I should have netscape under /usr/local, but I didnt know better 
> when I installed it... How can I move it? (V. 4.04))
>  
> > As for making it appear as part of the original drive, that is what
> > /etc/fstab is for.
> 
> Yes, but I meant this:
> 
> current: 195MB
> new    : 106MB
> 
> add    : 301MB
> 
> so that it appears the drive now has 301 MB. I think this is something you
> have to compile into the kernel? CONFIG_BLK_DEV_MD ?
> 

No, the kernel does not have to be recompiled when you add new disks.

If you want to put /usr/local on a New (empty) disk partition.

 1.  mke2fs /dev/???
 2.  mount /dev/??? /mnt
 3.  ( cd /usr/local ; tar clf - . ) | ( cd /mnt ; tar xvpBf - )
       #3 copies all files from /usr/local to /dev/??? (which will
       become the New /usr/local
 4. varify the #3 did it correctly  - diff -r /usr/local /mnt
 5.  edit /etc/fstab - add the new partition
     ie   /dev/hdb1        /usr/local   ext2        defaults   1   2
 6. Now delete the OLD /usr/local directory.  cd /usr ; rm -rf ./local
 7. umount /mnt   ( not really necessary )
 8. Now reboot the system & enjoy your new drive.

HTH


-- 
"As part of the conversion, computer specialists rewrote 1,500
programs; a process that traditionally requires some debugging.
-- USA Today, referring to the IRS switchover to a new computer system.  
_______________________________________________________
Wayne T. Topa <[EMAIL PROTECTED]>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to