LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2011, 01:54 PM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
How to create iso image of DVD using dd command ?


hi,
I am using Red Hat Enterprise 5 Linux. I want to create iso image of my Linux DVD.

The dvd drive which i am using is DVD writer.Normally for cd rom drive the command is

Code:
# dd if=/dev/cdrom of=/tmp/cdimg1.iso
I check from this site
http://www.cyberciti.biz/tips/linux-...iso-image.html

In case of DVD writer please guide me what should I write instead of cdrom as i write in the above command ? You can see the attachment with my post for batter reply of my problem.

2- My 2nd question is as write in the above web site that if the cd rom is mounted then unmount it 1st .So we unmount the cd or dvd how the drive will create the iso image of the my DVD ?

thanks,
gardenair
Attached Thumbnails
Click image for larger version

Name:	DVD.png
Views:	17
Size:	199.0 KB
ID:	8245  
 
Old 10-25-2011, 02:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ad 1)
You find the device node for your DVD writer; check your logs
and/or the output of 'dmesg'.

Ad 2)
Because Linux has access to the raw device. That's why dd is
using the device node in the first place, rather than a mountpoint.
 
0 members found this post helpful.
Old 10-25-2011, 02:02 PM   #3
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
Only difference in the command is dd if=/dev/dvd of=dvd.iso. If it is a cdrom you are trying to make the .iso of you have the correct command. You need to know where the dvd drive is i in the system.

Last edited by AuroraZero; 10-25-2011 at 02:04 PM. Reason: Made a poor choice of wording
 
1 members found this post helpful.
Old 10-25-2011, 02:18 PM   #4
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks for the replies. well "Tinkster" as you mentioned that

Code:
Ad 1)
You find the device node for your DVD writer; check your logs
and/or the output of 'dmesg'.
Can I say that "Device node" is is the name of my dvd writer which linux using using.These can be check by logs and 'dmesg' ?

Code:
Ad 2) 
Because Linux has access to the raw device. That's why dd is
using the device node in the first place, rather than a mountpoint
I can not understand by raw device? Should be thankfull if u you explain it in more detail.

thanks
gardenair
 
Old 10-25-2011, 04:46 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by gardenair View Post
thanks for the replies. well "Tinkster" as you mentioned that

Code:
Ad 1)
You find the device node for your DVD writer; check your logs
and/or the output of 'dmesg'.
Can I say that "Device node" is is the name of my dvd writer which linux using using.These can be check by logs and 'dmesg' ?
I shall try to elaborate by example:
Code:
dmesg | grep -C5 DVD
Initializing USB Mass Storage driver...
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
usbcore: registered new interface driver usb-storage
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
USB Mass Storage support registered.
ata2.00: ATAPI: MATSHITADVD-RAM UJ862A, SB15, max UDMA/33
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
ata2.00: configured for UDMA/33
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
--
sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
usbcore: registered new interface driver ums-usbat
scsi 1:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ862A   SB15 PQ: 0 ANSI: 5
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
 sda:sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
usb 1-5: New USB device found, idVendor=04b3, idProduct=4485
usb 1-5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
serio: i8042 KBD port at 0x60,0x64 irq 1
On my machine the bit in RED is the device node I'd have
to use instead of /dev/cdrom ... so, /dev/sr0 (of course, udev for you may
create a symlink to e.g. /dev/dvdwriter ...



Quote:
Originally Posted by gardenair View Post
Code:
Ad 2) 
Because Linux has access to the raw device. That's why dd is
using the device node in the first place, rather than a mountpoint
I can not understand by raw device? Should be thankfull if u you explain it in more detail.

thanks
gardenair
Raw device, as opposed to e.g. a file-system. Looking at a hard-drive
linux will give you (in most cases) 2 (or more) device nodes, e.g.
/dev/sda
and
/dev/sda1


The first being the HDD in its entirety. The second being the first
partition. Those are "raw devices", in other words, looking at those
in a hex editor won't give you very useful information. To make use
of the content in a human-parsable form you want to mount the device
node for a partition using the file-system that is on it.

If that doesn't do it for you I suggest you download e.g. the RUTE
guide to Linux.



Cheers,
Tink
 
Old 10-26-2011, 01:48 AM   #6
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks a lot for your reply. Well following is the out put of

Code:
bash-3.2# dmesg | grep -C5 DVD
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide1: BM-DMA at 0x1058-0x105f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide1...
hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
--
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1319522918.466:2): selinux=0 auid=4294967295 ses=4294967295
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
pcnet32.c:v1.32 18.Mar.2006 tsbogend@alpha.franken.de
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 18 (level, low) -> IRQ 169
bash-3.2#
Here hdc is show
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)

I am unable to say that which is my device node ?
thank for your guidance,

gardenair

Last edited by Tinkster; 10-26-2011 at 02:03 AM.
 
Old 10-26-2011, 02:05 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by gardenair View Post
thanks a lot for your reply. Well following is the out put of

Code:
bash-3.2# dmesg | grep -C5 DVD
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide1: BM-DMA at 0x1058-0x105f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide1...
hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
--
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1319522918.466:2): selinux=0 auid=4294967295 ses=4294967295
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
pcnet32.c:v1.32 18.Mar.2006 tsbogend@alpha.franken.de
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 18 (level, low) -> IRQ 169
bash-3.2#
Here hdc is show
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)

I am unable to say that which is my device node ?
thank for your guidance,

gardenair

/dev/hdc it is indeed. And please don't use PHP tags unless you
post PHP code. The colour highlighting is misleading with random
text or other languages. Use plain CODE tags instead.
 
Old 10-27-2011, 03:02 AM   #8
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks a lot "Tinkster" for your kind guidance.Well i easily make an iso file from cd & dvd.The steps which i follow is

Quote:
bash-3.2# umount /dev/cdrom
bash-3.2# dd if=/dev/hdc of=cd.iso
365060+0 records in
365060+0 records out
186910720 bytes (187 MB) copied, 32.2329 seconds, 5.8 MB/s
bash-3.2#

1- Here i want to discuss that by "365060+0 records in" & "365060+0 records out".

2- If there is a data in my home partition & i want to make its iso file then in that situation the hdc will not use bcz i am using my hard disk.

suppose i have only one partition i.e hda the syntex will be

bash-3.2# dd if=/device_name/partition_name/folder name of=/home folder/iso_file name
Example
bash-3.2# dd if=/dev/hda/my_data of=mydata.iso

thanks in advance,
gardenair
 
Old 10-27-2011, 03:15 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by gardenair View Post
hi,
I am using Red Hat Enterprise 5 Linux. I want to create iso image of my Linux DVD.

The dvd drive which i am using is DVD writer.Normally for cd rom drive the command is

Code:
# dd if=/dev/cdrom of=/tmp/cdimg1.iso
I check from this site
http://www.cyberciti.biz/tips/linux-...iso-image.html

In case of DVD writer please guide me what should I write instead of cdrom as i write in the above command ? You can see the attachment with my post for batter reply of my problem.

2- My 2nd question is as write in the above web site that if the cd rom is mounted then unmount it 1st .So we unmount the cd or dvd how the drive will create the iso image of the my DVD ?

thanks,
gardenair
You should have checked AuroraZero reply as well
In the attachment it is clearly visible that the path you have given is wrong for dev/cdrom

it should have been
/dev/cdrom
 
0 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
using an USB instead of a DVD to create an ISO image joewill Linux - Newbie 15 05-31-2011 12:39 PM
BIOS Doesn't Boot From DVD ROM, ISO Image On DVD. Novatian Linux - Newbie 7 08-20-2008 04:10 PM
How do you merge 4 CD ISO images into one DVD ISO image? nsydenham Linux - Software 6 01-15-2007 10:49 AM
Burning ISO image (DVD+R, external DVD writer) swan2925 Linux - Software 6 06-02-2005 10:49 AM
Splitting VOB to create DVD ISO image jerryk Linux - General 1 05-17-2005 01:31 AM


All times are GMT -5. The time now is 10:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration