LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-25-2006, 06:50 PM   #1
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
DVD-R, problem reading files beyond 4 GB position


I've burned a data DVD-R with K3B. K3B did verify it successfully.
I haven't used the entire capacity (4.3 GB), there were approx. 250 MB to spare.
The DVD can be mounted, but the files that have been written last, are not readable under Linux. (This is a dual boot machine, and the files in question are readable with Windows)

Apparently there is an upper limit, and any attempt to read beyond that fails.

Can the limit be changed? Or is it determined automatically? Why can K3B read these sectors but not the "normal" OS?

/var/log/messages
Code:
May 23 01:18:16 localhost kernel: [4298007.805000] hdc: rw=0, want=8475852, limit=8388604
May 23 01:18:16 localhost kernel: [4298007.805000] attempt to access beyond end of device
May 23 01:18:16 localhost kernel: [4298007.805000] hdc: rw=0, want=8475856, limit=8388604
May 23 01:18:16 localhost kernel: [4298007.805000] attempt to access beyond end of device
May 23 01:18:16 localhost kernel: [4298007.805000] hdc: rw=0, want=8475860, limit=8388604
May 23 01:18:16 localhost kernel: [4298007.805000] attempt to access beyond end of device
May 23 01:18:16 localhost kernel: [4298007.805000] hdc: rw=0, want=8475800, limit=8388604
May 23 01:18:16 localhost kernel: [4298007.805000] attempt to access beyond end of device
May 23 01:18:16 localhost kernel: [4298007.805000] hdc: rw=0, want=8475804, limit=8388604
hdparm -v -i /dev/dvd
Code:
/dev/dvd:
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument

 Model=HL-DT-ST DVDRAM GSA-4160B, FwRev=A300, SerialNo=XXXXXXXXX
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2 udma3 udma4
 AdvancedPM=no
 Drive conforms to: Unspecified:  ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5

 * signifies the current active mode
 
Old 05-26-2006, 07:26 PM   #2
tico0z
LQ Newbie
 
Registered: Sep 2003
Distribution: slack, openbsd, xebian
Posts: 1

Rep: Reputation: 0
me too

I had the same problem.
I thought I had heard something about a 2.6 kernel hack for this somewhere, but that was some time back.
Did you try a
# dd if=/dev/what-have-you of=dvd_image.iso
??
I tried this on my DVD-ROM and that didn't work, but from the DVDRW it did.
 
Old 01-29-2007, 02:41 AM   #3
RGummi
Member
 
Registered: Nov 2005
Posts: 90

Rep: Reputation: 15
Hi,

I have the same problem with Suse 10.2 (64 bit)!

Jan 28 11:39:45 linux kernel: attempt to access beyond end of device
Jan 28 11:39:45 linux kernel: hda: rw=0, want=8388624, limit=8388604
Jan 28 11:39:45 linux kernel: Buffer I/O error on device hda, logical
block 2097155

Any solution???

R
 
Old 04-07-2007, 05:12 AM   #4
kodifik
LQ Newbie
 
Registered: Apr 2007
Location: Barcelona
Distribution: debian
Posts: 3

Rep: Reputation: 0
The cause of this problem is brilliantly discussed in detail in:
http://lkml.org/lkml/2006/11/23/182
To sum up, when something has previously tried to open the cdrom, it can cause the kernel to stay locked on the wrong assumptions about the device (i.e. its maximum size).
Usually, that something is the pktsetup instruction, as described in:
http://lists.opensuse.org/archive/pa.../msg00022.html
In Debain, all one has to do is:
/etc/init.d/udftools stop
for everything to return to work fine.
Chances are this will repair also the message "inappropiate ioctl for device" if that happens to you when using the eject command.
 
Old 04-07-2007, 05:41 AM   #5
kodifik
LQ Newbie
 
Registered: Apr 2007
Location: Barcelona
Distribution: debian
Posts: 3

Rep: Reputation: 0
I forgot to make clear that, whenever you want to use packet writing again, you will have to execute:
/etc/init.d/udftools start
(in Debian). Remember to stop it when you are finished, or the "beyond end of device" could happen again.
 
  


Reply

Tags
kernel



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
Problem reading files using smbfs pjcs Linux - General 0 11-08-2005 11:08 AM
Distro - ZenWalk Problem - cd/dvd and cdrw/dvdrw not reading disks phaekor Linux - Newbie 3 10-19-2005 06:15 PM
C and reading files & directories problem climbingmerlin Programming 4 10-12-2005 02:25 PM
Problem reading contents of bootable dvd in KDE 3.2.1 vangelis Linux - General 1 01-09-2005 01:14 AM
Weird DVD Problem while reading contents TheCondor389 Linux - Hardware 0 12-28-2004 09:48 AM

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

All times are GMT -5. The time now is 06:09 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