Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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 01:04 PM.
Reason: Made a poor choice of wording
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
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.