Gentoo Archives: gentoo-server

From: Collin Starkweather <collin.starkweather@××××××××××××××××××.com>
To: gentoo-server@g.o
Subject: [gentoo-server] Filesystem question
Date: Mon, 11 Aug 2003 23:43:13
Message-Id: 1060644164.28475.971.camel@localhost
1 I recently installed Gentoo for the first time (and am loving it!) and
2 flubbed the step in the installation in which you edit /etc/fstab.
3 Though everything seems to be working correctly, some behavior has left
4 me mystified.
5
6 The flub was as follows: The original /etc/fstab that comes with Gentoo
7 has /dev/ROOT set to xfs. I accidentally forgot to change xfs to ext3.
8 When I cycled the box, fsck gave a few complaints but it booted just
9 fine. I corrected the problem and rebooted, but df now gives me
10
11 www build # df
12 Filesystem 1K-blocks Used Available Use% Mounted on
13 /dev/root 4134900 2107248 1985644 52% /
14 none 257572 0 257572 0% /dev/shm
15 /dev/sda7 4134900 45520 4047372 2% /app
16 ... blah blah blah ...
17
18 Of course, there is no /dev/root:
19
20 www build # ls -l /dev/root
21 ls: /dev/root: No such file or directory
22 www build #
23
24 According to fstab, I am supposed to have
25
26 /dev/sda1 -> /boot
27 /dev/sda5 -> /
28 /dev/sda6 -> swap
29 /dev/sda7 -> /app
30 /dev/sda8 -> /opt
31 /dev/sda9 -> /home
32
33 So I am somewhat mystified what /dev/root is (I've confirmed it is in
34 fact /dev/sda5); that is, why does it show up as it does in my df
35 output?
36
37 My /etc/fstab, partition table for /dev/sda, and dmesg output is below
38 my sig.
39
40 Thanks in advance!
41
42 -Collin
43
44 --
45 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46 Collin Starkweather, Ph.D collin.starkweather@××××××××.edu
47 University of Colorado Department of Economics
48 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
50
51 > MY /etc/fstab:
52 >
53 > www build # cat /etc/fstab
54 > # /etc/fstab: static file system information.
55 > # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12
56 > 2003/03/11 02:50:53 azarah Exp $
57 > #
58 > # noatime turns of atimes for increased performance (atimes normally
59 > aren't
60 > # needed; notail increases performance of ReiserFS (at the expense of
61 > storage
62 > # efficiency). It's safe to drop the noatime options if you want and to
63 > # switch between notail and tail freely.
64 >
65 > # <fs> <mountpoint> <type>
66 > <opts> <dump/pass>
67 >
68 > # NOTE: If your BOOT partition is ReiserFS, add the notail option to
69 > opts.
70 > /dev/sda1 /boot ext2
71 > noauto,noatime 1 1
72 > /dev/sda5 / ext3
73 > noatime 0 0
74 > /dev/sda6 none swap
75 > sw 0 0
76 > /dev/cdroms/cdrom0 /mnt/cdrom iso9660
77 > noauto,ro 0 0
78 >
79 > # NOTE: The next line is critical for boot!
80 > none /proc proc
81 > defaults 0 0
82 >
83 > none /dev/shm tmpfs
84 > defaults 0 0
85 >
86 > /dev/sda7 /app ext3
87 > defaults 1 2
88 > /dev/sda8 /opt ext3
89 > defaults 1 2
90 > /dev/sda9 /home ext3
91 > defaults 1 2
92 >
93 > /dev/sdb1 /archive ext2
94 > defaults 1 2
95 >
96 > www build #
97 >
98 > MY PARTITION TABLE FOR /dev/sda:
99 >
100 > www build # cat partitions.sda
101 > # partition table of /dev/sda
102 > unit: sectors
103 >
104 > /dev/sda1 : start= 63, size= 273042, Id=83, bootable
105 > /dev/sda2 : start= 0, size= 0, Id= 0
106 > /dev/sda3 : start= 0, size= 0, Id= 0
107 > /dev/sda4 : start= 273105, size= 71408925, Id= 5
108 > /dev/sda5 : start= 273168, size= 8401932, Id=83
109 > /dev/sda6 : start= 8675163, size= 2104452, Id=82
110 > /dev/sda7 : start= 10779678, size= 8401932, Id=83
111 > /dev/sda8 : start= 19181673, size= 8401932, Id=83
112 > /dev/sda9 : start= 27583668, size= 44098362, Id=83
113 > www build #
114 >
115 > THE OUTPUT FROM dmesg:
116 >
117 > www build # cat dmesg.2003.08.11.txt
118 > Linux version 2.4.19-gentoo-r10 (root@insane) (gcc version 3.2.2) #1 Sun
119 > Jun 1 18:36:57 MDT 2003
120 > BIOS-provided physical RAM map:
121 > BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
122 > BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
123 > BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
124 > BIOS-e820: 0000000000100000 - 000000001ffd0000 (usable)
125 > BIOS-e820: 000000001ffd0000 - 000000001ffff000 (ACPI data)
126 > BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
127 > BIOS-e820: 00000000fec00000 - 00000000fec02000 (reserved)
128 > BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
129 > BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
130 > 511MB LOWMEM available.
131 > found SMP MP-table at 000ff780
132 > hm, page 000ff000 reserved twice.
133 > hm, page 00100000 reserved twice.
134 > hm, page 000f1000 reserved twice.
135 > hm, page 000f2000 reserved twice.
136 > Advanced speculative caching feature not present
137 > On node 0 totalpages: 131024
138 > zone(0): 4096 pages.
139 > zone(1): 126928 pages.
140 > zone(2): 0 pages.
141 > Intel MultiProcessor Specification v1.4
142 > Virtual Wire compatibility mode.
143 > OEM ID: INTEL Product ID: CNB30LE APIC at: 0xFEE00000
144 > Processor #0 Pentium(tm) Pro APIC version 17
145 > I/O APIC #4 Version 17 at 0xFEC00000.
146 > I/O APIC #5 Version 17 at 0xFEC01000.
147 > Processors: 1
148 > Kernel command line: root=/dev/sda5
149 > Initializing CPU#0
150 > Detected 997.515 MHz processor.
151 > Console: colour VGA+ 80x25
152 > Calibrating delay loop... 1992.29 BogoMIPS
153 > Memory: 512888k/524096k available (1231k kernel code, 8644k reserved,
154 > 447k data, 80k init, 0k highmem)
155 > Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
156 > Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
157 > Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
158 > Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
159 > Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
160 > CPU: Before vendor init, caps: 0387fbff 00000000 00000000, vendor = 0
161 > CPU: L1 I cache: 16K, L1 D cache: 16K
162 > CPU: L2 cache: 256K
163 > CPU: After vendor init, caps: 0387fbff 00000000 00000000 00000000
164 > CPU serial number disabled.
165 > Intel machine check architecture supported.
166 > Intel machine check reporting enabled on CPU#0.
167 > CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
168 > CPU: Common caps: 0383fbff 00000000 00000000 00000000
169 > CPU: Intel Pentium III (Coppermine) stepping 0a
170 > Enabling fast FPU save and restore... done.
171 > Enabling unmasked SIMD FPU exception support... done.
172 > Checking 'hlt' instruction... OK.
173 > POSIX conformance testing by UNIFIX
174 > enabled ExtINT on CPU#0
175 > ESR value before enabling vector: 00000004
176 > ESR value after enabling vector: 00000000
177 > Using local APIC timer interrupts.
178 > calibrating APIC timer ...
179 > ..... CPU clock speed is 997.5173 MHz.
180 > ..... host bus clock speed is 133.0022 MHz.
181 > cpu: 0, clocks: 1330022, slice: 665011
182 > CPU0<T0:1330016,T1:664992,D:13,S:665011,C:1330022>
183 > mtrr: v1.40 (20010327) Richard Gooch (rgooch@××××××××××.au)
184 > mtrr: detected mtrr type: Intel
185 > PCI: PCI BIOS revision 2.10 entry at 0xfda65, last bus=1
186 > PCI: Using configuration type 1
187 > PCI: Probing PCI hardware
188 > PCI: Discovered primary peer bus 01 [IRQ]
189 > isapnp: Scanning for PnP cards...
190 > isapnp: No Plug & Play device found
191 > Linux NET4.0 for Linux 2.4
192 > Based upon Swansea University Computer Society NET3.039
193 > Initializing RT netlink socket
194 > Starting kswapd
195 > Journalled Block Device driver loaded
196 > Detected PS/2 Mouse Port.
197 > pty: 256 Unix98 ptys configured
198 > Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
199 > SERIAL_PCI ISAPNP enabled
200 > ttyS00 at 0x03f8 (irq = 4) is a 16550A
201 > Uniform Multi-Platform E-IDE driver Revision: 6.31
202 > ide: Assuming 33MHz system bus speed for PIO modes; override with
203 > idebus=xx
204 > ServerWorks OSB4: IDE controller on PCI bus 00 dev 79
205 > ServerWorks OSB4: detected chipset, but driver not compiled in!
206 > ServerWorks OSB4: chipset revision 0
207 > ServerWorks OSB4: not 100% native mode: will probe irqs later
208 > ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
209 > ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
210 > Floppy drive(s): fd0 is 1.44M
211 > FDC 0 is a post-1991 82077
212 > loop: loaded (max 8 devices)
213 > eepro100.c:v1.09j-t 9/29/99 Donald Becker
214 > http://www.scyld.com/network/eepro100.html
215 > eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin
216 > <saw@××××××××××.sg> and others
217 > eth0: Intel Corp. 82557/8/9 [Ethernet Pro 100], 00:02:B3:87:25:B6, IRQ
218 > 10.
219 > Board assembly 000000-000, Physical connectors present: RJ45
220 > Primary interface chip i82555 PHY #1.
221 > General self-test: passed.
222 > Serial sub-system self-test: passed.
223 > Internal registers self-test: passed.
224 > ROM checksum self-test: passed (0x04f4518b).
225 > eth1: Intel Corp. 82557/8/9 [Ethernet Pro 100] (#2), 00:02:B3:87:25:B7,
226 > IRQ 5.
227 > Board assembly 000000-000, Physical connectors present: RJ45
228 > Primary interface chip i82555 PHY #1.
229 > General self-test: passed.
230 > Serial sub-system self-test: passed.
231 > Internal registers self-test: passed.
232 > ROM checksum self-test: passed (0x04f4518b).
233 > Linux agpgart interface v0.99 (c) Jeff Hartmann
234 > agpgart: Maximum main memory to use for agp memory: 439M
235 > agpgart: no supported devices found.
236 > SCSI subsystem driver Revision: 1.00
237 > scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
238 > <Adaptec aic7899 Ultra160 SCSI adapter>
239 > aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
240 >
241 > scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
242 > <Adaptec aic7899 Ultra160 SCSI adapter>
243 > aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
244 >
245 > Vendor: IBM Model: DDYS-T36950M Rev: SC4D
246 > Type: Direct-Access ANSI SCSI revision: 03
247 > (scsi1:A:0): 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
248 > Vendor: IBM Model: DDYS-T36950M Rev: SC4D
249 > Type: Direct-Access ANSI SCSI revision: 03
250 > (scsi1:A:1): 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
251 > Vendor: ESG-SHV Model: SCA HSBP M14 Rev: 0.01
252 > Type: Processor ANSI SCSI revision: 02
253 > scsi1:A:0:0: Tagged Queuing enabled. Depth 253
254 > scsi1:A:1:0: Tagged Queuing enabled. Depth 253
255 > Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
256 > Attached scsi disk sdb at scsi1, channel 0, id 1, lun 0
257 > SCSI device sda: 71687340 512-byte hdwr sectors (36704 MB)
258 > Partition check:
259 > sda: sda1 sda4 < sda5 sda6 sda7 sda8 sda9 >
260 > SCSI device sdb: 71687340 512-byte hdwr sectors (36704 MB)
261 > sdb: sdb1
262 > usb.c: registered new driver hub
263 > uhci.c: USB Universal Host Controller Interface driver v1.1
264 > Initializing USB Mass Storage driver...
265 > usb.c: registered new driver usb-storage
266 > USB Mass Storage support registered.
267 > NET4: Linux TCP/IP 1.0 for NET4.0
268 > IP Protocols: ICMP, UDP, TCP
269 > IP: routing cache hash table of 4096 buckets, 32Kbytes
270 > TCP: Hash tables configured (established 32768 bind 65536)
271 > NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
272 > kjournald starting. Commit interval 5 seconds
273 > EXT3-fs: mounted filesystem with ordered data mode.
274 > VFS: Mounted root (ext3 filesystem) readonly.
275 > Freeing unused kernel memory: 80k freed
276 > Adding Swap: 1052216k swap-space (priority -1)
277 > EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,5), internal journal
278 > kjournald starting. Commit interval 5 seconds
279 > EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,7), internal journal
280 > EXT3-fs: mounted filesystem with ordered data mode.
281 > kjournald starting. Commit interval 5 seconds
282 > EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,8), internal journal
283 > EXT3-fs: mounted filesystem with ordered data mode.
284 > kjournald starting. Commit interval 5 seconds
285 > EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,9), internal journal
286 > EXT3-fs: mounted filesystem with ordered data mode.
287 > www build #
288 >