| View previous topic :: View next topic |
| Author |
Message |
Cintra Advocate


Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Sat Jul 02, 2005 8:35 am Post subject: |
|
|
Hei manny15
Thanks for the above post,
I hadn't experienced that problem before so I wrote an audio-cd with k3b and tried my usual
| Code: | # cdrwtool -d /dev/hdc -q
using device /dev/hdc
set_options | , sure enough it didn't work, so I ran
| Code: | | # cdrecord blank=fast dev=/dev/hdc | but still the above didn't work... mmmh!
To cut a long story short I tried blank=all, still no go, then k3b's blank cd-rw, no go...
Then by a stroke of luck I ejected the media, re-loaded and ran cdrwtool and it worked.
To confirm it, I rewrote the audio-cd, ran blank=fast, tried cdrwtool, no go, ejected & reloaded the media, and cdrwtool worked ok. i.e. its enough with blank=fast rather than blank=all. [/code]
I usually follow cdrwtool with | Code: | | mkudffs /dev/pktcdvd/dvdwri |
but in the above case it doesn't seem to be necessary.
Regards _________________ "I am not bound to please thee with my answers" W.S. |
|
| Back to top |
|
 |
manny15 Guru


Joined: 01 Dec 2002 Posts: 469 Location: USA
|
Posted: Sat Jul 02, 2005 2:46 pm Post subject: |
|
|
I'm just glad I was able to format the cdrw. I thought it might have been the medium, because they were brand new, 12x, and a different brand. After getting used to packet writing, and using it to put podcasts on it so I could listen to them on my mp3/atrac CD player (Sony D-NE319), gosh I think I was about to cry
Oh, one other thing, after cdrwtool failed, I noticed I couldn't eject the cdrw by pushing the eject button. But, when I used the eject command, it poped right open! Weird.
Now, I have two questions, does UDF fragment alot? Because I had trouble copying a file once, and there was enough room for it, according to df.
And, why use mkudffs after using cdrwtool -q? |
|
| Back to top |
|
 |
Cintra Advocate


Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Sat Jul 02, 2005 4:46 pm Post subject: |
|
|
Ref your questions,
I picked up the mkudffs habit from a thread back in January, and as I haven't used cd-rw much, until I came across 32x Verbatim media recently, it just stuck..
Concerning packet-writing fragmentation, I am no expert, though I did see it mentioned on http://fy.chalmers.se/~appro/linux/DVD+RW/.
The way I use dvd+rw & cd-rw for music storage, probably doesn't result in much fragmentation, as I don't do a lot of deleting. Anyway I'll see if XP's defrag review shows anything..
Mvh
Edit: there is no tools/defrag review possibility  _________________ "I am not bound to please thee with my answers" W.S. |
|
| Back to top |
|
 |
manny15 Guru


Joined: 01 Dec 2002 Posts: 469 Location: USA
|
Posted: Tue Jul 05, 2005 11:35 pm Post subject: |
|
|
Well, I keep filling my cdrw up with podcasts. I wanted to use mkudffs to reformat it, instead of using cdrwtool, which takes for ever, but I don't think I have a choice.
| Code: |
pktcdvd: 590528kB available on disc
SCSI error : <0 0 0 0> return code = 0x8000002
sr0: Current: sense key: Medium Error
Additional sense: Unrecovered read error
end_request: I/O error, dev sr0, sector 1179648
Buffer I/O error on device pktcdvd0, logical block 147456
|
I've used mkudffs after cdrwtool before, it formats quickly. But it didn't work this time. I also tried it after a quick blank of the cdrw using cdrecord.
| Code: | | trying to change type of multiple extents |
I've also noticed I'm getting ~590MB of space when using UDF. Is this normal on a 700MB cdrw? I really can't use another filesystem because I play the cdrw on a portable CD player. |
|
| Back to top |
|
 |
Cintra Advocate


Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Wed Jul 06, 2005 5:44 am Post subject: |
|
|
http://encyclopedia.thefreedictionary.com/Universal+Disk+Format briefly explains why we are only left with, in my case, 575.7MB.. doesn't worry me too much as I seem to have an obsession ref. buying the latest media
Mvh _________________ "I am not bound to please thee with my answers" W.S. |
|
| Back to top |
|
 |
dan2003 Apprentice


Joined: 11 May 2003 Posts: 251 Location: somewhere near london, UK
|
Posted: Tue Jul 12, 2005 11:08 pm Post subject: |
|
|
I finally got around to trying this but ran into trouble right at the last step, mount /mnt/dvdrw
| Code: | england linux # mount /mnt/dvdrw/
mount: wrong fs type, bad option, bad superblock on /dev/pktcdvd0,
or too many mounted file systems |
excerpt from dmesg
| Code: |
pktcdvd: inserted media is DVD+RW
pktcdvd: enabled write caching on pktcdvd0
pktcdvd: write speed 3324kB/s
pktcdvd: 4590208kB available on disc
UDF-fs: No partition found (1)
|
| Code: |
england linux # dvd+rw-mediainfo /dev/hdc
INQUIRY: [PIONEER ][DVD-RW DVR-106D][1.07]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Ah, DVD+RW
Current Write Speed: 2.4x1385=3324KB/s
Write Speed #0: 2.4x1385=3324KB/s
Speed Descriptor#0: 00/2295103 R@1.0x1385=1385KB/s W@2.4x1385=3324KB/s
READ DVD STRUCTURE[#0h]:
Media Book Type: 92h, DVD+RW book [revision 2]
Media ID: PRODISC/W01
Legacy lead-out at: 256*2KB=524288
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
BG Format Status: suspended
READ TRACK INFORMATION[#1]:
Track State: complete
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 2295104*2KB
FABRICATED TOC:
Track#1 : 14@0
Track#AA : 14@2295104
Multi-session Info: #1@0
READ CAPACITY: 2295104*2048=4700372992
|
Whats gone wrong here then? |
|
| Back to top |
|
 |
Cintra Advocate


Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Wed Jul 13, 2005 3:40 am Post subject: |
|
|
Did you use the following to prepare your DVD+RW ?
| Code: | # dvd+rw-format /dev/hdc
# mkudffs /dev/pktcdvd/dvdwri |
Mvh _________________ "I am not bound to please thee with my answers" W.S. |
|
| Back to top |
|
 |
dan2003 Apprentice


Joined: 11 May 2003 Posts: 251 Location: somewhere near london, UK
|
Posted: Wed Jul 13, 2005 9:07 am Post subject: |
|
|
ahh, i have done the format, but not that second line.. ill give that a whirl when i get home
Thanks |
|
| Back to top |
|
 |
tuxstalker n00b

Joined: 03 Jul 2005 Posts: 15
|
Posted: Wed Jul 13, 2005 6:20 pm Post subject: |
|
|
http://forums.gentoo.org/viewtopic-p-2570897.html#2570897
i'm haveing several problems with packet writing...when i try to blank my own fresh cd-r with /etc/init.d/cdrw start and cdrwtools i get this
| Code: |
crystal cody # cdrwtool -d /dev/cdrw -q
using device /dev/cdrw
1386KB internal buffer
setting write speed to 12x
Settings for /dev/cdrw:
Fixed packets, size 32
Mode-2 disc
I'm going to do a quick setup of /dev/cdrw. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now.
ENTER to continue.
Initiating quick disc blank
wait_cmd: Input/output error
Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06
blank disc: Illegal seek
|
looking in dmesg
| Code: |
pktcdvd: writer pktcdvd0 mapped to hdc
cdrom: This disc doesn't have any tracks I recognize!
|
in addition, without using /etc/init.d/cdrw stop, i cant eject the disc (sometimes apparently, because i just reached down and ejected the disc, strangeley enough)
the other problem im haveing is with mounting a cd-r writtine using roxio under windows, if i try mount /dev/hdc /mnt/cdrom , its detected as an iso9660 with the files
autorun.inf udfrchk.exe udfrinst.zl
autrun.inf just launches udfrchk.exe which tries to install the roxio udf reader w/e
however if i try to mount it as udf with mount -t udf /dev/hdc /mnt/cdrom (with packet writing still enabled)i get
| Code: |
crystal cody # mount -t udf /dev/hdc /mnt/cdrom
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
or too many mounted file systems
|
and in dmesg
| Code: |
cdrom: hdc: mrw address space DMA selected
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdc, sector 261492
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdc, sector 261484
UDF-fs: No partition found (1)
|
and the same with packetwriting disabled(/etc/init.d/cdrw stop)
does anyone have any suggestions?
im using the 2.6.11-gentoo-r11 kernel and the 1.0.0b-r4 version of udftools |
|
| Back to top |
|
 |
tuxstalker n00b

Joined: 03 Jul 2005 Posts: 15
|
Posted: Wed Jul 13, 2005 8:18 pm Post subject: |
|
|
| update, i've updated to the 2.6.12-gentoo-r4 kernel with exactlythe same results...[/b] |
|
| Back to top |
|
 |
unstable_geek Tux's lil' helper


Joined: 01 Mar 2003 Posts: 102 Location: In my own happy place
|
Posted: Mon Jul 25, 2005 4:44 pm Post subject: |
|
|
Bump.
I too have the same problems.
From dmesg:
| Code: |
pktcdvd: writer pktcdvd0 mapped to hdc
cdrom: This disc doesn't have any tracks I recognize!
|
| Code: |
$> pktsetup pktcdvd0 /dev/hdc
$> cdrwtool -d /dev/hdc -q
using device /dev/hdc
1916KB internal buffer
setting write speed to 12x
Settings for /dev/hdc:
Fixed packets, size 32
Mode-2 disc
I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now.
ENTER to continue.
Initiating quick disc blank
wait_cmd: Input/output error
Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06
blank disc: Illegal seek
|
Currently, I'm not sure that my kernel has udf support in it, so I'm recompiling to be sure. _________________ I hate my sig |
|
| Back to top |
|
 |
Cintra Advocate


Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Mon Jul 25, 2005 5:59 pm Post subject: |
|
|
Are you using blank cd-rw media?
mvh _________________ "I am not bound to please thee with my answers" W.S. |
|
| Back to top |
|
 |
manny15 Guru


Joined: 01 Dec 2002 Posts: 469 Location: USA
|
Posted: Mon Jul 25, 2005 8:12 pm Post subject: |
|
|
Two things I've learned:
1. Make sure the media is blank.
2. Select a packet mode that works.
I've gotten a similar error to...
| Code: |
Initiating quick disc blank
wait_cmd: Input/output error
Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06
blank disc: Illegal seek
|
When I tried using variable-packet mode. I could only do fixed-packet mode. Maybe the reverse could also be true.
I've also noticed pktcdvd can be... picky. Like women, it has moodswings. |
|
| Back to top |
|
 |
unstable_geek Tux's lil' helper


Joined: 01 Mar 2003 Posts: 102 Location: In my own happy place
|
Posted: Tue Jul 26, 2005 6:08 pm Post subject: |
|
|
| Cintra wrote: | Are you using blank cd-rw media?
mvh |
You know, I think I'm using CD-R media.
 _________________ I hate my sig |
|
| Back to top |
|
 |
SnEptUne l33t


Joined: 23 Aug 2004 Posts: 651
|
Posted: Tue Jul 26, 2005 6:49 pm Post subject: |
|
|
The Tips & Tricks is all well and fine, for CDRW that is. I mean how can I allocate 4.0GB to my DVD instead of just 517MB? I am sure DVD can hold more than just 517MB of data.
Please see this thread for more information http://forums.gentoo.org/viewtopic-t-363027.html
Oh, and how did you ppl format the disk so the legacy lead-out is at 4.4GB? _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
| Back to top |
|
 |
tuxstalker n00b

Joined: 03 Jul 2005 Posts: 15
|
Posted: Wed Jul 27, 2005 10:04 pm Post subject: |
|
|
| im using cd-r...but shouldnt it still work for cd-r?i mean you couldnt delte the files once they're written obviously, but still...and how do i change packet writing modes? |
|
| Back to top |
|
 |
manny15 Guru


Joined: 01 Dec 2002 Posts: 469 Location: USA
|
Posted: Wed Jul 27, 2005 10:52 pm Post subject: |
|
|
user the -p option of cdrwtool.
-p 0 (variable)
-p 1 (fixed) |
|
| Back to top |
|
 |
rapsure Apprentice


Joined: 29 Apr 2004 Posts: 163 Location: Spanish Fork, Utah, U.S.
|
Posted: Tue Aug 02, 2005 4:39 am Post subject: packet writing and kernel 2.6.12 |
|
|
I have the gentoo linux 2.6.12-r6 kernel installed, and I can't get packet-writing to work on cd-rws. When I run
| Code: |
pktsetup /dev/cdroms/cdrw /dev/hdc
|
I get the following message
| Code: |
ioctl: Inappropriate ioctl for device
|
Now I read that the kernel is supposed to automagically detect if it is rw media, and allow me to burn to the disk after mounting, but doesn't work. I was able to format a couple of discs for the purpose of using packet writing. I suppose that is the only good news. I have had packet writing working on 2.6.10 kernel, but I have exhausted my experience, and knowlege of how to setup the packet writing in the 2.6.12 kernel. _________________
Hindi ko naintindihan, pakiulit. |
|
| Back to top |
|
 |
rapsure Apprentice


Joined: 29 Apr 2004 Posts: 163 Location: Spanish Fork, Utah, U.S.
|
Posted: Tue Aug 02, 2005 5:10 am Post subject: working mostly |
|
|
I got the packet writing to work, but I do have a gripe and maybe one of you know of how to fix this behavior. When I have the module pktcdvd loaded, and I have the pktcdvd0 device created I have issues ejecting discs.
For example:
| Code: |
mount /mnt/cdrom
umount /mnt/cdrom
eject /dev/hdc
|
I can't eject the media, but if I go and type:
| Code: |
eject /dev/pktcdvd/pktcdvd0
|
I am able to eject the disc. Operation returns to normal when I tear down the packet device. This problem has bad side effects in gnome. _________________
Hindi ko naintindihan, pakiulit. |
|
| Back to top |
|
 |
manny15 Guru


Joined: 01 Dec 2002 Posts: 469 Location: USA
|
Posted: Tue Aug 02, 2005 8:08 pm Post subject: Re: working mostly |
|
|
| rapsure wrote: | I got the packet writing to work, but I do have a gripe and maybe one of you know of how to fix this behavior. When I have the module pktcdvd loaded, and I have the pktcdvd0 device created I have issues ejecting discs.
For example:
| Code: |
mount /mnt/cdrom
umount /mnt/cdrom
eject /dev/hdc
|
I can't eject the media, but if I go and type:
| Code: |
eject /dev/pktcdvd/pktcdvd0
|
I am able to eject the disc. Operation returns to normal when I tear down the packet device. This problem has bad side effects in gnome. |
I don't use GNOME, and I normally don't use eject either, but this is still rather strange. When you mount a CDRW using packet-writing, you have to use the pktcdvd0 device instead of the device for the actual CDRW drive. For example, on my system, I have the following in /etc/fstab
| Code: |
/dev/cdrw /mnt/cdrw iso9660 noauto,ro,user,unhide
/dev/pktcdvd/pktcdvd0 /mnt/cdrw.udf udf noauto,rw,noatime,user,umask=000 0 0
|
When I want to use packet-writing, I use the /mnt/cdrw.udf mount point. So, assuming GNOME (nautilus?) pairs up the device to it's appropriate mount point, if you mount using the /mnt/cdrw.udf mount point, then GNOME should know that the device is /dev/pktcdvd/pktcdvd0. So when ejecting, it should also use the same device. If the file manager you are using does not do this, it... it should! |
|
| Back to top |
|
 |
rapsure Apprentice


Joined: 29 Apr 2004 Posts: 163 Location: Spanish Fork, Utah, U.S.
|
Posted: Wed Aug 03, 2005 12:24 am Post subject: Eject |
|
|
Well I have been using the command line tool so that I knew whether it was a Gnome problem or a problem somewhere else. If I run
after I have unmounted the device the CD won't eject. I have to use eject because the drive door is locked, and won't open. So a sequence like this doesn't work.
| Code: |
mount /mnt/cdrom
umount /mnt/cdrom
eject /dev/hdc
|
A sequence like this will work.
| Code: |
mount /mnt/cdrom
umount /mnt/cdrom
eject /dev/pktcdvd/pktcdvd0
|
The disc will eject with that sequence, or with this.
| Code: |
mount /mnt/cdrw
umount /mnt/cdrw
eject /dev/pktcdvd/pktcdvd0
|
Perhaps someone else has had this problem. _________________
Hindi ko naintindihan, pakiulit. |
|
| Back to top |
|
 |
rapsure Apprentice


Joined: 29 Apr 2004 Posts: 163 Location: Spanish Fork, Utah, U.S.
|
Posted: Wed Aug 03, 2005 12:29 am Post subject: Update |
|
|
If i mount like this:
| Code: |
mount /mnt/cdrw
umount /mnt/cdrw
|
The drive doesn't get locked. What is weird is that root can always unmount regardless of how it is mounted. Then again root doesn't have any command filter blocking any commands to the drive.  _________________
Hindi ko naintindihan, pakiulit. |
|
| Back to top |
|
 |
lmcogs Guru

Joined: 03 Apr 2005 Posts: 340
|
Posted: Mon Aug 08, 2005 9:50 pm Post subject: |
|
|
Hi All
Same problem here as Rapsure. Have had it for long time now and would love to get it sorted, have also tried pmount and ivman but still no good. I have a LG super multi dvd writer and a dvd rom drive . The dvd rom drive has no problems but only root can eject the dvd writer. I can mount/umount and have packet writing working grand.
Also when I eject the dvd writer as root 'eject /mnt/dvdro', it is successful but I also get the message
'eject: unable to eject, last error: Invalid argument' the disk gets ejected ok.
I also tried the packet formatted disk in the dvd rom and had no problem ejecting it.
These are the relevant lines in fstab
/dev/hdd /mnt/dvd udf,iso9660 noauto,user,ro,unhide 0 0
/dev/hdc /mnt/dvdro udf,iso9660 user,unhide,noauto,ro 0 0
/dev/pktcdvd/0 /mnt/dvdrw udf user,noauto,noatime,rw 0 0
lmcogs |
|
| Back to top |
|
 |
rapsure Apprentice


Joined: 29 Apr 2004 Posts: 163 Location: Spanish Fork, Utah, U.S.
|
Posted: Tue Aug 09, 2005 4:51 am Post subject: testing |
|
|
I did some testing and the only reason why root can eject the drive is because root can send SCSI commands to the drive. I now know when the eject thing broke, and why. There is a command filter in the 2.6.9, and newer kernel. This actually broke in the 2.6.9 kernel even though I didn't use that version. A normal user can only send certain scsi commands to the drive, and root has complete access to the drive. I know how change the kernel source to allow users to send the SCSI eject command, but it would never be accepted by the main kernel developers. So here we are stuck with a bug in the IDE interface for the CDROM. _________________
Hindi ko naintindihan, pakiulit. |
|
| Back to top |
|
 |
DeepBass909 Tux's lil' helper

Joined: 23 Jan 2005 Posts: 81 Location: Netherlands
|
Posted: Thu Apr 13, 2006 2:37 am Post subject: |
|
|
I trying to setup packet-writing, but it keeps on failing.
| Code: | setting speed to 8
using device /dev/cdrw
fixed packets
1568KB internal buffer
setting write speed to 8x
Settings for /dev/cdrw:
Fixed packets, size 32
Mode-2 disc
I'm going to do a quick setup of /dev/cdrw. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now.
ENTER to continue.
Initiating quick disc blank
wait_cmd: Input/output error
Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.24.00
blank disc: Illegal seek
|
It doesn't matter if use fixed or variable packets or mode1 or mode2. They all fail with the same error. And dmesg keeps printing this line: | Code: | | cdrom: This disc doesn't have any tracks I recognize! |
I'm trying it on both an virgin cdrw as well as an erased one.
I'm not really sure about this, but it seems like the disk isn't reconized as an cd-rw. I'm also unable to erase it with cdrecord, but cdrdao works fine. I've setup k3b to use cdrdao to erase, but befor it does so, it complains that the media isn't a cd-rw. Could this also be causing my trouble with formating the disk to use UDF?
btw I've followed the guide and setup everthing as I'm supposed to do. There is a /dev/pktcdvd/0 device and the kernel has UDF and packetwriting support.[/code] |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|