public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] udev and fstab
  2005-12-14 15:15 [gentoo-user] udev and fstab Martins Steinbergs
@ 2005-12-14 15:08 ` Dirk Heinrichs
  2005-12-14 20:37   ` Christoph Eckert
  2005-12-14 16:18 ` Neil Bothwick
  1 sibling, 1 reply; 9+ messages in thread
From: Dirk Heinrichs @ 2005-12-14 15:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

Am Mittwoch, 14. Dezember 2005 16:15 schrieb ext Martins Steinbergs:

> Am I right that udev will handle mounts for /dev/hdc/ (DVD+CDRW)
> according to udev.rules what media is inserted?

No, udev handles device node creation. You still have to mount yourself or 
use an automounter.

> And is there way to very force umount media even if it claims device is
> busy and i cant figure out what process is responsible for that.

Did you try fuser?

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] udev and fstab
@ 2005-12-14 15:15 Martins Steinbergs
  2005-12-14 15:08 ` Dirk Heinrichs
  2005-12-14 16:18 ` Neil Bothwick
  0 siblings, 2 replies; 9+ messages in thread
From: Martins Steinbergs @ 2005-12-14 15:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

hi

Gentoo udev Guide didnt answer my question, is it good idea to remove fstab 
entry for removables, i have this 
/dev/hdc          /media/cdrecorder       auto    user,exec,noauto,managed 0 0
since fresh install and then there was devfs. Am I right that udev will handle 
mounts for /dev/hdc/ (DVD+CDRW) according to udev.rules what media is 
inserted?

And is there way to very force umount media even if it claims device is busy 
and i cant figure out what process is responsible for that.

martins
-- 
Linux 2.6.14-ck6 AMD Athlon(tm) 64 Processor 3200+
 16:48:18 up  6:00,  5 users,  load average: 1.06, 1.08, 1.08

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 15:15 [gentoo-user] udev and fstab Martins Steinbergs
  2005-12-14 15:08 ` Dirk Heinrichs
@ 2005-12-14 16:18 ` Neil Bothwick
  2005-12-15  7:30   ` Dirk Heinrichs
  1 sibling, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2005-12-14 16:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

On Wed, 14 Dec 2005 17:15:20 +0200, Martins Steinbergs wrote:


> Gentoo udev Guide didnt answer my question, is it good idea to remove
> fstab entry for removables, i have this 
> /dev/hdc          /media/cdrecorder       auto
> user,exec,noauto,managed 0 0 since fresh install and then there was
> devfs. Am I right that udev will handle mounts for /dev/hdc/ (DVD+CDRW)
> according to udev.rules what media is inserted?

udev handles the creation of the device nodes, mounting is handled by
hal. hal normally creates its own mount points in /media, but if the
device is listed in /etc/fstab, it will use whatever is in there.


-- 
Neil Bothwick

Why is the word abbreviation so long?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 15:08 ` Dirk Heinrichs
@ 2005-12-14 20:37   ` Christoph Eckert
  2005-12-14 20:57     ` Martins Steinbergs
  2005-12-14 21:15     ` Richard Fish
  0 siblings, 2 replies; 9+ messages in thread
From: Christoph Eckert @ 2005-12-14 20:37 UTC (permalink / raw
  To: gentoo-user


> > And is there way to very force umount media even if it claims
> > device is busy and i cant figure out what process is responsible
> > for that.
>
> Did you try fuser?

I made the experience that fuser or lsof often don't help much when you 
have problems unmounting a device. The output is empty, and you don't 
know why the heck you are not allowed to unmount a device.


Best regards


    ce

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 20:37   ` Christoph Eckert
@ 2005-12-14 20:57     ` Martins Steinbergs
  2005-12-14 23:16       ` Christoph Eckert
  2005-12-14 21:15     ` Richard Fish
  1 sibling, 1 reply; 9+ messages in thread
From: Martins Steinbergs @ 2005-12-14 20:57 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

On Wednesday 14 December 2005 22:37, Christoph Eckert wrote:
> > > And is there way to very force umount media even if it claims
> > > device is busy and i cant figure out what process is responsible
> > > for that.
> >
> > Did you try fuser?
>
> I made the experience that fuser or lsof often don't help much when you
> have problems unmounting a device. The output is empty, and you don't
> know why the heck you are not allowed to unmount a device.
>
>
> Best regards
>
>
>     ce
fuser -k /media/cdrecorder was successful, thanks for pointing to fuser

martins
-- 
Linux 2.6.14-ck6 AMD Athlon(tm) 64 Processor 3200+
 22:50:13 up  1:22,  5 users,  load average: 0.50, 0.36, 0.44

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 20:37   ` Christoph Eckert
  2005-12-14 20:57     ` Martins Steinbergs
@ 2005-12-14 21:15     ` Richard Fish
  1 sibling, 0 replies; 9+ messages in thread
From: Richard Fish @ 2005-12-14 21:15 UTC (permalink / raw
  To: gentoo-user

On 12/14/05, Christoph Eckert <ce@christeck.de> wrote:
>
> > > And is there way to very force umount media even if it claims
> > > device is busy and i cant figure out what process is responsible
> > > for that.
> >
> > Did you try fuser?
>
> I made the experience that fuser or lsof often don't help much when you
> have problems unmounting a device. The output is empty, and you don't
> know why the heck you are not allowed to unmount a device.

Also try:

ls -l /proc/[0-9]*/cwd.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 20:57     ` Martins Steinbergs
@ 2005-12-14 23:16       ` Christoph Eckert
  0 siblings, 0 replies; 9+ messages in thread
From: Christoph Eckert @ 2005-12-14 23:16 UTC (permalink / raw
  To: gentoo-user


> fuser -k /media/cdrecorder was successful, thanks for pointing to
> fuser

will the -k option also help if a kernel lock happens on a device?


Best regards


    ce

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-14 16:18 ` Neil Bothwick
@ 2005-12-15  7:30   ` Dirk Heinrichs
  2005-12-15  9:52     ` Neil Bothwick
  0 siblings, 1 reply; 9+ messages in thread
From: Dirk Heinrichs @ 2005-12-15  7:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

Am Mittwoch, 14. Dezember 2005 17:18 schrieb ext Neil Bothwick:

> udev handles the creation of the device nodes, mounting is handled by
> hal. hal normally creates its own mount points in /media, but if the
> device is listed in /etc/fstab, it will use whatever is in there.

How do you know that mounting is handled by hal on his machine? He didn't 
say so. He could also use the kernel automounter to create /media/whatever.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] udev and fstab
  2005-12-15  7:30   ` Dirk Heinrichs
@ 2005-12-15  9:52     ` Neil Bothwick
  0 siblings, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2005-12-15  9:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

On Thu, 15 Dec 2005 08:30:08 +0100, Dirk Heinrichs wrote:


> > udev handles the creation of the device nodes, mounting is handled by
> > hal. hal normally creates its own mount points in /media, but if the
> > device is listed in /etc/fstab, it will use whatever is in there.
> 
> How do you know that mounting is handled by hal on his machine? He
> didn't say so. He could also use the kernel automounter to
> create /media/whatever.

Fair point, but either way, it is not udev doing it and /etc/fstab is not
involved.


-- 
Neil Bothwick

In an atomic war, all men will be cremated equal.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-15 10:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 15:15 [gentoo-user] udev and fstab Martins Steinbergs
2005-12-14 15:08 ` Dirk Heinrichs
2005-12-14 20:37   ` Christoph Eckert
2005-12-14 20:57     ` Martins Steinbergs
2005-12-14 23:16       ` Christoph Eckert
2005-12-14 21:15     ` Richard Fish
2005-12-14 16:18 ` Neil Bothwick
2005-12-15  7:30   ` Dirk Heinrichs
2005-12-15  9:52     ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox