Re: pktsetup problem...

Marc Collin <[email protected]> Fri, 28 Oct 2005 12:44:46 -0400
Newsgroups gmane.linux.suse.packet-writing
Message-ID <[email protected]>
Le 28 Octobre 2005 07:22, Chris Clayton a écrit :

>
> I don't understand what is happening here - not that I'm in any way an
> expert :). The only think I can think of is a mismatch between your kernel
> version and udftools. What distribution are you using and what are the
> versions of your kernel and udftools/pktsetup, please?
>
> uname -r will give you kernel version and the output from pktsetup with no
> arguments will give enough information about your udftools/pktsetup
> version.
>
> The version of pktcdvd might also help. You can get the version from dmesg
> after the pktcdvd module has loaded
>
my fstab:

/dev/dvdram          /media/dvdram        subfs      
fs=cdfss,rw,noatime,procuid,nosuid,nodev,exec,users,gid=users,umask=0002,iocharset=utf8 
0 0

/dev/dvdram is linked to /dev/hdc


pktcdvd: v0.2.0a 2004-07-14 Jens Axboe ([email protected]) and [email protected]

linux 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 i686 athlon i386 
GNU/Linux

i renamed /dev/pktcdvd to /dev/pktcdvd_old
suse 10 seem to recreate it each time i boot... don't know if it's normal and 
if there is a way to stop that...

step done
#cdrwtool -d /dev/hdc -q
using device /dev/hdc
1029KB 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
Disc capacity is 295264 blocks (590528KB/576MB)
Formatting track
start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=31, type=USPACE
start=288, blocks=32, type=PVDS
start=320, blocks=32, type=LVID
start=352, blocks=32, type=STABLE
start=384, blocks=1024, type=SSPACE
start=1408, blocks=293568, type=PSPACE
start=294976, blocks=31, type=USPACE
start=295007, blocks=1, type=ANCHOR
start=295008, blocks=160, type=USPACE
start=295168, blocks=32, type=STABLE
start=295200, blocks=32, type=RVDS
start=295232, blocks=31, type=USPACE
start=295263, blocks=1, type=ANCHOR
Writing UDF structures to disc
Quick setup complete!


pktsetup pktcdvd0 /dev/hdc

dmesg return me: pktcdvd: writer pktcdvd0 mapped to hdc

after i do mount /dev/dvdram (after this operation, the led burner alway 
flash...)

cp test* /media/dvdram (the led stoped to flash during a few second... and 
restarted to flash)

dmesg return:

Unable to identify CD-ROM format.
UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'LinuxUDF', timestamp 
2005/10/28 10:59 (1f10)

ls -ls /media/dvdram/
total 0
0 drwxr-xr-x  3 root root 388 2005-10-28 10:59 .
0 drwxr-xr-x  4 root root 120 2005-10-28 10:46 ..
0 drwxr-xr-x  2 root root  40 2005-10-28 10:59 lost+found
0 -rwxr-xr-x  1 root root 237 2005-10-28 12:02 test
0 -rwxr-xr-x  1 root root 158 2005-10-28 12:02 test2.sh
0 -rwxr-xr-x  1 root root 134 2005-10-28 12:02 test2.sh~
0 -rwxr-xr-x  1 root root 134 2005-10-28 12:02 test.sh
0 -rwxr-xr-x  1 root root   0 2005-10-28 12:02 test.sh~

dmesg return:

Unable to identify CD-ROM format.
UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'LinuxUDF', timestamp 
2005/10/28 10:59 (1f10)

all theses operations was done with root...

now if i copy a file to the media, i don't get any error... but the file is 
not copied

umount /dev/dvdram
pktsetup -d pktcdvd0

i removed the media and to mount it

mount /dev/dvdram

dmesg return: Unable to identify CD-ROM format.

under root i do:
# ls -ls /media/dvdram
/bin/ls: /media/dvdram/test: Permission non accordée
/bin/ls: /media/dvdram/test2.sh: Permission non accordée
/bin/ls: /media/dvdram/test2.sh~: Permission non accordée
/bin/ls: /media/dvdram/test.sh: Permission non accordée
/bin/ls: /media/dvdram/test.sh~: Permission non accordée
/bin/ls: /media/dvdram/Xmodmap: Permission non accordée
0 drwxr-xr-x  3 root root 436 2005-10-28 10:59 .
0 drwxr-xr-x  4 root root  96 2005-10-28 12:29 ..
0 drwxr-xr-x  2 root root  40 2005-10-28 10:59 lost+found


 Permission non accordée is french.. and is equivalent to: Permission non 
agreement

and do a umount and pktsetup -d pktcdvd0

pktsetup pktcdvd0 /dev/hdc
mount /dev/dvdram
cp nuvola-1.0.tar.gz /media/dvdram

# ls -ls /media/dvdram
/bin/ls: /media/dvdram/test: Permission non accordée
/bin/ls: /media/dvdram/test2.sh: Permission non accordée
/bin/ls: /media/dvdram/test2.sh~: Permission non accordée
/bin/ls: /media/dvdram/test.sh: Permission non accordée
/bin/ls: /media/dvdram/test.sh~: Permission non accordée
/bin/ls: /media/dvdram/Xmodmap: Permission non accordée
/bin/ls: /media/dvdram/nuvola-1.0.tar.gz: Permission non accordée
total 0
0 drwxr-xr-x  3 root root 492 2005-10-28 10:59 .
0 drwxr-xr-x  4 root root  96 2005-10-28 12:29 ..
0 drwxr-xr-x  2 root root  40 2005-10-28 10:59 lost+found


with nero linux, if i do a disk info it said me:
fixd packetwriting, cd-rw 577MB (it's a 80minutes strange...) mode data(udf)