LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-08-2005, 11:51 PM   #1
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Rep: Reputation: 15
Virtual Drive


I was looking at http://www.linuxrsp.ru/win-lin-soft/table-eng.html and noticed theses commands mentioned "cp /dev/cdrom mycd.iso" + "mount -o loop mycd.iso /mnt/cdrom/".
I tried the cp command and I get an error "cp: reading `/dev/cdrom2': Input/output error".

bash-3.00$ ls -l | grep hdd
lrwxrwxrwx 1 root root 3 2005-06-08 16:36 cdrom2 -> hdd
brw-rw-rw- 1 root disk 22, 64 2002-06-09 14:27 hdd
brw-rw---- 1 root disk 22, 65 2002-06-09 14:27 hdd1
...

Whats wrong? (I tried it as root and still the same problem)

Thank you.
 
Old 06-09-2005, 12:17 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
I think I see what your attempting, however, don't know if the coding is correct. I have never tried it, however, /dev/cdrom is probably not your correct device. Check your /etc/fstab file for the correct /dev for your cdrom2.
cp /dev/cdrom mycd.iso" + "mount -o loop mycd.iso /mnt/cdrom/".

Also assuming you have 2 cdrom drives there is probably already a mount poing for /mnt/cdrom so you may want to create another /mnt point like:

md /mnt/vutual_cdrom

Then using the correct /dev point from your fstab, let's say is /dev/hdd then:

cp /dev/hdd mycd.iso" + "mount -o loop mycd.iso /mnt/vutual_cdrom"

Good Luck

KC
 
Old 06-09-2005, 11:56 AM   #3
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Turns out I only get that error when I try to cp an audio cd.
So my question now is how can I copy an audio cd using commands like that (not actual cd programs like K3b)?

dd maybe?

Last edited by Kruncher; 06-09-2005 at 12:12 PM.
 
Old 06-09-2005, 12:16 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
cp won't work because audio cds don't have a filesystem, and cp copies files.
dd might work, but it's easier to use specialized tools. This example will download all tracks in a CD and burn them:

cdda2wav -D 0,4,0 -B /tmp/prefix-of-music-files
cdrecord -v spead=2 dev=0,4,0 -audio /tmp/prefix-of-music-files*.wav

or

cdrdao copy --device 0,4,0 --buffers 64 --driver generic-mmc-raw --read-raw toc-file.toc

That was taken from: http://www.yolinux.com/TUTORIALS/Lin...ialCDBurn.html
You can find more there.

The problem using dd would be, what do you do with the data you get from the cd? It's just raw...
 
Old 06-09-2005, 02:17 PM   #5
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
quote: "The problem using dd would be, what do you do with the data you get from the cd? It's just raw..."

Back when I used to use windows I would copy all my music cds onto my computer as iso's and then mount them with something like daemon tools. It would keep all my originals in perfect condition and it would allow me to make copy's easier and quicker (yeah I know, tisk tisk).

So would dd work to do that? If so how?

Last edited by Kruncher; 06-09-2005 at 02:18 PM.
 
Old 06-09-2005, 03:27 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I thought ISO was used only for data.. well..
try: dd if=/dev/cdrom of=yourimage.iso
That should do it
 
Old 06-09-2005, 05:54 PM   #7
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
It was a raw image ISO. I made them with CloneCD.

bash-3.00$ dd if=/dev/cdrom2 of=test.iso
dd: reading `/dev/cdrom2': Input/output error
0+0 records in
0+0 records out

no luck. Is there anyway I can make a clone image like I can with CloneCD (windows) or K3B?
 
  


Reply



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
Install from virtual drive? Linunix Fedora - Installation 1 05-19-2005 07:38 PM
Virtual Drive Cyberian Linux - Software 7 12-01-2004 01:30 AM
Virtual CD Drive on Linux timapatel Linux - Hardware 3 01-27-2004 09:58 PM
I need a virtual cd drive! endicay Linux - Software 3 11-26-2003 09:53 AM
Virtual CD drive futurist Linux - Software 4 05-28-2003 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:16 AM.

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