Re: [gentoo-user] udev and fstab

2005-12-15 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


[gentoo-user] udev and fstab

2005-12-14 Thread Martins Steinbergs
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   autouser,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


pgpdHC3iTvxlN.pgp
Description: PGP signature


Re: [gentoo-user] udev and fstab

2005-12-14 Thread Dirk Heinrichs
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: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgprXyfX3frCJ.pgp
Description: PGP signature


Re: [gentoo-user] udev and fstab

2005-12-14 Thread Neil Bothwick
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?


signature.asc
Description: PGP signature


Re: [gentoo-user] udev and fstab

2005-12-14 Thread Christoph Eckert

  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



Re: [gentoo-user] udev and fstab

2005-12-14 Thread Martins Steinbergs
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


pgp964BvfFEHK.pgp
Description: PGP signature


Re: [gentoo-user] udev and fstab

2005-12-14 Thread Richard Fish
On 12/14/05, Christoph Eckert [EMAIL PROTECTED] 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



Re: [gentoo-user] udev and fstab

2005-12-14 Thread Christoph Eckert

 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



Re: [gentoo-user] udev and fstab

2005-12-14 Thread Dirk Heinrichs
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: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp5kGjy5PG6D.pgp
Description: PGP signature