* nfs mount by label not working.
@ 2001-05-23 19:11 Dave Mielke
2001-05-23 20:23 ` Tim Moore
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Dave Mielke @ 2001-05-23 19:11 UTC (permalink / raw)
To: Linux Kernel (mailing list)
Using kernel 2.2.17-14 as supplied by RedHat, and using mount from
mount-2.9u-4, mounting by label using the -L option does not work.
mount -L backup1 /a
mount: no such partition found
The mount man page says that "/proc/partitions" must exist.
ls -l /proc/partitions
-r--r--r-- 1 root root 0 May 23 15:10 /proc/partitions
Does something need to be enabled to make this work? What else might I be doing
wrong?
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-23 19:11 nfs mount by label not working Dave Mielke
@ 2001-05-23 20:23 ` Tim Moore
2001-05-23 21:12 ` Guest section DW
2001-05-24 7:31 ` Philipp Matthias Hahn
2 siblings, 0 replies; 7+ messages in thread
From: Tim Moore @ 2001-05-23 20:23 UTC (permalink / raw)
To: Dave Mielke; +Cc: Linux Kernel (mailing list)
v2.10r works.
[tim@abit tim]# mount -V
mount: mount-2.10r
[tim@abit tim]# tune2fs -L spare /dev/hda10
tune2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
[tim@abit tim]# mount -L spare /mnt
[tim@abit tim]# df /mnt
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda10 3028080 2100116 927964 69% /mnt
[tim@abit tim]# cat /proc/version
Linux version 2.2.20p2aa1-a (root@abit) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #2 Sat May 19 18:46:38 PDT 2001
Dave Mielke wrote:
>
> Using kernel 2.2.17-14 as supplied by RedHat, and using mount from
> mount-2.9u-4, mounting by label using the -L option does not work.
>
> mount -L backup1 /a
> mount: no such partition found
...
> Does something need to be enabled to make this work? What else might I be doing
> wrong?
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-23 19:11 nfs mount by label not working Dave Mielke
2001-05-23 20:23 ` Tim Moore
@ 2001-05-23 21:12 ` Guest section DW
2001-05-23 21:34 ` Dave Mielke
2001-05-24 7:31 ` Philipp Matthias Hahn
2 siblings, 1 reply; 7+ messages in thread
From: Guest section DW @ 2001-05-23 21:12 UTC (permalink / raw)
To: Dave Mielke, Linux Kernel (mailing list)
On Wed, May 23, 2001 at 03:11:41PM -0400, Dave Mielke wrote:
> Using kernel 2.2.17-14 as supplied by RedHat, and using mount from
> mount-2.9u-4, mounting by label using the -L option does not work.
>
> mount -L backup1 /a
> mount: no such partition found
>
> The mount man page says that "/proc/partitions" must exist.
>
> ls -l /proc/partitions
> -r--r--r-- 1 root root 0 May 23 15:10 /proc/partitions
>
> Does something need to be enabled to make this work? What else might I be doing
> wrong?
Everything
> I believe that the Bible is the
> Word of God. Please contact me
> if you're concerned about Hell.
Hm. Hell - that h must have been a k - it must mean something like
the secret or hidden place, as in Latin celare or Greek kaluptein
and in cellar and conceal and occult.
Much more can be said. Some other time.
Hmm. God. Less easy. Will think about that one.
You use it as if it were a proper name, but that must be a mistake.
Gothic has "guth", a neuter consonant stem. And it is the same in
Old Nordic. Maybe the word is Germanic only? Or connection with Sanskrit hu-?
Bible. Greek: biblion. Booklet.
But concerning mount [French monter, Latin montare etc]:
(i) Your version is ancient, but it might be good enough.
(ii) Labels as used in "mount -L label" are ext2 labels only
(well, xfs also works if I recall correctly)
(iii) I forgot to implement a crystal ball, so mount is not
very good in divining [yes, that is related to the old
indoeuropean words for god] where the devices are with a
given label. However, it will try everything mentioned in /proc/partitions.
In your case that is a very short list.
Andries
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-23 21:12 ` Guest section DW
@ 2001-05-23 21:34 ` Dave Mielke
2001-05-23 22:13 ` Guest section DW
0 siblings, 1 reply; 7+ messages in thread
From: Dave Mielke @ 2001-05-23 21:34 UTC (permalink / raw)
To: Guest section DW; +Cc: Linux Kernel (mailing list)
[quoted lines by Guest section DW on May 23, 2001, at 23:12]
>(i) Your version is ancient, but it might be good enough.
mount -V
mount: mount-2.9u
>(ii) Labels as used in "mount -L label" are ext2 labels only
>(well, xfs also works if I recall correctly)
I set the labels with e2label.
>(iii) I forgot to implement a crystal ball, so mount is not
>very good in divining [yes, that is related to the old
>indoeuropean words for god] where the devices are with a
>given label. However, it will try everything mentioned in /proc/partitions.
>In your case that is a very short list.
I presume that you're assuming that my /proc/partitions is empty because its
size shows as 0:
ls -l /proc/partitions
-r--r--r-- 1 root root 0 May 23 17:31 /proc/partitions
It does, however, have several lines in it.
cat /proc/partitions
major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
3 0 6297480 hda 119 141 520 1790 0 0 0 0 0 1180 1790
3 1 1534176 hda1 0 0 0 0 0 0 0 0 0 0 0
3 2 1 hda2 1 0 2 20 0 0 0 0 0 20 20
3 3 96358 hda3 0 0 0 0 0 0 0 0 0 0 0
3 4 1534207 hda4 0 0 0 0 0 0 0 0 0 0 0
3 5 1052226 hda5 0 0 0 0 0 0 0 0 0 0 0
3 6 1052226 hda6 1 0 2 10 0 0 0 0 0 10 10
3 7 208813 hda7 1 0 2 20 0 0 0 0 0 20 20
3 8 819283 hda8 115 141 512 1730 0 0 0 0 0 1120 1730
22 64 6297480 hdd 29218 300606 783536 808790 42553 89013 382004 2952210 0 599630 3763620
22 65 522081 hdd1 0 0 0 0 0 0 0 0 0 0 0
22 66 1 hdd2 1 0 2 10 0 0 0 0 0 10 10
22 69 80293 hdd5 0 0 0 0 0 0 0 0 0 0 0
22 70 401593 hdd6 161 30 382 2570 55 6 122 10590 0 7470 13160
22 71 1004031 hdd7 3000 54712 115428 76420 213 34 520 25520 0 60270 101940
22 72 200781 hdd8 1 0 2 20 0 0 0 0 0 20 20
22 73 120456 hdd9 1 0 2 10 0 0 0 0 0 10 10
22 74 883543 hdd10 4320 35159 78992 101950 8704 20252 59014 838820 0 149590 943220
22 75 128488 hdd11 2943 17697 165114 91090 2662 16775 155496 212510 0 143130 303600
22 76 208813 hdd12 1 0 2 10 0 0 0 0 0 10 10
22 77 1542208 hdd13 17758 192335 420202 515170 16930 5075 44786 1281640 0 363310 1796970
22 78 514048 hdd14 1031 673 3408 21500 13989 46871 122066 583130 0 166600 604640
Might my problem be that the kernel is showing its size as 0 even though it
actually does contain data?
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-23 21:34 ` Dave Mielke
@ 2001-05-23 22:13 ` Guest section DW
0 siblings, 0 replies; 7+ messages in thread
From: Guest section DW @ 2001-05-23 22:13 UTC (permalink / raw)
To: Dave Mielke; +Cc: Linux Kernel (mailing list)
On Wed, May 23, 2001 at 05:34:22PM -0400, Dave Mielke wrote:
> I presume that you're assuming that my /proc/partitions is empty because its
> size shows as 0:
>
> ls -l /proc/partitions
> -r--r--r-- 1 root root 0 May 23 17:31 /proc/partitions
Ah, yes, sorry - I was too quick here.
> It does, however, have several lines in it.
>
> cat /proc/partitions
> major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
>
> 3 0 6297480 hda 119 141 520 1790 0 0 0 0 0 1180 1790
But this is full of strange numbers that someone saw fit to add to /proc/partitions.
What a bad idea!
If someone changes /proc/partitions then probably the old utilities that used it
are broken. I do not have a memory, but it seems I recall fixing this already.
Try a recent mount, say from util-linux 2.11d.
[But you show IDE disks, but the subject line talks about NFS mounts?]
Andries
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-23 19:11 nfs mount by label not working Dave Mielke
2001-05-23 20:23 ` Tim Moore
2001-05-23 21:12 ` Guest section DW
@ 2001-05-24 7:31 ` Philipp Matthias Hahn
2001-05-24 23:52 ` Dave Mielke
2 siblings, 1 reply; 7+ messages in thread
From: Philipp Matthias Hahn @ 2001-05-24 7:31 UTC (permalink / raw)
To: Dave Mielke; +Cc: Linux Kernel (mailing list)
On Wed, 23 May 2001, Dave Mielke wrote:
> Using kernel 2.2.17-14 as supplied by RedHat, and using mount from
> mount-2.9u-4, mounting by label using the -L option does not work.
>
> mount -L backup1 /a
Do you realy mean what you wrote in the Subject line:
Subject : Re: *nfs* mount by label not working.
^^^^^
That would be something like:
ask every server in the known universe if it has a nfs-export by
name backup1, choose one of them and mount it locally on /a.
If you use nfs you have to specify the server and the volume old
fashioned. Mounting by lable or uuid is supported by very few filesystems,
mainly by ext2 only.
What the kernel does is to read /proc/partitions and check if any
partition found there has the label or uuid you search for.
BYtE
Philipp
--
/ / (_)__ __ ____ __ Philipp Hahn
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ pmhahn@titan.lahn.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: nfs mount by label not working.
2001-05-24 7:31 ` Philipp Matthias Hahn
@ 2001-05-24 23:52 ` Dave Mielke
0 siblings, 0 replies; 7+ messages in thread
From: Dave Mielke @ 2001-05-24 23:52 UTC (permalink / raw)
To: Philipp Matthias Hahn; +Cc: Linux Kernel (mailing list)
[quoted lines by Philipp Matthias Hahn on May 24, 2001, at 09:31]
>Do you realy mean what you wrote in the Subject line:
>
>Subject : Re: *nfs* mount by label not working.
No, I mean ext2. It would appear that my mount command was a little old. A
newer version of mount works.
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-05-24 23:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-23 19:11 nfs mount by label not working Dave Mielke
2001-05-23 20:23 ` Tim Moore
2001-05-23 21:12 ` Guest section DW
2001-05-23 21:34 ` Dave Mielke
2001-05-23 22:13 ` Guest section DW
2001-05-24 7:31 ` Philipp Matthias Hahn
2001-05-24 23:52 ` Dave Mielke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.