Re: Dave's Tinkering Again!
- From: Tyler McHenry <tyler@xxxxxxxxxxxx>
- Date: Sun, 02 Jul 2006 11:12:56 -0700
-----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-----
.
- Follow-Ups:
- Re: Dave's Tinkering Again!
- From: Tyler McHenry
- Re: Dave's Tinkering Again!
- References:
- Dave's Tinkering Again!
- From: Dave Mann
- Dave's Tinkering Again!
- Prev by Date: Re: problem with the x server
- Next by Date: Re: Dave's Tinkering Again!
- Previous by thread: Dave's Tinkering Again!
- Next by thread: Re: Dave's Tinkering Again!
- Index(es):
Relevant Pages
|
|