LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-21-2008, 06:16 PM   #1
linuxqueric
Member
 
Registered: Apr 2007
Posts: 41

Rep: Reputation: 15
use dd to make bootable disc


have a W95 HDD that I've placed in an external USB HDD enclosure that I want to make a bootable DVD copy of.

fdisk -l shows these devices:

<snip>
Partition table entries are not in disk order

Disk /dev/sdb: 2111 MB, 2111864832 bytes
64 heads, 63 sectors/track, 1023 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1022 2060320+ 6 FAT16

I tried this command:


eric@lenovo-1:~/Desktop$ sudo dd /dev/sdb1 Moms_HDD


Which generated this error message:


dd: unrecognized operand `/dev/sdb1'
Try `dd --help' for more information.

So I have two questions:
1. What should my dd command be?

2. If I then burn the contents of this folder (Moms_HDD) onto a DVD, will I have a bootable DVD that will run that old system?

Thanks.
EB
 
Old 07-21-2008, 07:20 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Well first of all, dd isn't going to give you a folder full of files, it will give you one large image file. Putting that back onto another HDD would give you a bootable clone of that drive, but it isn't an ISO image so you can't directly burn it to a disc. More importantly, even if you could, Windows can't run that way; it needs to be installed onto the drive in order to function.

As for the dd command, you need to give it at least the input and output parameters for it to function, "if" and "of" respectively. The correct command would be:

Code:
dd if=/dev/sdb1 of=./MomHDD.img
 
Old 07-21-2008, 07:53 PM   #3
linuxqueric
Member
 
Registered: Apr 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Duh! That's why I'm not a programmer--little things like if= and of=.

OK--so it won't make a bootable disk. But could I copy it to a disk like I might any other file and then when I want to run it, copy it from the disk to a hard drive partition?

Thanks.
 
Old 07-21-2008, 09:29 PM   #4
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Yes, you could store the created image on a DVD-R or external drive, and then write it back to the HDD to restore it.

You might want to look into something like PartImage which is a tool designed to save and restore individual partitions for backup purposes. It is more robust than just using dd, as you can do things like image compression and splitting (not to say you can't do that with dd, but you would need to do it all manually).
 
Old 07-22-2008, 04:55 PM   #5
linuxqueric
Member
 
Registered: Apr 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks, MS3FGX.
This should get me on the right road.

EB
 
  


Reply

Tags
backup, bootable, dd, windows


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
Can't make a bootable mandriva disc from ISO Snump Mandriva 6 12-16-2006 06:46 AM
Bootable Disc Messages siaz4t Linux - Newbie 0 05-26-2006 08:20 AM
bootable floppy disc. akihandyman Linux - Hardware 4 02-19-2005 07:53 PM
Disc not bootable florinel Linux - General 14 08-23-2003 02:12 AM
Bootable live disc ?? Locksmiff Slackware 3 05-14-2002 12:19 PM


All times are GMT -5. The time now is 07:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration