-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-08-24 at 15:42 -0400, Felix Miata wrote:
On 2007/08/24 14:18 (GMT-0400) Carlos E. R. apparently typed:
Friday 2007-08-24 at 13:44 -0400, Felix Miata wrote:
A related issue is optional mounts. When exist upwards of 30 lines in fstab, with labels or worse for partition identification, it's a new and large headache to figure out what to type to mount partitions that are noauto in fstab. When using devicenames of 4-5 characters this was minor thing to remember.
Could you give a sample? I don't understand the issue (I do have long fstab files)
Consider all these fstab entries that might cause the exact same partition to mount to the exact same location (note that in Fedora 7, the first of the 5 is invalid-not using libata for PATA is not an option):
/dev/hda21 /disks/hda/fedora ext3 noauto,acl 0 0 LABEL=S12A-21fedora /disks/hda/fedora ext3 noauto,acl 0 0 UUID=7e303340-8ab6-4839-847e-260b9717c4a6 /disks/hda/fedora ext3 noauto,acl 0 0 ID=ata-ST3120814A_5LS0EPFV-part21 /disks/hda/fedora ext3 noauto,acl 0 0 PATH=pci-0000:00:1f.1-ide-0:0-part21 /disks/hda/fedora ext3 noauto,acl 0 0
Ah, I see the confusion. Well, /disks/hda/fedora refers to the same device and partition, but could not. Yes, a big source of problems. It would need an fstab parser/verification program. Not easy... I suppose the first match would mandate.
From CLI: 1-The old way, how fast could you mount the partition you remember is #21 on the first PATA disk? (e.g. mount /dev/hda21)
Well, I give mount points based on the intended usage of the partition, not based on the partition number. In the case above I would use "mount /disks/hda/fedora" and let the system figure! :-p
2-The libata way, how fast can you mount the partition you remember is #21 on the first PATA disk? How would you do it?
I dunno what is the libata way :-? Ah! Perhaps you mean that you wouldn't know ahead what name (sda, sdb, sdc...) it would have?
In addition, which one of those 5 possible entries to you prefer to have in your own (long) fstab(s)?
Label. If I give a partition a label it is because I want to use it. Otherwise, like for vfat partitions, I use the id: /dev/disk/by-id/usb-Kingston_DataTravelerCR_ad053f40c9f050-part1 /mnt/usb/Kingston vfat noauto,user,users,uid=cer,gid=users,fmask=0117,dm Mmmm...! Looking at your sample, I have discovered I could use "ID=/usb-Kingston_DataTravelerCR_ad053f40c9f050-part1" instead. A few letters shorter ;-) Perhaps I should use uuid, that seems to be not related to the partition number: it means that repartitioning doesn't affect it, same as a label. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGz07EtTMYHG2NR9URAiRGAJ9BDQsCZ9tzhU8mehvC9GlJa+9fDwCffpf3 AisDO/SzNL073QnUScQetmw= =DYWQ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org