1 |
Richard Fish posted |
2 |
<7573e9640602080740p61967b8y1f7f1367274c0710@××××××××××.com>, excerpted |
3 |
below, on Wed, 08 Feb 2006 08:40:11 -0700: |
4 |
|
5 |
> n 2/8/06, David Guerizec <david@××××××××.net> wrote: |
6 |
>> So the directories sensible to fragmentation are IMHO, /var/tmp |
7 |
>> and /usr/portage, and they are the ones to put on different partitions. |
8 |
> |
9 |
> I tend to agree with you. They should also be no larger than |
10 |
> necessary. My current partition setup is: |
11 |
> |
12 |
> /boot 100M |
13 |
> / 6G |
14 |
> /tmp 2G |
15 |
> /var 5G |
16 |
> /usr/portage 1G |
17 |
> /usr/portage/packages 6G (includes distfiles) |
18 |
> /usr/src 2G |
19 |
> /home 66G (the rest of the disk) |
20 |
> |
21 |
> My feeling is that if you partition sensibly, you don't need to worry |
22 |
> much about fragmentation. |
23 |
|
24 |
Much the same here, except that /var is on /, for reasons I explained |
25 |
elsewhere, but /var/log is a dedicated partition. Likewise, I have |
26 |
several partitions that hold data that would normally be part of /home, so |
27 |
/home itself is smaller, 10 gig or so. My big partition is the |
28 |
multi-media partition, with data that would ordinarily be on /home. |
29 |
|
30 |
$df |
31 |
Filesystem Size Used Avail Use% Mounted on |
32 |
/dev/md_d1p1 9.6G 1.6G 8.0G 17% / |
33 |
dev 2.0M 328K 1.7M 17% /dev |
34 |
/dev/md_d2p1 12G 7.6G 4.0G 66% /stryper |
35 |
/dev/md_d2p5 20G 159M 19G 1% /tmp |
36 |
/dev/mapper/vgraid6-home |
37 |
10G 1.6G 8.5G 16% /h |
38 |
/dev/mapper/vgraid6-klbdo |
39 |
512M 21M 492M 5% /klbdo |
40 |
/dev/mapper/vgraid6-local |
41 |
1.0G 47M 978M 5% /l |
42 |
/dev/mapper/vgraid6-log |
43 |
1.5G 434M 1.1G 29% /log |
44 |
/dev/mapper/vgraid6-mail |
45 |
1.0G 65M 960M 7% /mail |
46 |
/dev/mapper/vgraid6-mm |
47 |
60G 34G 27G 56% /mm |
48 |
/dev/mapper/vgraid6-news |
49 |
12G 290M 12G 3% /news |
50 |
/dev/mapper/vgraid6-pkg |
51 |
4.0G 1.6G 2.5G 40% /pkg |
52 |
shm 50M 0 50M 0% /dev/shm |
53 |
svcdir 2.0M 208K 1.8M 11% /var/lib/init.d |
54 |
|
55 |
Stryper (yes, I'm a fan of the band, it's my generic RAID-0 striped |
56 |
volume) is the one that contains my non-critical ccache, portage-tree, and |
57 |
usrsrc/kernel stuff. |
58 |
|
59 |
My fstab is /heavily/ commented, and includes all sorts of backup |
60 |
partition entries, plus my old single PATA disk entries, but here it is: |
61 |
|
62 |
$cat /e/fstab |
63 |
########################################################################################### |
64 |
### ### |
65 |
### Common MntOpts: (a)sync,atime,auto(mount),dev,exec,_netdev,ro/rw,suid,user(s) ### |
66 |
### defaults: auto,async,dev,exec,rw,suid,nouser ### |
67 |
### user(s) note: user(s) may (un)mount, implies noexec,nosuid,nodev ### |
68 |
### no- prefix: negates except (a)sync,_netdev,ro/rw,defaults ### |
69 |
### ### |
70 |
########################################################################################### |
71 |
### ### |
72 |
### Removable fs type note: Auto(detect) may be slow. Use comma type1,type2,type3. ### |
73 |
### vfat type last, as it's not verified, and can overwrite others w/o checking. ### |
74 |
### udf (packet written optical) slow, but s/b b4 iso9660 if present. ### |
75 |
### Thus, Floppy: ext2,<whatever>,vfat. CD/DVD: udf,iso9660 or simply iso9660. ### |
76 |
### ### |
77 |
########################################################################################### |
78 |
### ### |
79 |
### partitions in order on disk (alpha for lvs) ### |
80 |
### Dev/Part MntPnt Type MntOpt D F |
81 |
### ### |
82 |
########################################################################################### |
83 |
### ### |
84 |
### for mount --bind, --rbind, and --move ### |
85 |
### /old/dir /new/dir none bind 0 0 |
86 |
### ### |
87 |
########################################################################################### |
88 |
### raids -- sd[abcd] partitions (sdX3=autostripped swap, below, sdX4=ext.part) ### |
89 |
### md0=sdX1=raid1, md_d1=sdX2=raid6, md_d2=sdX5=raid0, >sdX5=~100Gfree/drive ### |
90 |
########################################################################################### |
91 |
### ### |
92 |
/dev/md0 /boot reiserfs noatime,noauto 1 2 |
93 |
################## ################## ########## ################## ### |
94 |
### reverse the following two for r//rbk ### |
95 |
/dev/md_d1p1 / reiserfs noatime 1 1 |
96 |
/dev/md_d1p2 /bak reiserfs noatime,noauto 1 2 |
97 |
/dev/md_d1p3 ignore ignore vgraid6 0 0 |
98 |
################## ################## ########## ################## ### |
99 |
/dev/md_d2p1 /stryper reiserfs noatime 1 2 |
100 |
/dev/md_d2p2-p4 ignore ignore ext.part&free 0 0 |
101 |
/dev/md_d2p5 /tmp reiserfs noatime 1 2 |
102 |
################## ################## ########## ################## ### |
103 |
/dev/vgraid6/home /h reiserfs noatime 1 2 |
104 |
/dev/vgraid6/homebk /bak/h reiserfs noatime,noauto 1 2 |
105 |
/dev/vgraid6/klbdo /klbdo reiserfs noatime 1 2 |
106 |
/dev/vgraid6/local /l reiserfs noatime 1 2 |
107 |
/dev/vgraid6/localbk /bak/l reiserfs noatime,noauto 1 2 |
108 |
/dev/vgraid6/log /log reiserfs noatime 1 2 |
109 |
/dev/vgraid6/mail /mail reiserfs noatime 1 2 |
110 |
/dev/vgraid6/mailbk /bak/mail reiserfs noatime,noauto 1 2 |
111 |
/dev/vgraid6/mm /mm reiserfs noatime 1 2 |
112 |
/dev/vgraid6/mmbk /bak/mm reiserfs noatime,noauto 1 2 |
113 |
/dev/vgraid6/news /news reiserfs noatime 1 2 |
114 |
/dev/vgraid6/pkg /pkg reiserfs noatime 1 2 |
115 |
/dev/vgraid6/pkgbk /bak/pkg reiserfs noatime,noauto 1 2 |
116 |
### ### |
117 |
########################################################################################### |
118 |
### single devices ### |
119 |
########################################################################################### |
120 |
### ### |
121 |
/dev/hda1 /m/s/boot reiserfs noatime,noauto 0 0 |
122 |
/dev/hda2 /m/s reiserfs noatime,noauto 0 0 |
123 |
/dev/hda3 /m/bk reiserfs noatime,noauto 0 0 |
124 |
/dev/hda4 ignore ignore extended-partition 0 0 |
125 |
/dev/hda5 /m/s/usr reiserfs noatime,noauto 0 0 |
126 |
/dev/hda6 /m/s/p reiserfs noatime,noauto 0 0 |
127 |
/dev/hda7 /m/s/p/src reiserfs noatime,noauto 0 0 |
128 |
/dev/hda8 /m/s/p/pkg reiserfs noatime,noauto 0 0 |
129 |
/dev/hda9 /m/s/usr/src reiserfs noatime,noauto 0 0 |
130 |
/dev/hda10 /m/s/l reiserfs noatime,noauto 0 0 |
131 |
/dev/hda11 /m/s/var reiserfs noatime,noauto 0 0 |
132 |
/dev/hda12 /m/s/var/log reiserfs noatime,noauto 0 0 |
133 |
/dev/hda13 /m/s/m/x/cc reiserfs noatime,noauto 0 0 |
134 |
/dev/hda14 /m/x/klbdo reiserfs noatime,noauto 0 0 |
135 |
/dev/hda15 /m/s/h reiserfs noatime,noauto 0 0 |
136 |
/dev/hda16 /m/x/n reiserfs noatime,noauto 0 0 |
137 |
/dev/hda17 /m/x/mail reiserfs noatime,noauto 0 0 |
138 |
/dev/hda18 /m/x/mm reiserfs noatime,noauto 0 0 |
139 |
**133GB-clear ignore ignore 133GB-clear 0 0 |
140 |
/dev/hda19 /m/s/bk/usr reiserfs noatime,noauto 0 0 |
141 |
/dev/hda20 /m/s/tmp reiserfs noatime,noauto 0 0 |
142 |
### ### |
143 |
########################################################################################### |
144 |
### swap and special devices and mounts ### |
145 |
########################################################################################### |
146 |
### ### |
147 |
/dev/sda3 swap swap pri=1 0 0 |
148 |
/dev/sdb3 swap swap pri=1 0 0 |
149 |
/dev/sdc3 swap swap pri=1 0 0 |
150 |
/dev/sdd3 swap swap pri=1 0 0 |
151 |
################## ################## ########## ################## ### |
152 |
proc /proc proc noauto 0 0 |
153 |
dev /dev tmpfs mode=0755,size=2m,noauto 0 0 |
154 |
pts /dev/pts devpts mode=0620,noauto 0 0 |
155 |
shm /dev/shm tmpfs size=50m 0 0 |
156 |
usb /proc/bus/usb usbfs noauto 0 0 |
157 |
/dev/hdc /m/dvd udf,iso9660 user,exec,noauto,ro 0 0 |
158 |
/dev/hdd /m/cd iso9660 user,exec,noauto,ro 0 0 |
159 |
/dev/fd0 /m/fd ext2,msdos user,exec,noauto,sync 0 0 |
160 |
### ### |
161 |
########################################################################################### |
162 |
########################################################################################### |
163 |
|
164 |
-- |
165 |
Duncan - List replies preferred. No HTML msgs. |
166 |
"Every nonfree program has a lord, a master -- |
167 |
and if you use the program, he is your master." Richard Stallman in |
168 |
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html |
169 |
|
170 |
|
171 |
-- |
172 |
gentoo-amd64@g.o mailing list |