Richard Fish posted
<[EMAIL PROTECTED]>, excerpted
below,  on Wed, 08 Feb 2006 08:40:11 -0700:

> n 2/8/06, David Guerizec <[EMAIL PROTECTED]> wrote:
>> So the directories sensible to fragmentation are IMHO, /var/tmp
>> and /usr/portage, and they are the ones to put on different partitions.
> 
> I tend to agree with you.  They should also be no larger than
> necessary.  My current partition setup is:
> 
> /boot                100M
> /                      6G
> /tmp                   2G
> /var                   5G
> /usr/portage           1G
> /usr/portage/packages  6G (includes distfiles)
> /usr/src               2G
> /home                 66G (the rest of the disk)
> 
> My feeling is that if you partition sensibly, you don't need to worry
> much about fragmentation.

Much the same here, except that /var is on /, for reasons I explained
elsewhere, but /var/log is a dedicated partition.  Likewise, I have
several partitions that hold data that would normally be part of /home, so
/home itself is smaller, 10 gig or so.  My big partition is the
multi-media partition, with data that would ordinarily be on /home.

$df
Filesystem            Size  Used Avail Use% Mounted on
/dev/md_d1p1          9.6G  1.6G  8.0G  17% /
dev                   2.0M  328K  1.7M  17% /dev
/dev/md_d2p1           12G  7.6G  4.0G  66% /stryper
/dev/md_d2p5           20G  159M   19G   1% /tmp
/dev/mapper/vgraid6-home
                       10G  1.6G  8.5G  16% /h
/dev/mapper/vgraid6-klbdo
                      512M   21M  492M   5% /klbdo
/dev/mapper/vgraid6-local
                      1.0G   47M  978M   5% /l
/dev/mapper/vgraid6-log
                      1.5G  434M  1.1G  29% /log
/dev/mapper/vgraid6-mail
                      1.0G   65M  960M   7% /mail
/dev/mapper/vgraid6-mm
                       60G   34G   27G  56% /mm
/dev/mapper/vgraid6-news
                       12G  290M   12G   3% /news
/dev/mapper/vgraid6-pkg
                      4.0G  1.6G  2.5G  40% /pkg
shm                    50M     0   50M   0% /dev/shm
svcdir                2.0M  208K  1.8M  11% /var/lib/init.d

Stryper (yes, I'm a fan of the band, it's my generic RAID-0 striped
volume) is the one that contains my non-critical ccache, portage-tree, and
usrsrc/kernel stuff.

My fstab is /heavily/ commented, and includes all sorts of backup
partition entries, plus my old single PATA disk entries, but here it is:

$cat /e/fstab
###########################################################################################
###                                                                             
        ###
### Common MntOpts: 
(a)sync,atime,auto(mount),dev,exec,_netdev,ro/rw,suid,user(s)       ###
### defaults:       auto,async,dev,exec,rw,suid,nouser                          
        ###
### user(s) note:   user(s) may (un)mount, implies noexec,nosuid,nodev          
        ###
### no- prefix:     negates except (a)sync,_netdev,ro/rw,defaults               
        ###
###                                                                             
        ###
###########################################################################################
###                                                                             
        ###
### Removable fs type note: Auto(detect) may be slow. Use comma 
type1,type2,type3.      ###
### vfat type last, as it's not verified, and can overwrite others w/o 
checking.        ###
### udf (packet written optical) slow, but s/b b4 iso9660 if present.           
        ###
### Thus, Floppy: ext2,<whatever>,vfat. CD/DVD: udf,iso9660 or simply iso9660.  
        ###
###                                                                             
        ###
###########################################################################################
###                                                                             
        ###
### partitions in order on disk (alpha for lvs)                                 
        ###
### Dev/Part            MntPnt                  Type            MntOpt          
        D F
###                                                                             
        ###
###########################################################################################
###                                                                             
        ###
### for mount --bind, --rbind, and --move                                       
        ###
### /old/dir            /new/dir                none            bind            
        0 0
###                                                                             
        ###
###########################################################################################
### raids -- sd[abcd] partitions (sdX3=autostripped swap, below, sdX4=ext.part) 
        ###
### md0=sdX1=raid1, md_d1=sdX2=raid6, md_d2=sdX5=raid0, >sdX5=~100Gfree/drive   
        ###
###########################################################################################
###                                                                             
        ###
/dev/md0                /boot                   reiserfs        noatime,noauto  
        1 2
##################      ##################      ##########      
##################      ###
### reverse the following two for r//rbk                                        
        ###
/dev/md_d1p1            /                       reiserfs        noatime         
        1 1
/dev/md_d1p2            /bak                    reiserfs        noatime,noauto  
        1 2
/dev/md_d1p3            ignore                  ignore          vgraid6         
        0 0
##################      ##################      ##########      
##################      ###
/dev/md_d2p1            /stryper                reiserfs        noatime         
        1 2
/dev/md_d2p2-p4         ignore                  ignore          ext.part&free   
        0 0
/dev/md_d2p5            /tmp                    reiserfs        noatime         
        1 2
##################      ##################      ##########      
##################      ###
/dev/vgraid6/home       /h                      reiserfs        noatime         
        1 2
/dev/vgraid6/homebk     /bak/h                  reiserfs        noatime,noauto  
        1 2
/dev/vgraid6/klbdo      /klbdo                  reiserfs        noatime         
        1 2
/dev/vgraid6/local      /l                      reiserfs        noatime         
        1 2
/dev/vgraid6/localbk    /bak/l                  reiserfs        noatime,noauto  
        1 2
/dev/vgraid6/log        /log                    reiserfs        noatime         
        1 2
/dev/vgraid6/mail       /mail                   reiserfs        noatime         
        1 2
/dev/vgraid6/mailbk     /bak/mail               reiserfs        noatime,noauto  
        1 2
/dev/vgraid6/mm         /mm                     reiserfs        noatime         
        1 2
/dev/vgraid6/mmbk       /bak/mm                 reiserfs        noatime,noauto  
        1 2
/dev/vgraid6/news       /news                   reiserfs        noatime         
        1 2
/dev/vgraid6/pkg        /pkg                    reiserfs        noatime         
        1 2
/dev/vgraid6/pkgbk      /bak/pkg                reiserfs        noatime,noauto  
        1 2
###                                                                             
        ###
###########################################################################################
### single devices                                                              
        ###
###########################################################################################
###                                                                             
        ###
/dev/hda1               /m/s/boot               reiserfs        noatime,noauto  
        0 0
/dev/hda2               /m/s                    reiserfs        noatime,noauto  
        0 0
/dev/hda3               /m/bk                   reiserfs        noatime,noauto  
        0 0
/dev/hda4               ignore                  ignore          
extended-partition      0 0
/dev/hda5               /m/s/usr                reiserfs        noatime,noauto  
        0 0
/dev/hda6               /m/s/p                  reiserfs        noatime,noauto  
        0 0
/dev/hda7               /m/s/p/src              reiserfs        noatime,noauto  
        0 0
/dev/hda8               /m/s/p/pkg              reiserfs        noatime,noauto  
        0 0
/dev/hda9               /m/s/usr/src            reiserfs        noatime,noauto  
        0 0
/dev/hda10              /m/s/l                  reiserfs        noatime,noauto  
        0 0
/dev/hda11              /m/s/var                reiserfs        noatime,noauto  
        0 0
/dev/hda12              /m/s/var/log            reiserfs        noatime,noauto  
        0 0
/dev/hda13              /m/s/m/x/cc             reiserfs        noatime,noauto  
        0 0
/dev/hda14              /m/x/klbdo              reiserfs        noatime,noauto  
        0 0
/dev/hda15              /m/s/h                  reiserfs        noatime,noauto  
        0 0
/dev/hda16              /m/x/n                  reiserfs        noatime,noauto  
        0 0
/dev/hda17              /m/x/mail               reiserfs        noatime,noauto  
        0 0
/dev/hda18              /m/x/mm                 reiserfs        noatime,noauto  
        0 0
**133GB-clear           ignore                  ignore          133GB-clear     
        0 0
/dev/hda19              /m/s/bk/usr             reiserfs        noatime,noauto  
        0 0
/dev/hda20              /m/s/tmp                reiserfs        noatime,noauto  
        0 0
###                                                                             
        ###
###########################################################################################
### swap and special devices and mounts                                         
        ###
###########################################################################################
###                                                                             
        ###
/dev/sda3               swap                    swap            pri=1           
        0 0
/dev/sdb3               swap                    swap            pri=1           
        0 0
/dev/sdc3               swap                    swap            pri=1           
        0 0
/dev/sdd3               swap                    swap            pri=1           
        0 0
##################      ##################      ##########      
##################      ###
proc                    /proc                   proc            noauto          
        0 0
dev                     /dev                    tmpfs          
mode=0755,size=2m,noauto 0 0
pts                     /dev/pts                devpts          
mode=0620,noauto        0 0
shm                     /dev/shm                tmpfs           size=50m        
        0 0
usb                     /proc/bus/usb           usbfs           noauto          
        0 0
/dev/hdc                /m/dvd                  udf,iso9660     
user,exec,noauto,ro     0 0
/dev/hdd                /m/cd                   iso9660         
user,exec,noauto,ro     0 0
/dev/fd0                /m/fd                   ext2,msdos      
user,exec,noauto,sync   0 0
###                                                                             
        ###
###########################################################################################
###########################################################################################

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
[email protected] mailing list

Reply via email to