On Mon, 2002-08-12 at 22:21, Hal Burgiss wrote: > On Mon, Aug 12, 2002 at 09:56:47PM -0500, Bret Hughes wrote: > > > > The only way I have even found the tie is using cfdisk. Is there > > another way to find out what the device is for a given mount point? > > > > df, Brett? At least for whats mounted when the script runs. > > -- > Hal Burgiss I guess either of these will work but only if label is the same as the mount point. That is indeed the case right now but I am not sure that will always be the case and I hate making assumptions. I dug around in proc a bit and man'ed my $*$& off but I can't find a simple command that will return the label from a partition. I can set it with tune2fs according to the man page but not list it. cfdisk -P [ast] gives me allsorts of cool stuff but not the lablel. I gues it moght be in the raw dump of the partition table but I thought surely there is something I am missing. I may get pissed and start digging around in the mount code since it can read fstab with only labels so I know there is a system call that has to accomplish this somehow. You know I am out of control if I go digging in c code :)
Seems crazy to me. Thanks guys. Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list