Gentoo Archives: gentoo-server

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

Replies

Subject Author
RE: [gentoo-server] Filesystem question Collin Starkweather <collin.starkweather@××××××××××××××××××.com>