Gentoo Archives: gentoo-user

From: Douglas Linford <drkrider@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Automounting drives, partitions & udev, mtab & fstab
Date: Mon, 05 Feb 2007 15:34:11
Message-Id: df9900ae0702050727y2a212636mf2ecd630a6e088ea@mail.gmail.com
In Reply to: Re: [gentoo-user] Automounting drives, partitions & udev, mtab & fstab by Alan McKinnon
1 Alan,
2
3 Thank you for the explanation...some of this helps, I already knew about the
4 mount command. I have hal and dbus installed...what GUI tools for those apps
5 were you refering to?
6
7 douglas
8
9 On 2/5/07, Alan McKinnon <alan@××××××××××××××××.za> wrote:
10 >
11 > On Monday 05 February 2007, Douglas Linford wrote:
12 > > Alan,
13 > >
14 > >
15 > > Excuse the double post....
16 >
17 > You mean the top post? Please don't do that, on mailing lists it's
18 > considered rude
19 >
20 > > So...I am running Gnome 2.16.2 Is Gnome Volume Manager also
21 > > managing the drives and partitions I have?
22 >
23 > Yes
24 >
25 > > And then what creates the volume name that is displayed on the
26 > > desktop for that drive?
27 >
28 > Gnome VFS (Virtual File System) reads it from various possible places,
29 > like the file system label, or the disk drive description, or one of
30 > the USB attributes in the case of USB storage devices.
31 >
32 > What VFS us trying to do is find a sensible descriptor to display to you
33 > so you know what device it's talking about
34 >
35 > > In my example I have a USB external drive with a ext3 partition,
36 > > there is no listing in /etc/fstab for that partition, /etc/mtab lists
37 > > it as, /dev/sdc2 /media/disk, and on the desktop the icon for it
38 > > reads, 66.0 GB Volume. Where is that configured?
39 >
40 > It isn't configured anywhere to my knowledge, but I'm not a Gnome user
41 > and could be wrong.
42 >
43 > Let me explain how this works:
44 >
45 > The kernel knows about mount points and file systems. Somewhere it has a
46 > function that performs a mount, and user space programs use this
47 > function to accomplish the mount. One such program is "mount", which is
48 > configured via /etc/fstab and mtab as you point out. "mount" is a
49 > traditional program, been around for ages and we all know and love it.
50 > It's even suid so regular users can use it if root puts "user"
51 > or "users" in the options for a particular mount.
52 >
53 > "mount" is not the only way to mount stuff though. You can write any
54 > user space program you want, and call it whatever you feel like, to
55 > perform this system function called mounting. And you don't *have* to
56 > consider /etc/fstab when doing it either. Now, "mount" worked fine for
57 > years, but it all went belly up when pluggable storage devices came
58 > out. A user expects to insert a flash disk or camera and to see the
59 > files on it, and to not have to be root to do this. This effectively
60 > makes mount unsuitable for pluggable devices.
61 >
62 > So KDE and Gnome have figured out other ways to mount stuff, and lately
63 > the workable solutions have used hal to find devices and dbus to tell
64 > apps about the device, all nicely configurable with GUI tools. They
65 > don't use fstab either.
66 >
67 > You can cause interesting effects for yourself if you use an app like
68 > supermount from Mandriva and also use KDE automounting. Supermount
69 > modifies fstab, so this combination can result in the same device being
70 > mounted twice at the same time - entirely possible but seldom what you
71 > want :-)
72 >
73 > I hope this helps, and that I correctly judged what you needed to know.
74 > Now it's up to you to find the cute box to click to get the behaviour
75 > you want.
76 >
77 > alan
78 >
79 > --
80 > Optimists say the glass is half full,
81 > Pessimists say the glass is half empty,
82 > Developers say wtf is the glass twice as big as it needs to be?
83 >
84 > Alan McKinnon
85 > alan at linuxholdings dot co dot za
86 > +27 82, double three seven, one nine three five
87 > --
88 > gentoo-user@g.o mailing list
89 >
90 >

Replies

Subject Author
Re: [gentoo-user] Automounting drives, partitions & udev, mtab & fstab Alan McKinnon <alan@××××××××××××××××.za>