Re: Order of Creation of Partions

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 11/30/03

  • Next message: Melvyn Sopacua: "Re: php4..."
    Date: Sun, 30 Nov 2003 21:24:09 +0000
    To: Barry Skidmore <skidmore@digital-village.net>
    
    
    

    On Sun, Nov 30, 2003 at 03:02:10PM -0500, Barry Skidmore wrote:
    > I am preparing to do a fresh install of 4.9-RELEASE, and read in the
    > Handbook the following recommended partitions, and the order in which
    > they should be created:
    >
    > /
    > swap
    > /var
    > /tmp
    > /usr
    >
    > I would like to have two additional partitions, but do not see in the
    > Handbook their ordering, relative to the above:
    >
    > /boot
    > /home

    Any way you like. sysinstall(8) doesn't give you the option, but if
    you use disklabel(8), other than the first three partitions -- da0s1a
    (root), da0s1b (swap) and da0s1c (whole disk -- never used as such)
    you can create partitions from da0s1d upto a maximum of da0s1h and
    mount them as whatever filesystems you want. Once you've got the root
    and swap partitions sorted, how you lay out the rest makes little
    difference. There are minor gains to be made by placing the most
    heavily used partitions towards the outer cylinders of the disk, but
    that doesn't apply on RAID5 or RAID0 (striped) disk arrays, and the
    amount gained hardly justifies the effort spent tweaking things.
    Layout is more a matter of individual taste than anything.

    Two points though:

       i) Don't put /boot on a separate partition. /boot contains stuff
    that is essential for booting the system, and as such *has* to be part
    of the root filesystem.

      ii) It's not so much the order of creation of the partitions that
    counts, but the order they lie across the drive. You don't even have
    to make the b, d, e, f, g, h partitions lie in cylinder order,
    although it would be perverse to shuffle them around arbitrarily.
    Putting the root 'a' partition anywhere except starting at cylinder 1
    is asking for trouble though -- this is one of those conventions that
    practically has the force of law.

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: Melvyn Sopacua: "Re: php4..."

    Relevant Pages

    • Re: Order of Creation of Partitions
      ... Barry Skidmore wrote: ... > I am preparing to do a fresh install of 4.9-RELEASE, ... > I would like to have two additional partitions, but do not see in the ... > Handbook their ordering, relative to the above: ...
      (freebsd-questions)
    • Re: Looking for bsdlabel tutorial
      ... > easier way to create additional partitions on an existing installation? ... The handbook covers a number of situations where you want to label a ... To unsubscribe, ...
      (freebsd-questions)
    • Re: swap space on multiple drives
      ... > After reading the following section of the Handbook, ... > partitions of 2GB each won't hurt, ... Articles based on solutions that I use: ...
      (freebsd-questions)
    • Re: Invocation of applications which require root permitions
      ... During installation, I typed the root password and later made the first user. ... because the custom one allows you to choose and edit partitions and avoids that problem. ... What it leads me to say, is that during the several I did with Ubuntu among which half a dozen just for tests and explore the install possibilities, expert mode would never ruin a user's caracteristics. ...
      (Ubuntu)
    • Problems with StorEdge 3510 FC
      ... The RAID 5 LD is divided into three partitions. ... But, when I want to give the LUN's a filesystem, it seems that the newfs ... Cylinder groups must have a multiple of 16 cylinders with the given ... Warning: 5 sectorin last cylinder unallocated ...
      (SunManagers)