ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Arioch <the_Arioch@nm.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: hotplug и пакетная запись  cd-r - просто вопpос
Date: Thu, 11 Aug 2005 01:00:41 +0400
Message-ID: <dddsg1$n1b$2@sea.gmane.org> (raw)
In-Reply-To: <ddbean$co4$1@sea.gmane.org>

Arioch пишет:

бага нужна? возможно один файл создает pktcdvd, а другой - UDEV ?




[root@localhost root]# service udftools start
Starting :
/dev/pktcdvd/cdwriter=/dev/hdc
[root@localhost root]# ls -l /dev/pkt*
brw-rw----  1 root disk 251, 0 Aug 11 00:39 /dev/pktcdvd0

/dev/pktcdvd:
total 0
lrwxrwxrwx  1 root root       11 Aug 11 00:39 0 -> ../pktcdvd0
brw-r-----  1 root root  251,  0 Aug 11 00:39 cdwriter
crw-rw----  1 root cdrom  10, 62 Aug 10 03:27 control

                 т.е. есть два файла одного устройства.
      теоретически, pktsetup создает /dev/pktcdvd/cdwriter и 0 должен
      ссылаться на него же. Если теперь service udftools stop (оно же
      pktsetup -d cdwriter) то все ок.
                 Теперь удаляем устройство, но не cdwriter,
      а фантом /dev/pktcdvd0

[root@localhost root]# pktsetup -d 0
[root@localhost root]# ls -l /dev/pkt*
total 0
brw-r-----  1 root root  251,  0 Aug 11 00:39 cdwriter
crw-rw----  1 root cdrom  10, 62 Aug 10 03:27 control


[root@localhost root]#  pktsetup -d cdwriter
ioctl: No such device or address
[root@localhost root]# ls -l /dev/pkt*
total 0
brw-r-----  1 root root  251,  0 Aug 11 00:39 cdwriter
crw-rw----  1 root cdrom  10, 62 Aug 10 03:27 control
[root@localhost root]#  pktsetup -d 251:0
ioctl: No such device or address


PS: хочется скрипт покорежить, как минимум чтобы не ссылался на 
несуществующую переменную $DESC

Есть простые способы определить, может ли драйв packetcdvd ?
cdrecord - м.б. слишком большая, да еще warning'ами кидается.

[root@localhost root]# cdrecord -checkdrive  dev=/dev/cdrom
Cdrecord-Clone 2.01a37 (i586-alt-linux-gnu) Copyright (C) 1995-2004 JЖrg 
Schilling
scsidev: '/dev/cdrom'
devname: '/dev/cdrom'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'QSI     '
Identifikation : 'CDRW/DVD SBW-242'
Revision       : 'UX10'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R

Если я правильно понимаю, то чтобы можно было пакетно записывать - в 
посл. строчке должен присутствовать PACKET, а еще лучше MRW ?




  reply	other threads:[~2005-08-10 21:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09 23:30 [sisyphus] " Arioch
2005-08-10 21:00 ` Arioch [this message]
2005-08-11  8:29   ` [sisyphus] " Konstantin A. Lepikhov
2005-08-12 13:54     ` Arioch
2005-08-12 19:43       ` Konstantin A. Lepikhov
2005-08-13 11:02         ` Arioch
2005-08-13 18:51           ` Konstantin A. Lepikhov
2005-08-14 14:23             ` [sisyphus] Re: hotplug, UDEV и пакетная запись cd-r Arioch
2005-08-14 17:54               ` Konstantin A. Lepikhov
2005-08-14 23:24                 ` Arioch
2005-08-15  8:11                   ` Konstantin A. Lepikhov
2005-08-16 11:44                     ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dddsg1$n1b$2@sea.gmane.org' \
    --to=the_arioch@nm.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git