LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-02-2005, 04:35 PM   #1
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Rep: Reputation: 15
Input Output Error on DVDR


I setup my DVD burner, but whenever I try to copy anything off of the DVD, I get an input output error. What is this? However, programs like Ogle and NeroLinux work fine.

Last edited by SolidSnakeX28; 11-02-2005 at 06:34 PM.
 
Old 11-02-2005, 06:44 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
I'm not sure if this is your problem, but:
If you have installed udftools (packet writing) you will need
to disable the packet device before mounting your cdrom.
eg.
# pktsetup -d 0
in Debian there's a script:
# /etc/init.d/udftools stop
 
Old 11-02-2005, 07:45 PM   #3
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Original Poster
Rep: Reputation: 15
It's not. Can someone tell me if I need to enable any kernel modules or if I needed to emerge anything prior to using my drive?

Here's how it appears in /etc/fstab:

Quote:
/dev/dvdrw /mnt/dvdrw iso9660 user,noauto,ro 0 0

Last edited by SolidSnakeX28; 11-02-2005 at 07:46 PM.
 
Old 11-02-2005, 08:07 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by SolidSnakeX28
It's not. Can someone tell me if I need to enable any kernel modules or if I needed to emerge anything prior to using my drive?

Here's how it appears in /etc/fstab:
One thing I see looks like an incorrect device name in fstab.
It should be one of these:

IDE0 - master = /dev/hda
IDE0 - slave = /dev/hdb
IDE1 - master = /dev/hdc
IDE1 - slave = /dev/hdd

Beyond that, what are you trying to do, or what command did
you issue and what error did you get?

If you issue "dmesg | grep -i dvd" it should tell you where it is
located per the above table. Change your fstab entry.

Last edited by Bruce Hill; 11-02-2005 at 08:20 PM.
 
Old 11-02-2005, 09:00 PM   #5
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Chinaman
One thing I see looks like an incorrect device name in fstab.
It should be one of these:

IDE0 - master = /dev/hda
IDE0 - slave = /dev/hdb
IDE1 - master = /dev/hdc
IDE1 - slave = /dev/hdd

Beyond that, what are you trying to do, or what command did
you issue and what error did you get?

If you issue "dmesg | grep -i dvd" it should tell you where it is
located per the above table. Change your fstab entry.
Thanks, I fixed the fstab.
I just plugged in my DVD Burner I got today, and after I plugged it in, I burned a disc. To make sure it was good, I put the disc back in the drive to copy some files back. When I try to copy files back, I get an "input output error". I'll quote it exactly:

Quote:
snake@ArsenalGear /mnt/dvdrw/Elfen Lied $ cp 'Elfen Lied - 01.avi' ~
cp: reading `Elfen Lied - 01.avi': Input/output error
Well, there it is.
 
Old 11-02-2005, 09:11 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I've never seen anything like that command "cp 'Elfen Lied - 01.avi' ~"
In Linux you can't have a space in a filename. Spaces are treated as
escape characters. If your file is titled "Elfen Lied - 01.avi" then you
would have to issue "cp Elfen\ Lied\ -\ 01.avi" and the tilde (~) I do
not understand at all.

To remove spaces from filenames, and replace them with underscores:
for i in *; do mv "$i" `echo $i | tr ' ' '_'`; done
That will remove all the spaces in the filenames in the directory where
you issue that command and replace them with _ (underscores).

Edit: You can have a space in a filename, but not in a filename
in a command string. There it will be treated as an escape character.

Last edited by Bruce Hill; 11-02-2005 at 09:13 PM.
 
Old 11-02-2005, 09:24 PM   #7
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Original Poster
Rep: Reputation: 15
You're sure? I use bash, and I've always used an apostrophe ( ' ) to specify filenames with spaces such as 'Elfen Lied.avi'; I do this normally. Also, the tilde key is a symbol for current user's home directory, in my case: /home/snake/. At least in gentoo, this is true.

Anyway, I tried it without the spaces and I wrote out the home directory, and still no dice.

EDIT: I've been googleing this problem alot, but to no avail. However, I have found alot of talk about needing SCSI drivers or some modules in the kernel. Anything?

Last edited by SolidSnakeX28; 11-02-2005 at 09:33 PM.
 
Old 11-02-2005, 09:37 PM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Please forgive me. I would erase my entire post, but then, someone else
can probably learn from my mistake. I just did this:
Code:
bruce@silas:/backup/DATA_old/My_Music/ywam/Dreams_of_God$ cp '04 The Truth Will Set You Free.wma' ~
bruce@silas:/backup/DATA_old/My_Music/ywam/Dreams_of_God$ cd
bruce@silas:~$ ls *Truth*
04\ The\ Truth\ Will\ Set\ You\ Free.wma*
bruce@silas:~$
Thanks for the lesson, and please forgive me...
 
Old 11-02-2005, 09:42 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Just caught your edit in that post.

Now, since (I believe) DVDs use UDF filesystem, would you need that
filesystem compiled into your kernel? In this kernel I have:
Code:
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set
CONFIG_UDF_FS=m
CONFIG_UDF_NLS=y
 
Old 11-02-2005, 09:42 PM   #10
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Original Poster
Rep: Reputation: 15
Smile

Sure, just help me get the answer and you'll be forgiven.

Quote:
Originally posted by Chinaman
Just caught your edit in that post.

Now, since (I believe) DVDs use UDF filesystem, would you need that
filesystem compiled into your kernel? In this kernel I have:
Code:
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set
CONFIG_UDF_FS=m
CONFIG_UDF_NLS=y
OK, how do I check that output? ie, what command do I input to see that?

Last edited by SolidSnakeX28; 11-02-2005 at 10:03 PM.
 
Old 11-02-2005, 10:24 PM   #11
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
AFAIK you don't *need* UDF for DVD's, although it is commonly used.
(Your fstab specifies ISO9660 anyway)

If you burn (a subset of) the files to a CD (CDRW?) do you have the same problem?
Have you tried burning with a few different applications?
Does burning at a slower speed make any difference?

Note that /dev/dvdrw should be a link to /dev/hd?
eg:
$ ls -l /dev/dvd*
lrwxrwxrwx 1 root root 3 2005-11-03 05:29 /dev/dvd -> hdd
lrwxrwxrwx 1 root root 3 2005-11-03 05:29 /dev/dvdrw -> hdd
$ ls -l /dev/hdd
brw-rw---- 1 root cdrom 22, 64 2005-11-03 05:29 /dev/hdd
(need to make sure your user is a member of the cdrom group here)

Does
# md5sum /dev/dvdrw
fail with an IO error?
 
Old 11-02-2005, 10:40 PM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by SolidSnakeX28
Sure, just help me get the answer and you'll be forgiven. :)



OK, how do I check that output? ie, what command do I input to see that?
Code:
bruce@silas:~$ less kernel/linux-2.6.13.4/.config
and then hit /UDF and enter. You'll need to use the path to your
kernel config file, of course.

The other guy seems to think that's not the issue.

Could you be more specific as to what you're doing. For instance:
Code:
bruce@silas:~$ mount /mnt/dvd/
bruce@silas:~$ cp /mnt/dvd/video_ts/vts_01_1.vob ~
bruce@silas:~$ ls *.vob
vts_01_1.vob*
bruce@silas:~$
My DVDs don't have .avi files, nor files with spaces in the names.
However, I don't have trouble copying a .vob file.

Last edited by Bruce Hill; 11-02-2005 at 10:41 PM.
 
Old 11-02-2005, 10:50 PM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I'm showing my ignorance here, but the Wikipedia DVD entry says:
Quote:
DVD is an optical disc storage media format that can be used for data storage, including movies with high video and sound quality. DVDs resemble compact discs: their physical dimensions are the same¡ª12cm or the mini 8cm¡ªbut they are encoded in a different format and at a much higher density. DVDs contain a file system, called UDF, which is an extension of the ISO 9660 Standard used for CD-ROMs.
Unlike compact discs, where sound (CDDA, Red Book) is stored in a fundamentally different fashion than data (Yellow book et al.), a properly authored DVD will always contain data in the UDF filesystem.
 
Old 11-02-2005, 11:24 PM   #14
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Quote:
$ man mount
Mount options for udf
udf is the "Universal Disk Format" filesystem defined by the Optical Storage Technology Association, and is often used for DVD-ROM. See also iso9660.
I said you don't *need* to have udf for dvd.
That being said, if SolidSnakeX28 is only using Nero, then UDF support
would be an awfully good idea, as Nero seems to make UDF DVDs (AFAIK)

Quote:
http://community.linux.com/print.pl?sid=04/08/05/1123231
If you're having problems using UDF CDs burned with Nero, then you might be able to make good use of this information, especially if the culprit turns out to be Nero.
Hence my previous comments about udftools and burning applications.

My normal use of UDF is for packet writing:
Quote:
http://packet-cd.sourceforge.net/
UDF provides a filesystem capable of understanding large amounts of storage space (such as that found on DVDs), and is far more optimal for use with packet writing than the ISO9660 format used with traditional Track-at-Once and Disc-at-Once methods.
ps. changing the fstab line to
/dev/dvdrw /mnt/dvdrw auto user,noauto,ro 0 0
might help (assuming UDF support exists )
 
Old 11-03-2005, 05:23 PM   #15
SolidSnakeX28
Member
 
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85

Original Poster
Rep: Reputation: 15
Yes, md5sum /dev/dvdrw does return an I/O error. And yes, I do have the proper kernel specs as stated by chinaman.
 
  


Reply



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
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
Input/Output Error lwcangus Linux - Software 0 02-06-2005 08:59 PM
Input / output error xviddivxoggmp3 Slackware 22 08-24-2004 12:47 PM
Input/Output error Toker Linux - Newbie 4 10-01-2003 02:11 PM

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

All times are GMT -5. The time now is 09:19 PM.

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