From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-59544-garchives=archives.gentoo.org@gentoo.org>)
	id 1HE5r9-0001uP-47
	for garchives@archives.gentoo.org; Mon, 05 Feb 2007 15:34:11 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l15FVwQb028614;
	Mon, 5 Feb 2007 15:31:58 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189])
	by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l15FROpE023675
	for <gentoo-user@lists.gentoo.org>; Mon, 5 Feb 2007 15:27:25 GMT
Received: by nf-out-0910.google.com with SMTP id c31so3803300nfb
        for <gentoo-user@lists.gentoo.org>; Mon, 05 Feb 2007 07:27:24 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=dePTz3A977VQ9AB62en+LExr0opwhpqhm7bdwfveDbf9NWABq0Lx+rdcU0CeMr2XXXVeNggL9UZZTyPNrAR2E8FjbXiGvrfnbOtIKWFdPUcbwu+Gmmjml6gr2N9VB6HmvlmUpoLAbJiuWVBAjAMK+WUPsbHNo2TN/5gsvmiPE0U=
Received: by 10.82.116.15 with SMTP id o15mr2020264buc.1170689243284;
        Mon, 05 Feb 2007 07:27:23 -0800 (PST)
Received: by 10.82.136.1 with HTTP; Mon, 5 Feb 2007 07:27:23 -0800 (PST)
Message-ID: <df9900ae0702050727y2a212636mf2ecd630a6e088ea@mail.gmail.com>
Date: Mon, 5 Feb 2007 07:27:23 -0800
From: "Douglas Linford" <drkrider@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Automounting drives, partitions & udev, mtab & fstab
In-Reply-To: <200702051712.47685.alan@linuxholdings.co.za>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_62863_20340145.1170689243140"
References: <df9900ae0702041918g65e92d29q1792ed9d9bfcba66@mail.gmail.com>
	 <200702050906.04980.alan@linuxholdings.co.za>
	 <df9900ae0702050635qc588271h17801daca8d39b82@mail.gmail.com>
	 <200702051712.47685.alan@linuxholdings.co.za>
X-Archives-Salt: 790d1c3a-364c-4e2e-bc90-559bebb3a6b0
X-Archives-Hash: 006518a8a126a4384f7ecb6eae3edf22

------=_Part_62863_20340145.1170689243140
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Alan,

Thank you for the explanation...some of this helps, I already knew about the
mount command. I have hal and dbus installed...what GUI tools for those apps
were you refering to?

douglas

On 2/5/07, Alan McKinnon <alan@linuxholdings.co.za> wrote:
>
> On Monday 05 February 2007, Douglas Linford wrote:
> > Alan,
> >
> >
> > Excuse the double post....
>
> You mean the top post? Please don't do that, on mailing lists it's
> considered rude
>
> > So...I am running Gnome 2.16.2   Is Gnome Volume Manager also
> > managing the drives and partitions I have?
>
> Yes
>
> > And then what creates the volume name that is displayed on the
> > desktop for that drive?
>
> Gnome VFS (Virtual File System) reads it from various possible places,
> like the file system label, or the disk drive description, or one of
> the USB attributes in the case of USB storage devices.
>
> What VFS us trying to do is find a sensible descriptor to display to you
> so you know what device it's talking about
>
> > In my example I have a USB external drive with a ext3 partition,
> > there is no listing in /etc/fstab for that partition, /etc/mtab lists
> > it as, /dev/sdc2 /media/disk, and on the desktop the icon for it
> > reads, 66.0 GB Volume. Where is that configured?
>
> It isn't configured anywhere to my knowledge, but I'm not a Gnome user
> and could be wrong.
>
> Let me explain how this works:
>
> The kernel knows about mount points and file systems. Somewhere it has a
> function that performs a mount, and user space programs use this
> function to accomplish the mount. One such program is "mount", which is
> configured via /etc/fstab and mtab as you point out. "mount" is a
> traditional program, been around for ages and we all know and love it.
> It's even suid so regular users can use it if root puts "user"
> or "users" in the options for a particular mount.
>
> "mount" is not the only way to mount stuff though. You can write any
> user space program you want, and call it whatever you feel like, to
> perform this system function called mounting. And you don't *have* to
> consider /etc/fstab when doing it either. Now, "mount" worked fine for
> years, but it all went belly up when pluggable storage devices came
> out. A user expects to insert a flash disk or camera and to see the
> files on it, and to not have to be root to do this. This effectively
> makes mount unsuitable for pluggable devices.
>
> So KDE and Gnome have figured out other ways to mount stuff, and lately
> the workable solutions have used hal to find devices and dbus to tell
> apps about the device, all nicely configurable with GUI tools. They
> don't use fstab either.
>
> You can cause interesting effects for yourself if you use an app like
> supermount from Mandriva and also use KDE automounting. Supermount
> modifies fstab, so this combination can result in the same device being
> mounted twice at the same time - entirely possible but seldom what you
> want :-)
>
> I hope this helps, and that I correctly judged what you needed to know.
> Now it's up to you to find the cute box to click to get the behaviour
> you want.
>
> alan
>
> --
> Optimists say the glass is half full,
> Pessimists say the glass is half empty,
> Developers say wtf is the glass twice as big as it needs to be?
>
> Alan McKinnon
> alan at linuxholdings dot co dot za
> +27 82, double three seven, one nine three five
> --
> gentoo-user@gentoo.org mailing list
>
>

------=_Part_62863_20340145.1170689243140
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Alan,<br><br>Thank you for the explanation...some of this helps, I already knew about the mount command. I have hal and dbus installed...what GUI tools for those apps were you refering to?<br><br>douglas<br><br><div><span class="gmail_quote">
On 2/5/07, <b class="gmail_sendername">Alan McKinnon</b> &lt;<a href="mailto:alan@linuxholdings.co.za">alan@linuxholdings.co.za</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Monday 05 February 2007, Douglas Linford wrote:<br>&gt; Alan,<br>&gt;<br>&gt;<br>&gt; Excuse the double post....<br><br>You mean the top post? Please don&#39;t do that, on mailing lists it&#39;s<br>considered rude<br><br>
&gt; So...I am running Gnome 2.16.2&nbsp;&nbsp; Is Gnome Volume Manager also<br>&gt; managing the drives and partitions I have?<br><br>Yes<br><br>&gt; And then what creates the volume name that is displayed on the<br>&gt; desktop for that drive?
<br><br>Gnome VFS (Virtual File System) reads it from various possible places,<br>like the file system label, or the disk drive description, or one of<br>the USB attributes in the case of USB storage devices.<br><br>What VFS us trying to do is find a sensible descriptor to display to you
<br>so you know what device it&#39;s talking about<br><br>&gt; In my example I have a USB external drive with a ext3 partition,<br>&gt; there is no listing in /etc/fstab for that partition, /etc/mtab lists<br>&gt; it as, /dev/sdc2 /media/disk, and on the desktop the icon for it
<br>&gt; reads, 66.0 GB Volume. Where is that configured?<br><br>It isn&#39;t configured anywhere to my knowledge, but I&#39;m not a Gnome user<br>and could be wrong.<br><br>Let me explain how this works:<br><br>The kernel knows about mount points and file systems. Somewhere it has a
<br>function that performs a mount, and user space programs use this<br>function to accomplish the mount. One such program is &quot;mount&quot;, which is<br>configured via /etc/fstab and mtab as you point out. &quot;mount&quot; is a
<br>traditional program, been around for ages and we all know and love it.<br>It&#39;s even suid so regular users can use it if root puts &quot;user&quot;<br>or &quot;users&quot; in the options for a particular mount.<br>
<br>&quot;mount&quot; is not the only way to mount stuff though. You can write any<br>user space program you want, and call it whatever you feel like, to<br>perform this system function called mounting. And you don&#39;t *have* to
<br>consider /etc/fstab when doing it either. Now, &quot;mount&quot; worked fine for<br>years, but it all went belly up when pluggable storage devices came<br>out. A user expects to insert a flash disk or camera and to see the
<br>files on it, and to not have to be root to do this. This effectively<br>makes mount unsuitable for pluggable devices.<br><br>So KDE and Gnome have figured out other ways to mount stuff, and lately<br>the workable solutions have used hal to find devices and dbus to tell
<br>apps about the device, all nicely configurable with GUI tools. They<br>don&#39;t use fstab either.<br><br>You can cause interesting effects for yourself if you use an app like<br>supermount from Mandriva and also use KDE automounting. Supermount
<br>modifies fstab, so this combination can result in the same device being<br>mounted twice at the same time - entirely possible but seldom what you<br>want :-)<br><br>I hope this helps, and that I correctly judged what you needed to know.
<br>Now it&#39;s up to you to find the cute box to click to get the behaviour<br>you want.<br><br>alan<br><br>--<br>Optimists say the glass is half full,<br>Pessimists say the glass is half empty,<br>Developers say wtf is the glass twice as big as it needs to be?
<br><br>Alan McKinnon<br>alan at linuxholdings dot co dot za<br>+27 82, double three seven, one nine three five<br>--<br><a href="mailto:gentoo-user@gentoo.org">gentoo-user@gentoo.org</a> mailing list<br><br></blockquote>
</div><br>

------=_Part_62863_20340145.1170689243140--
-- 
gentoo-user@gentoo.org mailing list