Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2010 14:41:50 +0100
From:      David Demelier <demelier.david@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Unable to extract audio cd tracks
Message-ID:  <4D0E0B9E.5000505@gmail.com>
In-Reply-To: <20101213232917.70fc36f6.freebsd@edvax.de>
References:  <4D065DE0.2020509@gmail.com> <20101213232917.70fc36f6.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13/12/2010 23:29, Polytropon wrote:
> On Mon, 13 Dec 2010 18:54:40 +0100, David Demelier<demelier.david@gmail.com>  wrote:
>> Hi,
>>
>> Reading this http://www.freebsd.org/doc/handbook/creating-cds.html I
>> would try to extract my files from my optical drive. (I don't have
>> atapicam but if I understand well it's only needed for cdda2wav)
>>
>> markand@Abricot ~ $ sudo dd if=/dev/acd0t01 of=track1.cdr
>> dd: /dev/acd0t01: Invalid argument
>> 0+0 records in
>> 0+0 records out
>> 0 bytes transferred in 0.026221 secs (0 bytes/sec)
>>
>> do I really need atapicam even if I directly read from the device?
>
> You need to specify the correct block size:
>
> dd if=/dev/acd0t01 of=track01.cdr bs=2352
>
> This should give you a cdr (raw) file conforming to
> the CD audio specifications.
>
>

Thanks,

The handbook says we must `taste' the media, it works but it prints a 
warning

markand@Melon ~ $ dd if=/dev/acd0 of=/dev/null count=1
dd: /dev/acd0: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000132 secs (0 bytes/sec)

I just realized that using the block size for the same thing works :

markand@Melon ~ $ dd if=/dev/acd0 of=/dev/null count=1 bs=2352
1+0 records in
1+0 records out
2352 bytes transferred in 2.893379 secs (813 bytes/sec)

I propose modifying the following :

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html

Make sure the appropriate files exist in /dev. If the entries are 
missing, force the system to retaste the media:

# dd if=/dev/acd0 of=/dev/null count=1 *bs=2352

Then people who try that won't be surprised by the Invalid argument error.

Cheers,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D0E0B9E.5000505>