Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how would I use device names in fstab?
Date: Thu, 27 Dec 2007 13:37:02
Message-Id: BA4ED184-7F0B-4A10-8EAE-377E944A3673@stellar.eclipse.co.uk
In Reply to: [gentoo-user] how would I use device names in fstab? by Thufir
1 On 27 Dec 2007, at 09:38, Thufir wrote:
2
3 > I think that the fstab needs to be changed to use device names, but
4 > I'm
5 > not sure what that means:
6 > ...
7 > hda: WDC WD800BB-22JHC0, ATA DISK drive
8 > hdb: Maxtor 2F030L0, ATA DISK drive
9 > hdc: SAMSUNG CD-ROM SC-148C, ATAPI CD/DVD-ROM drive
10 > hdd: CD-RW CDR-6S52, ATAPI CD/DVD-ROM drive
11 > hdc: Disabling (U)DMA for SAMSUNG CD-ROM SC-148C (blacklisted)
12 > hda: max request size: 128KiB
13 > hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63,
14 > UDMA
15 > (100)
16 > hda: cache flushes supported
17 > hda: hda1 hda2 hda3
18 > hdb: max request size: 128KiB
19 > hdb: 60058656 sectors (30750 MB) w/2048KiB Cache, CHS=59582/16/63,
20 > UDMA
21 > (133)
22 > hdb: cache flushes supported
23 > hdb: hdb1 hdb2 hdb3
24 > hdc: ATAPI 48X CD-ROM drive, 128kB Cache
25 > hdd: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
26 > EXT3 FS on hdb3, internal journal
27 > Adding 960616k swap on /dev/hdb2. Priority:-1 extents:1 across:
28 > 960616k
29 > hdc: Disabling (U)DMA for SAMSUNG CD-ROM SC-148C (blacklisted)
30 > hdc: Disabling (U)DMA for SAMSUNG CD-ROM SC-148C (blacklisted)
31 > arrakis ~ #
32 > arrakis ~ # cat /etc/fstab
33 > /dev/cdrom /mnt/cdrom auto noauto,user 0 0
34 > /dev/cdrom1 /mnt/cdrom1 auto noauto,user 0 0
35 > /dev/cdrw1 /mnt/cdrw1 auto noauto,user 0 0
36 >
37 > /dev/hdb1 /boot ext2 defaults 1 2
38 > /dev/hdb2 none swap sw 0 0
39 > /dev/hdb3 / ext3 noatime 0 1
40
41 Unless I'm very much mistaken device names are the kind of names on
42 traditionally finds in /dev - eg. /dev/hda, /dev/hdb &c. ISTM that in
43 referring to partitions in /etc/fstab as /dev/hdb1 & so on you ARE
44 using device names.
45
46 I'm not seeing any critical error messages in your output - could you
47 perhaps explain what the problem is exactly?
48
49 More modern kernels allow you to refer to volume labels in /etc/
50 fstab, thus:
51 LABEL=boot /boot ext3
52 noauto,noatime 1 2
53 LABEL=root / reiserfs
54 noatime 0 1
55 but I don't believe there's any necessity to change anything if it's
56 working.
57
58 Stroller.
59
60 --
61 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: how would I use device names in fstab? Thufir <hawat.thufir@×××××.com>