LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 02-21-2011, 08:17 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Linux (any distro) HowTo: Clone disks via the command line with dd


A new la entry has been added:

Linux (any distro) HowTo: Clone disks via the command line with dd

Quote:
I know many people who post here on LQ may think that the GUI is the only way to clone a CD or DVD, but it isn't. If you happen to be running a dumb terminal, you can clone with dd.

This command not just allows you to clone CDs or DVDs, but also hard disks and USB flash drives, creating exact 1:1 copies of these disks. But be warned: When you clone one hard drive onto another, you erase the contents of one drive with the contents of another. You can also use dd to create an image file with the contents of a hard drive, CD, DVD, or USB flash drive for later cloning.
 
Old 02-21-2011, 09:44 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Sorry for the inconvenience regarding the duplicates; apparently my Chrome notebook froze and I ended up pressing "Post article" four times.
 
Old 02-21-2011, 09:47 PM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Nice. Hate when that happens.... well it doesn't happen to me, cause I don't use a laptop from google. LOL.... Speaking of which, how is that thing anyway? I am thinking about trying to get one.
 
Old 02-21-2011, 09:55 PM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
So far, I have experienced very few bugs, but it's not like I have none together. In particular, there's one bug where the screen resolution seems to constantly rise to a level so high that some themes fail to render...

However, no worries. I was able to create my own theme, and I was able to (via the Chrome Theme Creator) set the New Tab Page background to be repetitive so I don't have that problem.

Take a look:

https://lh5.googleusercontent.com/_7...221-190507.png

I also reported the bug.
 
Old 02-21-2011, 11:00 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ooo I like that. Is it worth getting?
 
Old 02-22-2011, 05:48 PM   #6
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Here is the theme's Chrome Web Store page:

https://chrome.google.com/webstore/d...eneei?hl=en-US
 
Old 02-22-2011, 06:15 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Apart from this discussion thread straying from it's intended purpose, in your text you listed "dd if=/mnt/cdbackup.iso of=/dev/cdrom" as a way to burn an ISO to CDROM. Did you actually test that command writing a valid CDFS to an empty CDROM? Didn't you get any errors? Could you read slash verify the result for real?
 
Old 02-22-2011, 09:59 PM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by unSpawn View Post
Apart from this discussion thread straying from it's intended purpose, in your text you listed "dd if=/mnt/cdbackup.iso of=/dev/cdrom" as a way to burn an ISO to CDROM. Did you actually test that command writing a valid CDFS to an empty CDROM? Didn't you get any errors? Could you read slash verify the result for real?
The command is provided that a CD is in the drive...
 
Old 02-23-2011, 06:37 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have you tested that? I doubt that this will work.
 
Old 02-23-2011, 07:24 PM   #10
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by TobiSGD View Post
Have you tested that? I doubt that this will work.
I have tried it with a CD in the drive, and it does work. First, with the CD mounted, you run 'fdisk -l' and then, when the device file for the CD or DVD drive is determined, you dd the image to it. It works for me, at least from an external CD ROM drive.
 
Old 02-23-2011, 09:44 PM   #11
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
And I didn't mention trying to dd "back" onto the CD it came from, I was referring to cloning one CD onto another via the use of an image so that you can copy the CD or DVD multiple times with just one CD or DVD drive.
 
Old 02-24-2011, 05:28 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Kenny_Strawn View Post
I have tried it with a CD in the drive, and it does work. First, with the CD mounted, you run 'fdisk -l' and then, when the device file for the CD or DVD drive is determined, you dd the image to it. It works for me, at least from an external CD ROM drive.
I tried it. fdisk -l doesn't show my DVD drive, and I can't remember that it ever did, regardless of inserted media.
dd-ing to my drive also doesn't work, it gives me this:
Code:
root@monster:/home/tobi# dd if=SimplyMEPIS-DVD-TEST_10.9.90_32.iso of=/dev/sr0
dd: opening `/dev/sr0': Read-only file system
I wonder how it worked for you.
 
Old 02-24-2011, 08:39 AM   #13
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Because that disk is already written and finalized. I did it with a re-writable (or blank recordable) CD or DVD, and that's how it worked.

edit: and also on Ubuntu, and only tested on an external USB CD-ROM drive.

Last edited by Kenny_Strawn; 02-24-2011 at 08:49 AM.
 
Old 02-24-2011, 09:20 AM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
No, I tried it with a blank CD, nothing written on it. May it be that it only works with rewritable media?

It would interest me to see your output of fdisk -l, I want to have a look in which way it mentions your CD-drive, because mine doesn't.
 
Old 02-25-2011, 09:34 AM   #15
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
I tried this with merely recordable media, and you're right. It doesn't work. However, this is with Arch, not Ubuntu. And sorry about 'fdisk -l'. I meant to say this:

Code:
ls /dev/disk/by-id | less
This will list *all* media, even optical media. And I did test it. I also, when using Ubuntu, only tested dd with DVDs, not CDs. And all my DVDs are rewritable, so that could be why it says "Read-only file system" when you try to dd to a recordable CD or DVD.
 
  


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
Linux (any distro) HowTo: Clone disks from the command line with dd Kenny_Strawn Linux - General 4 02-21-2011 05:11 PM
Determine Linux distro from command line? Rotwang Linux - General 1 01-05-2007 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 05:08 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