create iso image from a cd or dvd


Forum: Other Help Topics
Topic: create iso image from a cd or dvd
started by: lmart

Posted by lmart on Jan. 21 2008,15:50
unable to create iso from a cd or dvd

using dsl-4.2.3, booting from floppy to usb (dsl fromusb) in order to use the cd/dvd writer

tried multiple variants of the following command with no success

dd if=/dev/cdrom of=file.iso bs=1024

once able to extract the iso, what is the command to write the iso to a cd or dvd?

thanks

Posted by curaga on Jan. 21 2008,16:01
first check your burner's device number with "cdrecord -scanbus"
Then burn your iso with "cdrecord speed=8 dev=1,2,3 -data file.iso", substitute your device number for 1,2,3

What errors do you get when using that dd command?

Posted by lmart on Jan. 21 2008,19:18
dd if=/dev/cdrom of=file.iso bs=1024

dd: reading '/dev/cdrom':  Input/output error
497366+0 records in
497366+0 records out

creates a 0 byte file.iso


bash:  cdrecord-scanbus: command not found

Posted by sheldonisaac on Jan. 21 2008,22:32
Quote

dd if=/dev/cdrom of=file.iso bs=1024

dd: reading '/dev/cdrom':  Input/output error
497366+0 records in
497366+0 records out

creates a 0 byte file.iso

Maybe there's not enough room in the directory where you're trying to write file.iso
Or maybe it's not writeable by you as user dsl?  root?

I just went to a root shell, was in /home/dsl, and did:

Code Sample
dd if=/dev/cdrom of=file.iso count=10  bs=1024



and indeed a file.iso was created:


-rw-r--r--    1 root     staff       10240 Jan 21 16:46 file.iso


Quote

bash:  cdrecord-scanbus: command not found


The command is  cdrecord , and the option is -scanbus; so leave a space:

Code Sample

cdrecord  -scanbus

Posted by lmart on Jan. 21 2008,23:11
thanks for your reply, still no success with dd, your clarification on the -argument for cdrecord resolved that situation

here are the commands i typed to create the iso

sudo su
dd if=/dev/cdrom of=file.iso count=10  bs=1024

system response
dd: reading '/dev/cdrom': Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.007514 seconds (0 bytes/sec)

appreciate your help, have 4gb of free space (/home/dsl/) for the cd iso

Posted by mikshaw on Jan. 22 2008,01:53
Quote
dd: reading '/dev/cdrom': Input/output error
It sounds like there is a problem reading the device. It could be a faulty disk, or maybe you mounted the disk? I have never tested this, but I think it's possible that mounting the CD might prevent a direct read.

Posted by lmart on Jan. 22 2008,19:48
bear with me on this one ...
launched a menu item called system stats
it put a stats.txt file in /home/dsl
opened the file, listing follows below
there may be a conflict with the cdrom as opposed to a problem ith the cdrom
running dsl-4.2.3, booting from floppy to usb
usb created with menu item USB-HDD, which created sda1 and sda2 that holds the boot image
boot:  dsl fromusb (from floppy)
boot:  ds fromhd=/dev/sda2  (from livecd)
stats.txt lists /dev/sda2 as /cdrom
?is this causing dd to fail?

ps, ?do you know where the shell script is located that creates (1) USB-HDD and (2) stats.txt so that i can view them?

Filesystem            Size  Used Avail Use% Mounted on
/dev/root             3.0M  609K  2.5M  20% /
/dev/sda2              52M   49M  111K 100% /cdrom
/dev/cloop            115M  115M     0 100% /KNOPPIX
/ramdisk              377M   45M  332M  12% /ramdisk
unionfs               492M  160M  332M  33% /KNOPPIX/bin
unionfs               380M   46M  335M  12% /dev
unionfs               380M   46M  335M  12% /etc
unionfs               492M  160M  332M  33% /KNOPPIX/lib
unionfs               492M  160M  332M  33% /KNOPPIX/sbin
unionfs               492M  160M  332M  33% /KNOPPIX/usr
unionfs               377M   45M  332M  12% /ramdisk/var
/dev/sda1             3.8G   19M  3.7G   1% /mnt/sda1

Posted by ^thehatsrule^ on Jan. 22 2008,20:11
Quote
stats.txt lists /dev/sda2 as /cdrom
?is this causing dd to fail?
No, /cdrom is just a DSL frugal convention, and is a just a mount point... it has nothing to do with /dev/cdrom

Quote
ps, ?do you know where the shell script is located that creates (1) USB-HDD and (2) stats.txt so that i can view them?
You can search the menu files, i.e. with `grep -i "\(usb\|stats\)" ~/.fluxbox/menu`

What's the output of that cdrecord command?

Posted by lmart on Jan. 23 2008,05:42
output from command cdrecord -scanbus

Cdrecord-ProDVD-ProBD-Clone 2.01.01a36 (i686-pc-linux-gnu) Copyright © 1995-2007 Jörg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
0,0,0  0) 'MITSUMI ' 'CD-ROM SR243T   ' 'L01H' Removable CD-ROM
0,1,0  1) *
0,2,0  2) *
0,3,0  3) *
0,4,0  4) *
0,5,0  5) *
0,6,0  6) *
0,7,0  7) *

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.