LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-23-2006, 09:09 PM   #1
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Automounting CD/DVD combo drive


I'm using Kubuntu 5.10 and having issues with a CD/DVD combo drive. After a few hours of googling for a solution, here I am. I can insert a CD and it will mount no problem to /media/cdrom0. If I insert a DVD, Konqueror tries to open /media/cdrom0, but says an error occurred while loading media:/hda, the file or folder does not exist. I can view the files on the DVD by mounting manually (# mount /dev/hda /mnt/dvd). I must manually mount and unmount in order to use a DVD, but not a CD. Is there a way to have both discs automatically mount to the same directory? (preferably /mnt/dvd)

Thanks for any help.

The drive is a Samsung TS-H55U CD/DVD writer.
 
Old 05-24-2006, 02:21 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
a dvd should automount to /media/cdrom0 as well.
I take it this CD/DVD drive is in the primary master ide slot? (/dev/hda)

Is this for any dvd or only particular ones?

I think we need to look at /etc/fstab and dmesg | tail (right after dvd media inserted and error message obtained), the exact error message would be nice too.

Thing is, udev should be just getting the command "mount /dev/hda /media/cdrom0" executed when media is inserted. The error seems to be reasonable, /hda certainly dosn't exist.

So the puzzle is: why does udev try to execute "mount /hda (etc)" when a dvd is inserted but get it right when a CD is inserted? Could there be a typo in a config file?

Last edited by Simon Bridge; 05-24-2006 at 02:29 AM.
 
Old 05-24-2006, 12:53 PM   #3
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Simon Bridge
a dvd should automount to /media/cdrom0 as well.
I take it this CD/DVD drive is in the primary master ide slot? (/dev/hda)
Right.

Quote:
Originally Posted by Simon Bridge
Is this for any dvd or only particular ones?
No this is for any dvd I have tried, both original and ones I have burned myself.

Here is dmesg | tail:
Code:
$ dmesg | tail
[4352270.356000] DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0b:23:ea:ab:1e:08:00 SRC=192.168.2.1 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=29084 PROTO=2
[4352274.364000] DROPPED IN=eth0 OUT= MAC=01:00:5e:7f:ff:fa:00:13:d4:2f:c3:22:08:00 SRC=192.168.2.13 DST=239.255.255.250 LEN=129 TOS=0x00 PREC=0x00 TTL=4 ID=29622 PROTO=UDP SPT=8008 DPT=1900 LEN=109
[4352275.019000] DROPPED IN=eth0 OUT= MAC=01:00:5e:7f:43:fa:00:13:d4:2f:c3:22:08:00 SRC=192.168.2.13 DST=239.255.67.250 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=29659 OPT (94040000) PROTO=2
[4352275.019000] DROPPED IN=eth0 OUT= MAC=01:00:5e:7f:ff:fa:00:13:d4:2f:c3:22:08:00 SRC=192.168.2.13 DST=239.255.255.250 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=29660 OPT (94040000) PROTO=2
[4352280.302000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=218.186.17.173 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=82 ID=6287 PROTO=TCP SPT=22884 DPT=4072 SEQ=3993806555 ACK=0 WINDOW=0 RES=0x00 RST URGP=0
[4352280.326000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=218.186.17.173 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=82 ID=6291 PROTO=TCP SPT=22884 DPT=4072 SEQ=3993806555 ACK=0 WINDOW=0 RES=0x00 RST URGP=0
[4352280.369000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=218.186.17.173 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=82 ID=6311 PROTO=TCP SPT=22884 DPT=4072 SEQ=3993806555 ACK=0 WINDOW=0 RES=0x00 RST URGP=0
[4352307.999000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=72.14.205.19 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=53022 PROTO=TCP SPT=443 DPT=2972 SEQ=3530967564 ACK=838881901 WINDOW=9700 RES=0x00 RST URGP=0
[4352308.000000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=72.14.205.19 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=6431 PROTO=TCP SPT=443 DPT=2972 SEQ=3530967564 ACK=838881902 WINDOW=8201 RES=0x00 RST URGP=0
[4352308.030000] ABORTED IN=eth0 OUT= MAC=00:13:20:e4:28:b1:00:0b:23:ea:ab:1e:08:00 SRC=72.14.205.19 DST=192.168.2.10 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=16165 PROTO=TCP SPT=443 DPT=2972 SEQ=3530967564 ACK=838881902 WINDOW=8201 RES=0x00 RST URGP=0
And fstab:
Code:
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
/dev/sda2 / ext3 defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid,nouser 0 1
/dev/sda5 none swap sw 0 0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0 /media/floppy0 auto ,atime,noauto,rw,dev,exec,suid,user 0 0
/dev/sda1 /mnt/local1 vfat defaults,uid=1000,gid=100,auto,rw,nouser,quiet 1 0
/dev/sdb1 /mnt/aux vfat defaults,loop,uid=1000,gid=100,auto,rw,nouser,quiet 0 0
/dev/hda /mnt/dvd auto ,atime,noauto,ro,nodev,noexec,nosuid,users 0 0
Thanks again, much appreciated.
 
Old 05-24-2006, 01:05 PM   #4
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
...looking at the fstab I just posted, I notice that there are two entries for /dev/hda. I have tried commenting out one at a time and trying again, but get the same error. Konqueror opens up and tries fo find media:/hda, with the message
Code:
An error occurred while loading media:/hda:
The file or folder media:/hda does not exist.
 
Old 05-24-2006, 06:37 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Well, that last /dev/hda line should be erased. (Keep the /media/cdrom0 line - it is the correct one.) Then reboot. (fstab is read at boot.)

I'm guessing you only got this error after you edited /etc/fstab to include that last line?
 
Old 05-24-2006, 08:13 PM   #6
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
No, I've always been getting this error. That last line was added by the KDE disk configuration utility when I tried to configure it that way.
 
Old 05-25-2006, 02:22 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK - the most common cause of this is a typo in /etc/fstab ... however, considering this was happening from scratch, it seems more like a hal/udev type thing.

Looking around, I've found your exact issue in a different context:
http://www.ubuntuforums.org/archive/...p/t-86929.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting DVD to a CDR/DVD combo drive f34r7h1s Slackware 38 05-16-2005 08:50 PM
Play DVD on CDRW/DVD Combo Drive?? halo14 Linux - Laptop and Netbook 13 09-21-2004 10:21 AM
New CDRW/DVD combo drive not working! Derrick Linux - Newbie 6 09-20-2003 10:07 AM
DVD/CDRW combo drive toySOILDer Linux - Hardware 0 08-12-2003 11:23 PM
cd-rw/dvd combo drive in linux? eccarlsen Linux - Hardware 3 10-04-2002 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration