Linux - HardwareThis 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.
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.
While trying to play DVD movies and install Unreal Tournement 2004 DVD Edition( in fact, the only two DVD specific things I have tried to do with this drive), I have encountered problems. With DVD playback, Xine give me this error:
Code:
The Source Can't Be Read
Maybe you don't have enough rights for this, or
the source doesn't contain data(e.g., disk not in drive)
(Error reading NAV packet)
This occurs at random times during playback, without any real consistent patterns. DVD playback works fine under Windows using WinDVD, so I know we can make this work in Linux.
The other problem occurs when trying to install UT2k4, as mentined above. This is the only DVD I have been able to test this with, so it may be a unique problem to this disk, but again, it works in Windows. I can mount the DVD and I can browse its file system and see its contents. However, if I try to execute the installer, it doesn't work. If I try to copy the installer, it doesn't work. In fact, I can't seem to actually read any of the files on the disk. When I attempt to do so, I get an error message that always ends with "Input/Output error" as the reason why whatever avtion could not be completed. A dmesg | grep hdc yields something like this most of the time:
I have no idea what going on here, but I hope I can get it fixed. Like I said, all the operations can be completed in Windows, so I think this is just a matter of tweaking Linux. Some more possibly useful info:
fstab:
Distro: Slackware 9.1
Kernel: 2.6.7 vanilla
Drive Make: Hitachi
Drive Model: Unknown (how can I find this out without opening up my case and ripping out the drive?)
You can try upgrading the firmware for the DVD drive but this is risky if you do not know what you are doing. I do not know how kernel version 2.6.x sorts out its /proc directory, but in kernel version 2.4.x there is some drive parameters you can set. Have look at "/proc/ide/hdc". hdc may not be there because some distributions sets it as an symbolic link, so look at "/proc/ide/ide1/hdc" if its not there. Also gives us some information that hdparm (use the -I option) shows.
I do not know what is causing the error message below, but I think its the region code not set yet. If you set it in Windows, you do not have to set it.
Quote:
attempt to access beyond end of device
hdc: rw=0, want=6376952, limit=961428
Buffer I/O error on device hdc, logical block 1594237
Download region set tool and set the DVD drive to your desire region. Do a search.
I occasionally get the error below but it did not give me any problems.
With Xine, Mplayer, Ogle, and many others access the dvd drive at /dev/dvd. All you need to do is either set the program to access /dev/hdc or make a symbolic link. If you have devfsd loaded you have to find out the full path.
ln -s /dev/hdc /dev/dvd
DVD players are not very predictable, so you have to close the program and eject the media. Then retract the tray and open the program. You have to repeat these steps multiple times until it plays.
Info from proc ide:
Model: HITACHI DVD-ROM GD-7500
Media: cdrom (I had a data DVD in the drive at this time?)
Compacity: 7650048
Driver: ide-cdrom version 4.61
Settings:
/dev/hdc:
ATAPI CD-ROM, with removable media
Model Number: HITACHI DVD-ROM GD-7500
Serial Number:
Firmware Revision: 0006
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
I don't think I ever set the region in Windows, but the DVDs do play fine. I'll double check that. I do have the proper symlinks and paths set-up for Xine. Perhaps I didn't make it clear before, but the DVD does play for some time before telling me it can't seek to a certain block. Thanks for your help so far.
Update: the region has been properly set in Windows, so I know thats not the problem. I also changed the fs type in my fstab for iso9660 to auto. Still, nothing works right. One thing, these errors:
Code:
buffer I/O error on device hdc, logical block 1594241
attempt to access beyond end of device
hdc: rw=0, want=6376972, limit=961428
I was wondering (and this may sound horribly ignorant) if this drive is somehow being recognized a cd instead of a DVD. That its looking for blocks that can't exist on a CD, but would be there on a DVD. I'm ready to try anything, so ideas are greatly appreciated.
If you use some common sense, dsc_overlap sounds like disc overlap feature does it. I think this feature is used to read the extra information of the CD/DVD near the center of the disc or near the very edge that many CD/DVD disc stop at. This feature might be your problem. It would be the same thing to turn it on but a slight change. As su or root type
Ok, gave this a try but unfortunately it does not seem to change anything. Shall I just mess around with all those settings, or shall I take another plan of attack?
Originally posted by linuxnubx I have the same problem. My Xine with DVD was working, but now it doesn't... It only works in root now.
Hey, original poster here. I tried out my DVD stuff in root(UT2K4, Xine DVD playback), and it worked brilliantly. So, I guess there is a permissions issue somewhere. Anybody have some ideas?
Originally posted by DvChWi Hey, original poster here. I tried out my DVD stuff in root(UT2K4, Xine DVD playback), and it worked brilliantly. So, I guess there is a permissions issue somewhere. Anybody have some ideas?
Originally posted by DvChWi Tried that, and still no luck. When reading both video and data DVDs, it randomly fails when logged in as user.
Ok, also after doing the chmod 777 /dev/hdc, try unmounting, then mounting, then unmounting again while underSU. Then try mounting with just your regular user. Hmm what else. Check your fstab and see if you /dev/cdrom line has has the option user under it. Mine looks something like this noauto,user,ro.
Originally posted by linuxnubx Ok, also after doing the chmod 777 /dev/hdc, try unmounting, then mounting, then unmounting again while underSU. Then try mounting with just your regular user. Hmm what else. Check your fstab and see if you /dev/cdrom line has has the option user under it. Mine looks something like this noauto,user,ro.
You can see my fstab above, it has that line in it. I tried that mount/unmount thing, but it didn't help. However, I was able to get UT2K4 installed as root, and I can play it as user, and I guess I can switch to root to watch DVDs(better than rebooting to Windows), though its hardly ideal. The thing that boggles my mind is the way it works for some of it, but not for others. In fact, I got the Unreal installer to work a bit under user, but it would always fail at the exact same file in the installation, every time. Its quite odd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.