auto-mount dvd/cd
#46
Oh really? its half way there.

I have a asrock ion 330 HT and am using minimal Ubuntu install 12.04 (because I prefer LTS) with the install script on my signature and all the tweaks on my signature remote works fanstastic as well as everything else including dvdmount and usb automount, smooth playback and everything else. I am using the upstart xinit script to sutostart xbmc (the xbmc install script does it).

Anyway the result I was looking for is

Code:
ls /dev

For some reason I typed "cat" when I mean "ls"

IIRC the fstab worked ok in older Ubuntu e.g. 10.04 I dont remember exactly what it was the line but I reckon it had udf as well

something like

Code:
/dev/sr0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8  0       0

then make the media directory so fstab can mount the point

mkdir /media/cdrom0

I never used the persistent rules so I wouldn't know, but that problem of having to eject and in order to get the dam thing to show does sound familiar when I used earlier Ubuntu. Agin I dont have any such problems atm and had fixed it both in xbmc and Ubuntu 10.04 back when I used it.

Let me know.

uNi
Reply
#47
Hi,

thanks. Here's ls /dev/

Code:
ls /dev/
ttyS11
ttyS12
ttyS13
ttyS14
ttyS15
ttyS16
ttyS17
ttyS18
ttyS19
ttyS2
ttyS20
ttyS21
ttyS22
ttyS23
ttyS24
ttyS25
ttyS26
ttyS27
ttyS28
ttyS29
ttyS3
ttyS30
ttyS31
ttyS4
ttyS5
ttyS6
ttyS7
ttyS8
ttyS9
uinput
urandom
usbmon0
usbmon1
usbmon2
vcs
vcs1
vcs2
vcs3
vcs4
vcs5
vcs6
vcsa
vcsa1
vcsa2
vcsa3
vcsa4
vcsa5
vcsa6
vga_arbiter
zero

I'll look into fstab again soon.
Reply
#48
Ah never mind I see it now

here is mine http://paste.ubuntu.com/1342497/

you can compare it maybe it helps

uNi

Reply
#49
Turns out I had the same problem as tocinillo described - Play Disc now appears when I insert a disc but if I try to access a data dvd it did not mount correctly. The result is that you get thrown in the root directory when you click on the folder corresponding to a dvd. This is on xbmc running standalone under Ubuntu 12.04, so without first starting a desktop environment.

Here's how I got it to work:
(1) I still have the file /etc/udev/rules.d/82-cdrom.rules as per my earlier post

(2) I installed the udisks-glue package

(3) I modified /etc/udisks-glue.conf so that the file looks like so:
Code:
default {
    automount = true
    automount_options = sync
    post_unmount_command = "eject %device_file"
}

Now udisks-glue needs to run as the user that runs XBMC (mine is user xbmc). With these settings it will then try to automount anything you plug in to it. To make it run automatically when xbmc is started standalone, I did the following:

(3) I created a file /usr/local/bin/startxbmc looking like this:
Code:
#!/bin/bash
udisks-glue
xbmc-standalone
Then I made this file executable with chmod ugo+x /usr/local/bin/startxbmc

(4) Finally, i modified the file /usr/share/xsessions/XBMC.desktop to call startxbmc instead of xbmc-standalone:
Code:
[Desktop Entry]
Name=XBMC
Comment=This session will start XBMC Media Center
Exec=startxbmc
TryExec=startxbmc
Type=Application

It now works! An inserted dvd can be played through Play Disc or accessed through the file system. As an added bonus, the disc is actually ejected when I click the Eject option. I do now get a silly notification 'mounted removable hard drive' whenever I insert a dvd, but you can't win them all.




Reply
#50
(2012-11-08, 23:01)jochietoch Wrote: Turns out I had the same problem as tocinillo described - Play Disc now appears when I insert a disc but if I try to access a data dvd it did not mount correctly. The result is that you get thrown in the root directory when you click on the folder corresponding to a dvd. This is on xbmc running standalone under Ubuntu 12.04, so without first starting a desktop environment.

Here's how I got it to work:
(1) I still have the file /etc/udev/rules.d/82-cdrom.rules as per my earlier post

(2) I installed the udisks-glue package

(3) I modified /etc/udisks-glue.conf so that the file looks like so:
Code:
default {
    automount = true
    automount_options = sync
    post_unmount_command = "eject %device_file"
}

Now udisks-glue needs to run as the user that runs XBMC (mine is user xbmc). With these settings it will then try to automount anything you plug in to it. To make it run automatically when xbmc is started standalone, I did the following:

(3) I created a file /usr/local/bin/startxbmc looking like this:
Code:
#!/bin/bash
udisks-glue
xbmc-standalone
Then I made this file executable with chmod ugo+x /usr/local/bin/startxbmc

(4) Finally, i modified the file /usr/share/xsessions/XBMC.desktop to call startxbmc instead of xbmc-standalone:
Code:
[Desktop Entry]
Name=XBMC
Comment=This session will start XBMC Media Center
Exec=startxbmc
TryExec=startxbmc
Type=Application

It now works! An inserted dvd can be played through Play Disc or accessed through the file system. As an added bonus, the disc is actually ejected when I click the Eject option. I do now get a silly notification 'mounted removable hard drive' whenever I insert a dvd, but you can't win them all.

YES YES YES! Finally is working!!!!!!!! very very thanks!!!! After 4 months ago finally the problem is fixed!

You are my hero, thanks again Smile

Regards!
Reply
#51
Hi,

thanks uNi for your help. Updated /etc/fstab with line

Code:
/dev/sr0        /media/dvd   udf,iso9660 ro,user,noauto  0       0


and now mount works also (at least on startup).

Code:
/media/dvd$ ll
total 8
dr-xr-xr-x 4 4294967295 4294967295 136 2006-08-08 23:12 ./
dr-xr-xr-x 4 4294967295 4294967295 136 2006-08-08 23:12 ../
dr-xr-xr-x 2 4294967295 4294967295  40 2006-08-08 23:12 AUDIO_TS/
dr-xr-xr-x 2 4294967295 4294967295 612 2006-08-09 02:05 VIDEO_TS/


I still need to open and close the bay some 3 times to get the DVD recognized, but at least it works somehow. That might be the dive as well, dunno...

Reply
#52
@ mundus

This is a workaround until your ready to start again with new Linux and xbmc version, idk if its the drive but I dont think it is.

works kinda is better than nothing Big Grin

uNi

Reply
#53
(2012-11-09, 14:02)tocinillo Wrote: thanks again Smile

You're welcome Smile

One more thing: I noticed ejecting cds through the menu didn't work (for dvds it did, because udisks-glue ejects them automatically when they're unmounted). The solution is here in a post by Krautmaster http://forum.xbmc.org/showthread.php?tid=123574

I copied the file /lib/udev/rules.d/60-cdrom_id.rules to /etc/udev/rules.d/60-cdrom_id.rules and changed one line to the latter:
Code:
#IMPORT{program}="cdrom_id --lock-media $tempnode"
IMPORT{program}="cdrom_id $tempnode"
(You can also edit the /lib/udev/rules.d/60-cdrom_id.rules file in place as per the original post, but you then run the risk that it's overwritten on Ubuntu updates.) The Eject menu item now ejects cds and dvds correctly.
Reply
#54
(2012-10-20, 14:45)jochietoch Wrote: I managed to make the Play Disc button appear and work thanks to AVee and brownie's posts and this post by tesjo on the Arch Linux forum: https://bbs.archlinux.org/viewtopic.php?pid=941120
This is on XBMC running under Ubuntu 12.04. The problem seems to be that the /dev/cdrom symlink disappears after the first time you insert a disc. I think it's an issue with udev or Ubuntu rather than with XBMC.

To recap, I made two modifications:

(1) I commented out the line
Code:
+auto.master
at the end of the file /etc/auto.master so that now it reads
Code:
# +auto.master
Edit: this seems not necessary for me - it works with (2) only.


(2) I created a new file /etc/udev/rules.d/82-cdrom.rules as follows:
Code:
# Custom CD-ROM symlinks
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom cdrw dvd dvdrw"

The Play Disc button now appears automatically when I insert a CD or DVD.

GRACIAS !! thanks !! Nod

[Rpi3b+ (Archlinux+kodi) & Xbox One S + Kodi]
Reply
#55
I have (AVC) movies as avc movie contains 2 folder (BDMV)&(CERTIFICATE)

and I wont to open the menu of those AVC movie

is there any solutions
Reply
#56
Update, got this fixed. Removed the fstab and tried with various disks. Also removed libxine1-ffmpeg and totem packages.


I decided to upgrade to latest XBMC and at the same time to move away from Xbmcbuntu to Ubuntu 12.04. I tried to use Ubuntu Mini first, but the boot failed, to switched to Ubuntu Desktop. I wanted to try libbluray, so I compiled XBMC from source.

It turned out that I faced the same DVD issues with 12.04 as with Xbmcbuntu as well. I tried the same tricks described in this thread, but with no results. I'm unable to mount the drive and I'm running out of ideas here. Still running Asrock ION 330 and using DVDs that I was able to play with XBMC Live with the fixes... Any ideas? Below are the details of the configurations. Thanks.

dmesg  | grep CD
Code:
[    1.600525] scsi 2:0:0:0: CD-ROM            Slimtype BD  E  DS4E1S    EAB1 PQ: 0 ANSI: 5
[    1.605018] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.605356] sr 2:0:0:0: Attached scsi CD-ROM sr0

dmesg  | grep dvd
Code:
[    1.605011] sr0: scsi3-mmc drive: 24x/1x writer dvd-ram cd/rw xa/form2 cdda pop-up

cat /etc/fstab
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=cf65f98d-7973-4c02-9f42-28f33055b7c4 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=b9ffa32d-a5ed-4745-883a-8b586eb9753e none            swap    sw              0       0
/dev/sr0        /media/dvd   udf,iso9660 ro,user,noauto  0       0
#/dev/sr0 /media/dvd udf, iso9660 user, noauto 0 0

cat /etc/udev/rules.d/82-cdrom.rules
Code:
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom cdrw dvd dvdrw"

cat /etc/udev/rules.d/70-persistent-cd.rules
Code:
# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-generator.rules
# file; however you are also free to add your own entries provided you
# add the ENV{GENERATED}=1 flag to your own rules as well.
# Slimtype_BD_E_DS4E1S (pci-0000:00:0b.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-3:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-3:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-3:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-3:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

# Slimtype_BD_E_DS4E1S (pci-0000:00:0b.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-0:0:0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-0:0:0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-0:0:0:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-0:0:0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"

sudo lshw -C disk
Code:
[sudo]
 *-disk                  
      description: ATA Disk
      product: ST9320325AS
      vendor: Seagate
      physical id: 0.0.0
      bus info: scsi@1:0.0.0
      logical name: /dev/sda
      version: 0002
      serial: 6VD19ZC2
      size: 298GiB (320GB)
      capabilities: partitioned partitioned:dos
      configuration: ansiversion=5 signature=0002f630
 *-cdrom
      description: DVD-RAM writer
      product: BD  E  DS4E1S
      vendor: Slimtype
      physical id: 0.0.0
      bus info: scsi@2:0.0.0
      logical name: /dev/cdrom
      logical name: /dev/cdrom1
      logical name: /dev/cdrw
      logical name: /dev/cdrw1
      logical name: /dev/dvd
      logical name: /dev/dvd1
      logical name: /dev/dvdrw
      logical name: /dev/dvdrw1
      logical name: /dev/sr0
      version: EAB1
      capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
      configuration: ansiversion=5 status=nodisc
 *-disk
      description: SCSI Disk
      product: Elements 1023
      vendor: WD
      physical id: 0.0.0
      bus info: scsi@0:0.0.0
      logical name: /dev/sdb
      version: 2005
      serial: WX41A51Y5969
      size: 931GiB (1TB)
      capabilities: partitioned partitioned:dos
      configuration: ansiversion=4 signature=00021631

ls -l /dev/sr0
Code:
brw-rw----+ 1 root cdrom 11, 0 heinä  2 22:13 /dev/sr0

ls -l /media/
Code:
yhteensä 8
drwxrwxrwx 2 root root 4096 heinä  2 17:46 dvd
drwx------ 1 xbmc xbmc 4096 marra  8  2012 Elements

ls -lart /dev/
Code:
yhteensä 4
drwxr-xr-x  23 root root        4096 heinä  1 01:20 ..
drwxr-xr-x   2 root root           0 heinä  2 22:11 pts
drwxr-xr-x   2 root root          60 heinä  2 22:11 net
drwxr-xr-x   3 root root          60 heinä  2 22:11 bus
drwxr-xr-x   2 root root          60 heinä  2 22:11 mapper
lrwxrwxrwx   1 root root          14 heinä  2 22:11 .initramfs -> /run/initramfs
drwxr-xr-x   2 root root         100 heinä  2 22:11 bsg
drwxr-xr-x   6 root root         120 heinä  2 22:11 disk
drwxr-xr-x   2 root root         660 heinä  2 22:11 block
drwxr-xr-x   3 root root          60 heinä  2 22:11 .udev
lrwxrwxrwx   1 root root           8 heinä  2 22:11 shm -> /run/shm
lrwxrwxrwx   1 root root          15 heinä  2 22:11 stdout -> /proc/self/fd/1
lrwxrwxrwx   1 root root          15 heinä  2 22:11 stdin -> /proc/self/fd/0
lrwxrwxrwx   1 root root          15 heinä  2 22:11 stderr -> /proc/self/fd/2
lrwxrwxrwx   1 root root          13 heinä  2 22:11 fd -> /proc/self/fd
lrwxrwxrwx   1 root root          11 heinä  2 22:11 core -> /proc/kcore
crw------T   1 root root     10, 238 heinä  2 22:11 vhost-net
drwxr-xr-x   2 root root          60 heinä  2 22:11 cpu
crw------T   1 root root     10, 234 heinä  2 22:11 btrfs-control
crw------T   1 root root     10, 235 heinä  2 22:11 autofs
crw-------   1 root root    251,   1 heinä  2 22:11 hidraw1
crw-------   1 root root    251,   0 heinä  2 22:11 hidraw0
crw-rw----   1 root dialout   4,  74 heinä  2 22:11 ttyS10
crw-rw----   1 root dialout   4,  65 heinä  2 22:11 ttyS1
crw-rw----   1 root dialout   4,  64 heinä  2 22:11 ttyS0
crw-rw----   1 root dialout   4,  75 heinä  2 22:11 ttyS11
crw-rw----   1 root dialout   4,  76 heinä  2 22:11 ttyS12
crw-rw----   1 root dialout   4,  77 heinä  2 22:11 ttyS13
crw-rw----   1 root disk     21,   2 heinä  2 22:11 sg2
crw-rw----   1 root disk     21,   0 heinä  2 22:11 sg0
crw-rw----+  1 root cdrom    21,   1 heinä  2 22:11 sg1
crw-rw----   1 root dialout   4,  78 heinä  2 22:11 ttyS14
crw-rw----   1 root dialout   4,  79 heinä  2 22:11 ttyS15
crw-rw----   1 root dialout   4,  80 heinä  2 22:11 ttyS16
crw-rw----   1 root dialout   4,  84 heinä  2 22:11 ttyS20
crw-rw----   1 root dialout   4,  66 heinä  2 22:11 ttyS2
crw-rw----   1 root dialout   4,  83 heinä  2 22:11 ttyS19
crw-rw----   1 root dialout   4,  82 heinä  2 22:11 ttyS18
crw-rw----   1 root dialout   4,  81 heinä  2 22:11 ttyS17
crw-rw----   1 root dialout   4,  86 heinä  2 22:11 ttyS22
crw-rw----   1 root dialout   4,  85 heinä  2 22:11 ttyS21
crw-rw----   1 root dialout   4,  90 heinä  2 22:11 ttyS26
crw-rw----   1 root dialout   4,  88 heinä  2 22:11 ttyS24
crw-rw----   1 root dialout   4,  87 heinä  2 22:11 ttyS23
crw-rw----   1 root dialout   4,  92 heinä  2 22:11 ttyS28
crw-rw----   1 root dialout   4,  89 heinä  2 22:11 ttyS25
crw-rw----   1 root dialout   4,  67 heinä  2 22:11 ttyS3
crw-rw----   1 root dialout   4,  91 heinä  2 22:11 ttyS27
crw-rw----   1 root dialout   4,  94 heinä  2 22:11 ttyS30
crw-rw----   1 root dialout   4,  93 heinä  2 22:11 ttyS29
crw-rw----   1 root dialout   4,  70 heinä  2 22:11 ttyS6
crw-rw----   1 root dialout   4,  69 heinä  2 22:11 ttyS5
crw-rw----   1 root dialout   4,  95 heinä  2 22:11 ttyS31
crw-rw----   1 root dialout   4,  72 heinä  2 22:11 ttyS8
crw-rw----   1 root dialout   4,  71 heinä  2 22:11 ttyS7
crw-rw----   1 root dialout   4,  73 heinä  2 22:11 ttyS9
crw-rw----   1 root dialout   4,  68 heinä  2 22:11 ttyS4
crw-------   1 root root    254,   0 heinä  2 22:11 rtc0
lrwxrwxrwx   1 root root           4 heinä  2 22:11 rtc -> rtc0
brw-rw----   1 root disk      1,  10 heinä  2 22:11 ram10
brw-rw----   1 root disk      1,  15 heinä  2 22:11 ram15
crw-r--r--   1 root root      1,  11 heinä  2 22:11 kmsg
crw-rw-rw-   1 root root      1,   7 heinä  2 22:11 full
brw-rw----   1 root disk      1,  11 heinä  2 22:11 ram11
crw-rw-rw-   1 root root      1,   3 heinä  2 22:11 null
crw-r-----   1 root kmem      1,   1 heinä  2 22:11 mem
crw-------   1 root root      1,  12 heinä  2 22:11 oldmem
brw-rw----   1 root disk      1,  14 heinä  2 22:11 ram14
crw-rw-rw-   1 root root      1,   8 heinä  2 22:11 random
brw-rw----   1 root disk      1,   0 heinä  2 22:11 ram0
crw-r-----   1 root kmem      1,   4 heinä  2 22:11 port
brw-rw----   1 root disk      1,   5 heinä  2 22:11 ram5
brw-rw----   1 root disk      1,   6 heinä  2 22:11 ram6
crw-rw-rw-   1 root root      1,   5 heinä  2 22:11 zero
crw-rw-rw-   1 root root      1,   9 heinä  2 22:11 urandom
brw-rw----   1 root disk      1,   2 heinä  2 22:11 ram2
brw-rw----   1 root disk      1,   9 heinä  2 22:11 ram9
brw-rw----   1 root disk      1,   8 heinä  2 22:11 ram8
brw-rw----   1 root disk      1,   3 heinä  2 22:11 ram3
brw-rw----   1 root disk      1,  13 heinä  2 22:11 ram13
brw-rw----   1 root disk      1,  12 heinä  2 22:11 ram12
crw-------   1 root root     10,  58 heinä  2 22:11 alarm
crw-------   1 root root     10,  59 heinä  2 22:11 ashmem
brw-rw----   1 root disk      1,   4 heinä  2 22:11 ram4
srw-rw-rw-   1 root root           0 heinä  2 22:11 log
brw-rw----   1 root disk      1,   1 heinä  2 22:11 ram1
crw-------   1 root root     10,  60 heinä  2 22:11 binder
crw-------   1 root root     10,  57 heinä  2 22:11 cpu_dma_latency
brw-rw----   1 root disk      1,   7 heinä  2 22:11 ram7
brw-rw----   1 root disk      7,   2 heinä  2 22:11 loop2
crw-------   1 root root     10,  61 heinä  2 22:11 ecryptfs
crw-rw-rwT   1 root fuse     10, 229 heinä  2 22:11 fuse
brw-rw----   1 root disk      7,   0 heinä  2 22:11 loop0
crw-------   1 root root     10, 228 heinä  2 22:11 hpet
brw-rw----   1 root disk      7,   5 heinä  2 22:11 loop5
brw-rw----   1 root disk      7,   1 heinä  2 22:11 loop1
crw-------   1 root root     10, 237 heinä  2 22:11 loop-control
brw-rw----   1 root disk      7,   6 heinä  2 22:11 loop6
brw-rw----   1 root disk      7,   3 heinä  2 22:11 loop3
crw-------   1 root root     10,  56 heinä  2 22:11 network_latency
crw-------   1 root root     10, 227 heinä  2 22:11 mcelog
crw-------   1 root root     10,  55 heinä  2 22:11 network_throughput
crw-------   1 root root     10,   1 heinä  2 22:11 psaux
brw-rw----   1 root disk      7,   4 heinä  2 22:11 loop4
crw-------   1 root root     10, 231 heinä  2 22:11 snapshot
crw-rw-r--+  1 root root     10,  62 heinä  2 22:11 rfkill
crw-------   1 root root     10,  63 heinä  2 22:11 vga_arbiter
crw-r-----   1 root root     10, 223 heinä  2 22:11 uinput
crw-------   1 root root    108,   0 heinä  2 22:11 ppp
brw-rw----   1 root disk      7,   7 heinä  2 22:11 loop7
brw-rw----   1 root disk      8,  16 heinä  2 22:11 sdb
crw-------   1 root root      5,   1 heinä  2 22:11 console
crw--w----   1 root tty       4,   0 heinä  2 22:11 tty0
crw--w----   1 root tty       4,  10 heinä  2 22:11 tty10
crw-rw----   1 root tty       4,   1 heinä  2 22:11 tty1
crw--w----   1 root tty       4,  11 heinä  2 22:11 tty11
crw--w----   1 root tty       4,  13 heinä  2 22:11 tty13
crw--w----   1 root tty       4,  12 heinä  2 22:11 tty12
crw--w----   1 root tty       4,  14 heinä  2 22:11 tty14
crw--w----   1 root tty       4,  15 heinä  2 22:11 tty15
crw--w----   1 root tty       4,  17 heinä  2 22:11 tty17
crw--w----   1 root tty       4,  16 heinä  2 22:11 tty16
crw--w----   1 root tty       4,  19 heinä  2 22:11 tty19
crw--w----   1 root tty       4,  18 heinä  2 22:11 tty18
crw--w----   1 root tty       4,  20 heinä  2 22:11 tty20
crw-rw----   1 root tty       4,   2 heinä  2 22:11 tty2
crw--w----   1 root tty       4,  21 heinä  2 22:11 tty21
crw--w----   1 root tty       4,  22 heinä  2 22:11 tty22
crw--w----   1 root tty       4,  24 heinä  2 22:11 tty24
crw--w----   1 root tty       4,  23 heinä  2 22:11 tty23
crw--w----   1 root tty       4,  25 heinä  2 22:11 tty25
crw--w----   1 root tty       4,  26 heinä  2 22:11 tty26
crw--w----   1 root tty       4,  27 heinä  2 22:11 tty27
crw--w----   1 root tty       4,  29 heinä  2 22:11 tty29
crw--w----   1 root tty       4,  28 heinä  2 22:11 tty28
crw-rw----   1 root tty       4,   3 heinä  2 22:11 tty3
crw--w----   1 root tty       4,  30 heinä  2 22:11 tty30
crw--w----   1 root tty       4,  32 heinä  2 22:11 tty32
crw--w----   1 root tty       4,  31 heinä  2 22:11 tty31
crw--w----   1 root tty       4,  34 heinä  2 22:11 tty34
crw--w----   1 root tty       4,  33 heinä  2 22:11 tty33
crw--w----   1 root tty       4,  37 heinä  2 22:11 tty37
crw--w----   1 root tty       4,  36 heinä  2 22:11 tty36
crw--w----   1 root tty       4,  35 heinä  2 22:11 tty35
crw--w----   1 root tty       4,  38 heinä  2 22:11 tty38
crw--w----   1 root tty       4,  40 heinä  2 22:11 tty40
crw-rw----   1 root tty       4,   4 heinä  2 22:11 tty4
crw--w----   1 root tty       4,  39 heinä  2 22:11 tty39
crw--w----   1 root tty       4,  43 heinä  2 22:11 tty43
crw--w----   1 root tty       4,  42 heinä  2 22:11 tty42
crw--w----   1 root tty       4,  41 heinä  2 22:11 tty41
crw--w----   1 root tty       4,  45 heinä  2 22:11 tty45
crw--w----   1 root tty       4,  44 heinä  2 22:11 tty44
crw--w----   1 root tty       4,  47 heinä  2 22:11 tty47
crw--w----   1 root tty       4,  46 heinä  2 22:11 tty46
crw--w----   1 root tty       4,  49 heinä  2 22:11 tty49
crw--w----   1 root tty       4,  48 heinä  2 22:11 tty48
crw--w----   1 root tty       4,  50 heinä  2 22:11 tty50
crw-rw----   1 root tty       4,   5 heinä  2 22:11 tty5
brw-rw----   1 root disk      8,   0 heinä  2 22:11 sda
crw--w----   1 root tty       4,  51 heinä  2 22:11 tty51
crw--w----   1 root tty       4,  53 heinä  2 22:11 tty53
crw--w----   1 root tty       4,  52 heinä  2 22:11 tty52
crw--w----   1 root tty       4,  57 heinä  2 22:11 tty57
crw--w----   1 root tty       4,  56 heinä  2 22:11 tty56
crw--w----   1 root tty       4,  55 heinä  2 22:11 tty55
crw--w----   1 root tty       4,  54 heinä  2 22:11 tty54
crw-rw----   1 root tty       4,   6 heinä  2 22:11 tty6
crw--w----   1 root tty       4,  58 heinä  2 22:11 tty58
crw--w----   1 root tty       4,  59 heinä  2 22:11 tty59
crw--w----   1 root tty       4,  61 heinä  2 22:11 tty61
crw--w----   1 root tty       4,  60 heinä  2 22:11 tty60
crw--w----   1 root tty       4,  62 heinä  2 22:11 tty62
crw--w----   1 root tty       4,   7 heinä  2 22:11 tty7
crw--w----   1 root tty       4,  63 heinä  2 22:11 tty63
crw--w----   1 root tty       4,   9 heinä  2 22:11 tty9
crw--w----   1 root tty       4,   8 heinä  2 22:11 tty8
crw-------   1 root root      5,   3 heinä  2 22:11 ttyprintk
crw-rw----   1 root tty       7,   0 heinä  2 22:11 vcs
crw-rw----   1 root tty       7,   1 heinä  2 22:11 vcs1
crw-rw----   1 root tty       7, 129 heinä  2 22:11 vcsa1
crw-rw----   1 root tty       7, 128 heinä  2 22:11 vcsa
brw-rw----   1 root disk      8,   2 heinä  2 22:11 sda2
brw-rw----   1 root disk      8,   5 heinä  2 22:11 sda5
crw-------   1 root root    250,   0 heinä  2 22:11 lirc0
brw-rw----   1 root disk      8,  17 heinä  2 22:11 sdb1
crw-rw----   1 root tty       7,   2 heinä  2 22:11 vcs2
crw-rw----   1 root tty       7,   3 heinä  2 22:11 vcs3
crw-rw----   1 root tty       7, 130 heinä  2 22:11 vcsa2
crw-rw----   1 root tty       7, 132 heinä  2 22:11 vcsa4
crw-rw----   1 root tty       7, 131 heinä  2 22:11 vcsa3
crw-rw----   1 root tty       7,   4 heinä  2 22:11 vcs4
crw-rw----   1 root tty       7,   5 heinä  2 22:11 vcs5
crw-rw----   1 root tty       7, 133 heinä  2 22:11 vcsa5
crw-rw----   1 root tty       7, 134 heinä  2 22:11 vcsa6
crw-rw----   1 root tty       7,   6 heinä  2 22:11 vcs6
brw-rw----   1 root disk      8,   1 heinä  2 22:11 sda1
lrwxrwxrwx   1 root root          19 heinä  2 22:11 lircd -> /var/run/lirc/lircd
crw-rw-rw-   1 root root    195, 255 heinä  2 22:11 nvidiactl
crw-rw-rw-   1 root root    195,   0 heinä  2 22:11 nvidia0
drwxr-xr-x   4 root root         360 heinä  2 22:11 input
drwxr-xr-x   3 root root         260 heinä  2 22:11 snd
crw-rw----   1 root video    29,   0 heinä  2 22:11 fb0
drwxr-xr-x   2 root root        3680 heinä  2 22:11 char
brw-rw----+  1 root cdrom    11,   0 heinä  2 22:13 sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 cdrw1 -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 cdrw -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 cdrom1 -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 cdrom -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 dvdrw1 -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 dvdrw -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 dvd1 -> sr0
lrwxrwxrwx   1 root root           3 heinä  2 22:13 dvd -> sr0
crw-rw-rw-   1 root tty       5,   0 heinä  2 22:30 tty
drwxr-xr-x  14 root root        4320 heinä  2 22:30 .
crw-rw-rw-   1 root tty       5,   2 heinä  2 22:34 ptmx

id xbmc
Code:
uid=1001(xbmc) gid=1001(xbmc) ryhmät=1001(xbmc),24(cdrom),29(audio),44(video),46(plugdev),100(users),104(fuse)

sudo mount -t iso9660 -o ro /dev/sr0 /media/dvd
Code:
mount: no medium found on /dev/sr0
Reply

Logout Mark Read Team Forum Stats Members Help
auto-mount dvd/cd3