Results 1 to 10 of 10

Thread: Moving directories to their own partitions

  1. #1
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51

    Moving directories to their own partitions

    Greetings everyone,

    After reading the Debian install and security howtos, I've decided that I should move /var, /usr and /tmp to their own partitions, using the Knoppix home directory howto as a guide. Thing is, I don't know how my fstab should look like and how big the partitions should be.

    I would like to ask for input for the layout I plan (below).

    Partition sizes:

    /tmp – 50 mb (or 500?)
    /var – 3 gb (or 2?)
    /usr – 4 gb
    / – 500 mb

    Am I on the right track? Are these partition sizes okay or are they excessive? This computer is the one I'll be using for home. In the future I do plan on setting it up to host web pages as well.

    fstab additions:

    /dev/hda9 /usr ext2 rw 0 2
    /dev/hda6 /tmp ext2 rw 0 2
    /dev/hda7 /var ext2 rw 0 2


    Do these entries look okay? Or should it be:

    /dev/hda9 /usr ext2 defaults 1 2
    /dev/hda6 /tmp ext2 defaults 1 2
    /dev/hda7 /var ext2 defaults 1 2

    I don't know what the numbers at the end mean... I just took these from various sample I found in LQ and Google.

    Any thoughts?

    - Bryan

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Location
    Washington State
    Posts
    120
    How much space do you have to work with?

    /usr is where most of the "weight" is; make it bigger if your planning on installing more packages.

  3. #3
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51
    60 gigs... It's an 80 gig hard drive but Win2K has the first 20.... I also have a second 60 gig drive I just mainly use for storing mp3s, pictures and virtual CD files... and that's around 30 gigs so I have around 30 gigs more to spare on that other drive.

    I know that's a lot of room but I don't want to over do it though. I'd rather use the (spare) room for my work, my scans, mp3s and other stuff everyone else at home puts into my box.

  4. #4
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51
    Right now, I have an installfest bonanza on my box... Fedora, Knoppix, Gnoppix, Morphix... but enough of that. I just want one to get some work done.

    I was actually planning on installing Woody but then it hit me that I may just as well install Knoppix and move the partitions around.

    It also just hit me that I probably can't opt for a 500 mb / partition since the / directory is what I have to start with (can you resize that using qtparted?).

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Location
    Washington State
    Posts
    120
    can you resize that using qtparted?
    Yes I believe so, although I have never tried it.

    60 gigs
    How much space is being used of that 60?

    Do you have a home directory for every distribution, or a single home directory used by all distributions? If you're planning on having millions of distributions on the same box, it is a good idea to have an extra partition for your home directory.

    By tha way, make sure your partitions(/usr and all that) are taggged for auto in fstab, otherwise you may have a few unexpected surprises.

  6. #6
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51
    Right now all of them have their own /home directories (and/or partitions).

    I was trying them out so the scheme I used sufficed... now I'm past that and just plan on having one.

  7. #7
    Senior Member
    Join Date
    Nov 2003
    Location
    Washington State
    Posts
    120
    Right now all of them have their own /home directories (and/or partitions).

    I was trying them out so the scheme I used sufficed... now I'm past that and just plan on having one.
    One sounds good. You may even want a second so in case something goes wrong, you'll have something to fall back on.

  8. #8
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51
    True, but I can always rely on the live CD can't I? I also have Knoppix on a FAT32 partition which I boot from a floppy... I think it's what you call a 'Poor man's install'.

    Right now I'm worried about resizing the / partition. I've managed to resize my swap partition before so I know qtparted can do the job... it's just that the / partition has real data on it. Hmmm...

  9. #9
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Moving directories to their own partitions

    /tmp is really tiny on both my systems, 50MB should be fine. Everything else looks Ok, however I would go with journalled filesystems for *everything* except /boot. This is what my fstab entries look like:

    Code:
    /dev/hdb1  /  reiserfs  defaults,noatime,rw 0 1
    /dev/hde11 /mnt/squid reiserfs defaults,noatime,noexec 0 0
    /dev/hda2 /mnt/extra2 ext3 defaults,noatime,noexec,rw 0 0
    /dev/hda12 /mnt/bkps  reiserfs  defaults,noatime,notail,rw 0 0
    --The two numeric entries at the end are for dump and fsck, see ' man fstab '.

    --I'd recommend two things with all that hard drive space: Dedicate a partition (20Gig?) for backups, and consider setting up a Squid proxy server.

    http://www.squid-cache.org/

    --If you want more info on that, I'll be happy to send you a copy of my config and some basic instructions.

    Quote Originally Posted by bxb32001
    Greetings everyone,

    After reading the Debian install and security howtos, I've decided that I should move /var, /usr and /tmp to their own partitions, using the Knoppix home directory howto as a guide. Thing is, I don't know how my fstab should look like and how big the partitions should be.

    I would like to ask for input for the layout I plan (below).

    Partition sizes:

    /tmp – 50 mb (or 500?)
    /var – 3 gb (or 2?)
    /usr – 4 gb
    / – 500 mb

    Am I on the right track? Are these partition sizes okay or are they excessive? This computer is the one I'll be using for home. In the future I do plan on setting it up to host web pages as well.

    fstab additions:

    /dev/hda9 /usr ext2 rw 0 2
    /dev/hda6 /tmp ext2 rw 0 2
    /dev/hda7 /var ext2 rw 0 2


    Do these entries look okay? Or should it be:

    /dev/hda9 /usr ext2 defaults 1 2
    /dev/hda6 /tmp ext2 defaults 1 2
    /dev/hda7 /var ext2 defaults 1 2

    I don't know what the numbers at the end mean... I just took these from various sample I found in LQ and Google.

    Any thoughts?

    - Bryan

  10. #10
    Member
    Join Date
    Oct 2003
    Location
    Beijing
    Posts
    51
    Ooooooooo... thanks Dave, your the MAN!

Similar Threads

  1. Need help with directories & files
    By Ezor in forum General Support
    Replies: 2
    Last Post: 01-04-2005, 07:26 PM
  2. Directories that need RW
    By davidc in forum Customising & Remastering
    Replies: 0
    Last Post: 04-15-2004, 08:15 PM
  3. /etc/rc directories
    By Alexxx in forum General Support
    Replies: 0
    Last Post: 03-03-2004, 11:37 AM
  4. permissions for directories and files
    By mikji in forum General Support
    Replies: 2
    Last Post: 10-24-2003, 09:52 PM
  5. Remote home directories?
    By numbski in forum General Support
    Replies: 4
    Last Post: 04-04-2003, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS picture

Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS

$199.99



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used. picture

HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used.

$45.00



HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES

$174.99



HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED picture

HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED

$550.00



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE Proliant Microserver Gen10 X3421 Perf AMS,  P03698-S01, 16GB Ram picture

HPE Proliant Microserver Gen10 X3421 Perf AMS, P03698-S01, 16GB Ram

$299.00



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD picture

SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD

$90.00