Re: Dave's Tinkering Again!



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I hereby accuse Dave Mann of stating:

Why can I not simply use the LABEL= order to designate in fstab as
follows:

LABEL=/boot /boot ext3 defaults 1 2
LABEL=/home /dev/hdb1 ext2 defaults 0 0
LABEL=/storage /dev/hdd1 ext2 auto,user,exec,rw 0 0

To eliminate the lines:

/dev/hdb1 /home ext2 auto,user,exec,rw 0 0
/dev/hdd1 /mnt/storage ext2 auto,user,exec,rw 0 0

This should work exactly the way you want it to, assuming that the LABEL was
set on the partition by mke2fs. Here's an excerpt from fstab(5):

The first field, (fs_spec), describes the block special device or
remote filesystem to be mounted.

For ordinary mounts it will hold (a link to) a block special device
node (as created by mknod(8)) for the device to be mounted, like
`/dev/cdrom' or `/dev/sdb7'. For NFS mounts one will have
<host>:<dir>, e.g., `knuth.aeb.nl:/'. For procfs, use `proc'.

Instead of giving the device explicitly, one may indicate the (ext2
or xfs) filesystem that is to be mounted by its UUID or volume label
(cf. e2label(8) or xfs_admin(8)), writing LABEL=<label> or
UUID=<uuid>, e.g., `LABEL=Boot' or
`UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'. This will make the
system more robust: adding or removing a SCSI disk changes the disk
device name but not the filesystem volume label.

I've never seen the syntax for "assigning" the label in a separate line -
maybe that takes care of assigning a temporary LABEL if one isn't actually
assigned to the filesystem, but it does seem counterintuitive as you
pointed out.

- --
S. Tyler McHenry

http://www.nerdland.net/~tyler/info/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFEqAyvyhIpIIGf1i4RAsEWAJ9WQpP4G60uSctyaL7d17NwY7RInACfZp2U
hzZUewIwJ2d3U5JDoo1Xas0=
=a+aD
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: Disk label and /etc/fstab entry?
    ... LABEL inside the disk. ... fstab and mount /u01 I get mount: wrong fs type, bad option, bad ... instead of an ext3 filesystem. ... change the fstab entry to ext2. ...
    (comp.os.linux.misc)
  • Re: [kde] automounting IPOD
    ... changes the disk device name but not the filesystem volume label. ... Archives: http://lists.kde.org/. ...
    (KDE)
  • Re: Alias for pen drives
    ... It depends on the label on the filesystem of the pen. ... but the device node for the drive and ... there is support for automounting inserted filesystems like ...
    (Fedora)
  • Re: system down - cant find luns (correction)
    ... The entries in your fstab are causing the system to mount filesystems by ... label rather than by the device file. ... the filesystem because you know what it's label is. ... pain for the same reason (like if you want to change system disks). ...
    (RedHat)
  • Re: Disk Partiotioning
    ... ./filesys is not a block special device. ... Filesystem larger than apparent device size. ... 504 inodes, 4000 blocks ... resize2fs to resize the filesystem, then use fdisk to resize the ...
    (Fedora)