Re: /var and /home on another partition

From: steven mestdagh (steven.mestdagh_at_esat.kuleuven.REMOVE-THIS.ac.be)
Date: 09/05/04


Date: Sun, 05 Sep 2004 17:38:47 GMT

Frederick <frederick@shaw.ca> wrote:
> Thanks for your response Steven. I really appreciate it.
> Can I ask you something else? Like I mentioned before, I dont' want to lose
> anything in /var or /home so can I use fdisk to make 2 slices and then I use
> disklabel to put /, /usr, /tmp in the first slice while putting /var and
> /home in the 2nd slice?
>
> Is that the best way of doing it? Or is it better to put everything in one
> slice. I ask because I'm not sure if everything gets formatted or
> overwritten during an install on slice 1.

well, i've never had 2 OpenBSD slices so far. the default way of doing
things is to just create an openbsd slice, and then fill this up with
separate filesystems (think you can have about 16 of them in 1 slice).
never had any problems with it.
note that disklabel shows partitions on the entire disk, not only the
OpenBSD portion of it. the OpenBSD partitions run from a to h, other
partitions (for instance DOS, ext2fs) are designated by letters
greater than i.

note also that the openbsd upgrade (!= install) process will touch files
only in /bin, /sbin, /usr (not /usr/local) directories.
on the other hand, /var, /home, and also your /etc containing all
configuration files are never touched by the upgrade process, which
is another built-in safety.

-- 
steven


Relevant Pages

  • SUMMARY: Mirroring Questions Part 1 & 2
    ... If you use two diffrent size hard drives to mirror you can reclaim the un-used space on the larger of the two drives, this seems to not be recommended because you will take a performance hit. ... If I mirror with drives of different sizes, root disk being the smallest and the mirror being the largest, will I suffer performance problems? ... Both disks have identical partions setup when looking thru the format command expect slice 2. ... If you have only a few partitions that could be considered actual boot ...
    (SunManagers)
  • RE: Boot and MBR.
    ... You are right, I have them setup originally under WinXP as partitions, ... then added FreeBSD to the second partition where it calls it a slice. ... Divided up the slice into the required folders. ... Subject: Boot and MBR. ...
    (freebsd-questions)
  • Re: 5.1-RELEASE: disklabel/bsdlabel for multi-boot system
    ... within that slice, and you can't extend beyond that. ... FreeBSD supports DOS-style extended partitions. ... the BSD install process. ...
    (freebsd-questions)
  • Re: newby needing help
    ... For updating the ports tree I can recommend portsnap. ... my ext2 and ext3 partitions to the UFS notation. ... FreeBSD are subdivisions of a slice. ... I would recommend converting the disk to native UFS2 filesystems. ...
    (freebsd-questions)
  • Re: WinXP and FreeBSD configuration problems
    ... Why the miniscule 2gb partitions? ... worrying about the performance of boot and swap on a computer with a 320GB ... FreeBSD can reside on a single slice. ... FreeBSD slice into partitions, for things like swap, and file-systems. ...
    (freebsd-hackers)