Re: Recommended partitioning scheme

From: David L Norris (dave_at_webaugur.com)
Date: 08/01/04

  • Next message: meherenow_at_darkglobe.org: "Install on i2o (either FC2 or FC2.90) rel notes didnt work"
    To: fedora list <fedora-list@redhat.com>
    Date: Sun, 01 Aug 2004 06:12:06 -0500
    
    
    
    

    > > articles saying that /home and /usr should also be mounted on seperate
    > > partitions so that user data and installed programs can be saved in the
    > > event a reinstall is necessary.

    Definitely /home and maybe /usr/local. You may want to keep a periodic
    backup of /etc and /var/log/rpmpkgs (the output from "rpm -qa").
    But /usr should be completely managed by RPM and you can rebuild it from
    the rpmpkgs log.

    > If you are playing with FC3 test 1 I would not keep any critical files
    > under that OS. As such saving /home or /usr IMHO should be a mute
    > question.

    I wouldn't risk exposing my primary /home to a test system. You may,
    however, want to copy some or all of your primary /home directory to the
    test system. This was mentioned on the -devel (or was it -test?) list
    as a way to test that your home directory will actually work and migrate
    to the new system.

    I always maintain my /home directory from one system to the next. But I
    don't install test releases on my main machine.

    > Much of this depends on what you plan to use the system for. For a true
    > multi-user server using different mount points for various directories
    > is a good idea as it can prevent the server from dying if one of the
    > less critical partitions are filled up for some reason. (usually a user
    > that generates tones of files for some reason causing / to fill up and
    > halt the system.)

    Users can't completely fill a filesystem; only root can fill a
    filesystem. A portion (by default 10%) of each partition is reserved
    for the system. Users may be able to cause some services to complain
    but the system itself should remain fairly operational.

    > For a single user system IMHO this is not as important. You can always
    > backup the /home directory if you are doing an upgrade or re-install.
    > So for a workstation I normally setup a /boot, swap, and / file systems
    > with the bulk of the space in the / file system.

    I always keep /home on its own disk(s). This way it is completely
    independent of the operating system itself.

    > For a personal workstation put everything under /. It will save you
    > lots of headaches when you find that you guessed wrong and need a much
    > larger /usr file system since you installed so many packages.

    Yep.

    > > Drive 1
    > > swap - 2gb
    > >
    > > Drive 2
    > > /boot - 100mb
    > > /home - 20gb
    > > /usr - 20gb
    > > / - whatever space is left

    On a test system I would do this:
      swap 2 GB
      / (rest of disk)

    On a full "production" system I would do something more like this:
      swap 2 GB (perhaps two 1 GB partitions on two disks)
      /boot 100 MB
      / 20 GB (or maybe 30-40 GB if you plan on going wild)
      /home (very large RAID or LVM partition)

      I also do the following strictly so that after an OS upgrade I don't
    have to reinstall weird, non-RPM, system-independent programs and shell
    scripts I use (e.g. cross-compilers, etc). But be very aware that /opt
    and /usr/local will eventually "eat your branes(tm)" if you mess around
    with the defaults in /etc/ld.so.conf and the PATH variable.
        /usr/local 10 GB (or whatever you think you will need)
        /opt 10 GB (or whatever...)

    > How much memory do you have on your system? Normally they recommend
    > swap be twice what your memory is. I usually consider 1GB for swap the
    > most you should ever really need regardless of how much memory you
    > have. If you find you are using a lot of swap space then you probably
    > need more memory

    Depends on what you're doing. Swap isn't all bad. Running out of
    physical RAM is very bad and some uses of swap can prevent that. More
    RAM is better but increasing the swap can be quite adequate for some
    things.

    For example, VMWare can benefit greatly by setting its temp directory
    to /dev/shm, increasing the size of /dev/shm to 1 GB or more and adding
    enough swap space to compensate. It seems to prevent many unexplained
    guest OS lockups and other problems.
     < http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=844 >

    > Not sure having /usr as a separate file system will really save you
    > anything during a reinstall. If I was reinstalling /usr is probably one
    > of the file systems I would want to replace completely. Again if it was
    > a multiuser system a separate /usr makes some sense.

    I don't think mounting /usr separately makes any sense on a standalone
    system nor any RPM-based system. It might have made more sense in the
    past on some systems, I guess. I've tried running standalone systems
    this way and it typically does nothing but waste disk space.

    > Excellent question! I can not think of any reason you should not be
    > able to use the same swap space for two different install of linux as
    > long as they both are not trying to use it at the same time.

    Sharing swap will work fine. And, the installer should automatically
    detect and setup all the available swap partitions.

    -- 
     David Norris
      http://www.webaugur.com/dave/
      ICQ - 412039
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: meherenow_at_darkglobe.org: "Install on i2o (either FC2 or FC2.90) rel notes didnt work"

    Relevant Pages

    • Re: Windows Installation Problem
      ... I have 3 partitions (C: for Windows, D: for Data and E: for software) ... Are you aware that if you reinstall Windows, ... I've always had my 6 OS partitions set to be C:, data on D: and I install all my programs on E:. ...
      (microsoft.public.windowsxp.general)
    • Re: kernel panic on mounting root fs
      ... > Grub came up ok and had no problems loading kernel ... Above you say hda5 is /, so it can not be swap. ... This shows two logical partitions, ... system on the first SUSE install disk. ...
      (alt.os.linux)
    • Re: [SLE] Recover Update of 10.1 from power failure hard crash.
      ... If I were you, since you can't backup your data, I'd pull hda out of the ... I created a 2 GB swap on the ... I seems I am going to have to install 10.0 on the drive and then ... CD's going into rescue system and creating partitions did not seem to ...
      (SuSE)
    • Re: Need advice on how to partition a 10gig hdrive
      ... >> install your fourth kernel. ... Swap size depends on the RAM and the purpose of the ... > possible on the system partitions. ...
      (alt.os.linux)
    • Re: New first time install
      ... > first one has two partitions both XP NTFS. ... > Linux and if possible, use part of it with both systems for file storage. ... /swap 256MB to 1GB swap ... > install, or would it be better to wait for the disk to arrive. ...
      (alt.os.linux.suse)