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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-30-2007, 03:04 PM
|
#1
|
Member
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425
Rep: 
|
dd does not work with read-only files
I put an audio CD in a CD-ROM (/dev/hdc), and a writable CD in a CD burner (/dev/hdb) in my computer.
k3b copies the audio CD onto the blank writable CD just fine.
When I try to use dd, however, as in (from terminal)
dd if=/dev/hdc of=/dev/hdb
dd refuses to work on the grounds that the "if" is "read only."
Is it my breath?
|
|
|
09-30-2007, 03:06 PM
|
#2
|
Member
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419
Rep:
|
see if dmesg tells you anything
|
|
|
09-30-2007, 07:37 PM
|
#3
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
I don't think dd will do that for you unless you pipe the output to the blank disk with a CD/DVD burning application like cdrecord. Although I've never done it, I'm only assuming this would be the route you would have to take. Normally you would make an ISO of the disk with dd and burn the ISO CD image file to a blank disk with burning applications.
|
|
|
09-30-2007, 08:22 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by moxieman99
I put an audio CD in a CD-ROM (/dev/hdc), and a writable CD in a CD burner (/dev/hdb) in my computer.
k3b copies the audio CD onto the blank writable CD just fine.
When I try to use dd, however, as in (from terminal)
dd if=/dev/hdc of=/dev/hdb
dd refuses to work on the grounds that the "if" is "read only."
Is it my breath?
|
What user are you when you do the dd, do you have the
permission to access the raw device?
Cheers,
Tink
|
|
|
10-01-2007, 11:05 AM
|
#5
|
Member
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425
Original Poster
Rep: 
|
Quote:
Originally Posted by Tinkster
What user are you when you do the dd, do you have the
permission to access the raw device?
Cheers,
Tink
|
---------
Tink,
I'm doing it as root. Permissions are not a problem. Remember, k3b copies it just fine and then burns it.
Also, I'll see what dmesg says and post it later. Basically, I'm putzing around with dd and this limitation ("read-only") threw me. From what I read, I didn't think that that would be a problem.
|
|
|
10-01-2007, 11:59 AM
|
#6
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
I'm pretty sure you can't simply write to a CDRW... I would imagine burning a CD is not a normal block device write operation. You could write to an intermediate file on your hard disk, or large flash drive, and then burn that using k3b or similar.
|
|
|
All times are GMT -5. The time now is 07:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|