FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-12-2008, 06:39 PM
Dale
 
Default DVD and changing permissions

Hi, again,

I just noticed a problem with my new DVD burner. I posted this on the
forums but no response as of yet. This is the info that may help:


[I--] [ ] app-cdr/cdrtools-2.01.01_alpha34
[-P-] [ ] app-cdr/k3b-0.12.17
[I--] [ ] sys-fs/udev-119
[I--] [ ] app-misc/hal-info-20070618 (0)
[I--] [ ] sys-apps/hal-0.5.9.1-r3 (0)
[I--] [ ] sys-fs/udev-119 (0)

Also tried:

[-P-] [M~] app-cdr/cdrtools-2.01.01_alpha42 (0)

That didn't help either. I also disabled ivman with no change. I use KDE
3.5.9 for my desktop.


I can see it as root but not as a user. Other things I have noticed.
When no *DVD* is inserted:


root@smoker / # ls -al /media/
total 1
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
drwxrwxr-x 2 root users 48 2008-07-04 14:21 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #

When I have a *DVD* inserted I get this:

root@smoker / # ls -al /media/
total 3
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
d--------- 2 root root 112 2008-07-12 03:08 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #

It changes the permissions whenever I insert the DVD. I'm not sure if it
is something that is on the DVD or if it is a mounting issue. Here is
my fstab line for the *DVD*:


/dev/hdd /media/hdd auto noauto,users 0 0

and when a *DVD* is inserted mount reports this:

/dev/hdd on /media/hdd type udf (rw,noexec,nosuid,nodev)

I have a CD burner on here too. I basically set them both up the same
way. The CD works just fine but the *DVD* does not.


Any ideas?

Dale

:-) :-)


--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-12-2008, 07:47 PM
Neil Bothwick
 
Default DVD and changing permissions

On Sat, 12 Jul 2008 13:39:03 -0500, Dale wrote:

> It changes the permissions whenever I insert the DVD. I'm not sure if
> it is something that is on the DVD or if it is a mounting issue. Here
> is my fstab line for the *DVD*:
>
> /dev/hdd /media/hdd auto noauto,users 0 0

Unless you have a very good reason to leave this in place, remove it. HAL
based automounters do not need fstab, but it will override their defaults
if present. A desktop automounter will usually mount the device as the
user running it, that's certainly the case with KDE and should be with
ivman.

The changing permissions on the mount point is because they are now the
permissions of something else. When nothing is mounted there, the
permissions are those of the mount point on the parent filesystem, when
you mount something, they are the permissions of the root of the mounted
device.

Do other devices, such as USB sticks, mount correctly?


--
Neil Bothwick

"Give me Liberty, fries, and two cokes to go!" "*CUT!*"
 
Old 07-12-2008, 10:10 PM
Dale
 
Default DVD and changing permissions

Neil Bothwick wrote:

On Sat, 12 Jul 2008 13:39:03 -0500, Dale wrote:



It changes the permissions whenever I insert the DVD. I'm not sure if
it is something that is on the DVD or if it is a mounting issue. Here
is my fstab line for the *DVD*:

/dev/hdd /media/hdd auto noauto,users 0 0



Unless you have a very good reason to leave this in place, remove it. HAL
based automounters do not need fstab, but it will override their defaults
if present. A desktop automounter will usually mount the device as the
user running it, that's certainly the case with KDE and should be with
ivman.

The changing permissions on the mount point is because they are now the
permissions of something else. When nothing is mounted there, the
permissions are those of the mount point on the parent filesystem, when
you mount something, they are the permissions of the root of the mounted
device.

Do other devices, such as USB sticks, mount correctly?





Hi,

I commented out the lines in fstab for both DVD and CD drives. The only
change is that I get this:


root@smoker / # ls -al /media/
total 5
drwxr-xr-x 5 root root 224 2008-07-12 04:03 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
dr-xr-xr-x 1 root root 2048 2003-11-13 17:10 hdc
d--------- 2 ivman plugdev 112 2008-07-12 03:08 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #

So I disabled ivman and tried again, no change. I still can not access
the DVD as a user. The CD seems to work the same way as it always has.
The permissions have changed to root/root tho.


Any other ideas?

Dale


--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-13-2008, 12:10 AM
Dale
 
Default DVD and changing permissions

Dale wrote:

Neil Bothwick wrote:

On Sat, 12 Jul 2008 13:39:03 -0500, Dale wrote:



It changes the permissions whenever I insert the DVD. I'm not sure if
it is something that is on the DVD or if it is a mounting issue. Here
is my fstab line for the *DVD*:

/dev/hdd /media/hdd auto noauto,users 0 0



Unless you have a very good reason to leave this in place, remove it.
HAL
based automounters do not need fstab, but it will override their
defaults

if present. A desktop automounter will usually mount the device as the
user running it, that's certainly the case with KDE and should be with
ivman.

The changing permissions on the mount point is because they are now the
permissions of something else. When nothing is mounted there, the
permissions are those of the mount point on the parent filesystem, when
you mount something, they are the permissions of the root of the mounted
device.

Do other devices, such as USB sticks, mount correctly?





Hi,

I commented out the lines in fstab for both DVD and CD drives. The
only change is that I get this:


root@smoker / # ls -al /media/
total 5
drwxr-xr-x 5 root root 224 2008-07-12 04:03 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
dr-xr-xr-x 1 root root 2048 2003-11-13 17:10 hdc
d--------- 2 ivman plugdev 112 2008-07-12 03:08 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #
So I disabled ivman and tried again, no change. I still can not
access the DVD as a user. The CD seems to work the same way as it
always has. The permissions have changed to root/root tho.

Any other ideas?

Dale




Hi,

I re-emerged udev and noticed this little foot note:

mount options for directory /dev are no longer
set in /etc/udev/udev.conf, but in /etc/fstab
as for other directories.

I don't have anything in fstab for /udev. This is what mount reports:

root@smoker / # mount
/dev/hda6 on / type reiserfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
/dev/hda1 on /boot type ext2 (rw)
/dev/hda7 on /usr/portage type reiserfs (rw)
/dev/hda8 on /home type reiserfs (rw)
/dev/hda9 on /data type reiserfs (rw)
/dev/hdb1 on /backup type ext3 (rw)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
/dev/hdd on /media/hdd type udf
(rw,noexec,nosuid,nodev,uid=104,gid=451,umask=007)

/dev/hdc on /media/hdc type iso9660 (ro,noexec,nosuid,nodev)
root@smoker / #

udev is there but is this "normal"? How does a person restart udev
anyway? Do I have to reboot? I also deleted all the files in /etc/udev
before re-emerging udev, just in case. I'm about out of ideas here.


Dale

:-) :-)
--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-13-2008, 10:40 AM
Neil Bothwick
 
Default DVD and changing permissions

On Sat, 12 Jul 2008 17:10:15 -0500, Dale wrote:

> d--------- 2 ivman plugdev 112 2008-07-12 03:08 hdd

This is weird, the ownership is correct (you need to belong to the
plugdev group to use automounted devices) but the permissions certainly
are not. Do you have any rules for this in /etc/udev/rules.d?


--
Neil Bothwick

Just when my ship comes in, it's the Kobyashi Maru.
 
Old 07-13-2008, 10:41 AM
Neil Bothwick
 
Default DVD and changing permissions

On Sat, 12 Jul 2008 19:10:12 -0500, Dale wrote:

> I re-emerged udev and noticed this little foot note:
>
> mount options for directory /dev are no longer
> set in /etc/udev/udev.conf, but in /etc/fstab
> as for other directories.
>
> I don't have anything in fstab for /udev. This is what mount reports:

Neither do I, even on a brand new, up to date install.

> root@smoker / # mount
> udev on /dev type tmpfs (rw,nosuid)

/dev is mounted, which is what matters. If /dev were not mounting you'd
have far more serious problems that reading DVDs.


--
Neil Bothwick

New Klingon hair salon: "Today is a good day to dye"
 
Old 07-13-2008, 10:53 AM
Dale
 
Default DVD and changing permissions

Neil Bothwick wrote:

On Sat, 12 Jul 2008 17:10:15 -0500, Dale wrote:



d--------- 2 ivman plugdev 112 2008-07-12 03:08 hdd



This is weird, the ownership is correct (you need to belong to the
plugdev group to use automounted devices) but the permissions certainly
are not. Do you have any rules for this in /etc/udev/rules.d?





This is what I found that even mentions DVD in the file: I'm only
including the lines that contain DVD.


From /etc/udev/rules.d/65-permissions.rules

KERNEL=="pktcdvd|pktcdvd[0-9]*", GROUP="cdrom", MODE="660"

From /etc/udev/rules.d/70-persistent-cd.rules:

# Optiarc_DVD_RW_AD-7200A (pci-0000:00:09.0-ide-1:1)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:09.0-ide-1:1",
SYMLINK+="dvd1", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:09.0-ide-1:1",
SYMLINK+="dvdrw1", ENV{GENERATED}="1"


From /etc/udev/rules.d/50-udev-default.rules:

KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
KERNEL=="pktcdvd", NAME="pktcdvd/control"

Those are the only ones I can find. I used the find part of Konqeror to
do the search. Anything odd that you see? It looks like it should go
to the group cdrom and have permissions set to 660 to me.


Ideas?

Dale

:-) :-)


--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-14-2008, 09:04 PM
Dale
 
Default DVD and changing permissions

Dale wrote:

Hi, again,

I just noticed a problem with my new DVD burner. I posted this on the
forums but no response as of yet. This is the info that may help:


[I--] [ ] app-cdr/cdrtools-2.01.01_alpha34
[-P-] [ ] app-cdr/k3b-0.12.17
[I--] [ ] sys-fs/udev-119
[I--] [ ] app-misc/hal-info-20070618 (0)
[I--] [ ] sys-apps/hal-0.5.9.1-r3 (0)
[I--] [ ] sys-fs/udev-119 (0)

Also tried:

[-P-] [M~] app-cdr/cdrtools-2.01.01_alpha42 (0)

That didn't help either. I also disabled ivman with no change. I use
KDE 3.5.9 for my desktop.


I can see it as root but not as a user. Other things I have noticed.
When no *DVD* is inserted:


root@smoker / # ls -al /media/
total 1
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
drwxrwxr-x 2 root users 48 2008-07-04 14:21 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #

When I have a *DVD* inserted I get this:

root@smoker / # ls -al /media/
total 3
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
d--------- 2 root root 112 2008-07-12 03:08 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / #

It changes the permissions whenever I insert the DVD. I'm not sure if
it is something that is on the DVD or if it is a mounting issue. Here
is my fstab line for the *DVD*:


/dev/hdd /media/hdd auto noauto,users 0 0

and when a *DVD* is inserted mount reports this:

/dev/hdd on /media/hdd type udf (rw,noexec,nosuid,nodev)

I have a CD burner on here too. I basically set them both up the same
way. The CD works just fine but the *DVD* does not.


Any ideas?

Dale

:-) :-)


OK folks, still looking for a fix here. Any ideas at all?

Thanks

Dale

:-) :-)
--

gentoo-user@lists.gentoo.org mailing list
 
Old 07-14-2008, 09:15 PM
Daniel Pielmeier
 
Default DVD and changing permissions

Dale schrieb:


OK folks, still looking for a fix here. Any ideas at all?



There is a bug [1] open about this problem, unfortunately still
unsolved! Maybe the k3b command line will help to investigate on this
further.


[1] http://bugs.gentoo.org/show_bug.cgi?id=213399
--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-14-2008, 09:42 PM
Dale
 
Default DVD and changing permissions

Daniel Pielmeier wrote:

Dale schrieb:


OK folks, still looking for a fix here. Any ideas at all?



There is a bug [1] open about this problem, unfortunately still
unsolved! Maybe the k3b command line will help to investigate on this
further.


[1] http://bugs.gentoo.org/show_bug.cgi?id=213399


If you saw the post on the thread referenced on the bug, the last post
was mine. I'm dalek on the forums. At least now I know it is not still
just me.


I wonder if cdrkit has this issue? Think it would be worth a shot?

Dale

:-) :-)
--

gentoo-user@lists.gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 07:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org