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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-23-2006, 09:09 PM
|
#1
|
Member
Registered: Apr 2006
Posts: 280
Rep:
|
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.
|
|
|
05-24-2006, 02:21 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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.
|
|
|
05-24-2006, 12:53 PM
|
#3
|
Member
Registered: Apr 2006
Posts: 280
Original Poster
Rep:
|
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.
|
|
|
05-24-2006, 01:05 PM
|
#4
|
Member
Registered: Apr 2006
Posts: 280
Original Poster
Rep:
|
...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.
|
|
|
05-24-2006, 06:37 PM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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?
|
|
|
05-24-2006, 08:13 PM
|
#6
|
Member
Registered: Apr 2006
Posts: 280
Original Poster
Rep:
|
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.
|
|
|
05-25-2006, 02:22 AM
|
#7
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|