Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding another /usr



On Wed, Jan 24, 2001 at 09:18:52AM +0100, Thomas-Peter Klug wrote:
> What about splitting Viper: into 2 partitions, and enabling an /usr2 on one 
> of them :
> sd3d /usr :  600 MB (NBU)
> sd3? /usr :  600 MB (NBU)

  Mounting the new partition on /usr will hide the original /usr. You must
  use a different mount point.

> What are the steps to make NetBSD recognize /usr2 ? I think about making
> a new device or finding out what /dev/sd3? is associated with /usr2 and
> adding a line into /etc/fstab. So how can I write FFS to /usr2 (partiton
> already prepared with HDToolBox : NBU/07).

  Note: using newfs is DANGEROUS! Be very careful with these steps or you
  might loose important data! I am not responsible for any damage!

  Here we go (do these steps as root):

  Before we start, remember that adding/removing a partition changes the
  disklayout. That means that it might be necessary that you adjust your
  /etc/fstab. You will find out if NetBSD doesn't boot into multiuser
  anymore...

  Find out exactly which partition is your _NEW_ NBU\07 partition:

   disklabel /dev/r<your disk>

  You can identify the partition by its type (something like BSD4.2 and/or
  by the used cylinders).
  Then you have to initialize the filesystem with newfs eg.

    newfs /dev/<whatever disklabel told you>

  Then you can mount the partition, eg:

   mount -o softdep /dev/<new partition> /<mountpoint>

  Gunther



Home | Main Index | Thread Index | Old Index