Clan x86

General Forums => General Discussion => Topic started by: Hdx on April 20, 2006, 09:30:26 pm

Title: Disc Imaging
Post by: Hdx on April 20, 2006, 09:30:26 pm
Ok, I need a program that will copy a exact disc from one to another.
In linux.
Simmilar to Nortan Ghost, but for linux.
When I say disc I mean HD not CD.
I need to copy the contents of my 160GB to my 250GB and then zero my 160GB cuz i'm adding another 300GB HDD.
the 160GB is my boot disc, so ya, it needs to copy everything exactly.
Any suggestions???
~-~(HDX)~-~
Title: Re: Disc Imaging
Post by: Joe on April 20, 2006, 09:36:02 pm
gnomebaker (http://gnomebaker.sourceforge.net/)

sudo apt-get install gnomebaker
Title: Re: Disc Imaging
Post by: Hdx on April 20, 2006, 09:46:31 pm
I said for Hard Drives, not CDs/DVDs!
Unless that does Hard Drives to.
If so tell me how plz.
~-~(HDX)~-~
Title: Re: Disc Imaging
Post by: Joe on April 20, 2006, 09:47:52 pm
haha oops
Title: Re: Disc Imaging
Post by: Ergot on April 21, 2006, 02:37:16 am
try dd ?
dd if=/dev/hda1 of=/dev/hdb1

When I upgraded my harddrive, I just made a partition for Linux and cp -or (I think that right) everything.
Title: Re: Disc Imaging
Post by: MyndFyre on April 21, 2006, 03:20:27 am
try dd ?
dd if=/dev/hda1 of=/dev/hdb1

When I upgraded my harddrive, I just made a partition for Linux and cp -or (I think that right) everything.

I successfully transferred a 4-partition 120gb hard drive onto a 400gb hard drive with this.

[edit] include switches:
bs=1M --progress
[/edit]
Title: Re: Disc Imaging
Post by: Quik on April 21, 2006, 03:22:47 am
try dd ?
dd if=/dev/hda1 of=/dev/hdb1

When I upgraded my harddrive, I just made a partition for Linux and cp -or (I think that right) everything.

I would be very weary of using this command. Do some research (http://www.codecoffee.com/tipsforlinux/articles/036.html).
Title: Re: Disc Imaging
Post by: MyndFyre on April 21, 2006, 03:28:49 am
try dd ?
dd if=/dev/hda1 of=/dev/hdb1

When I upgraded my harddrive, I just made a partition for Linux and cp -or (I think that right) everything.

I would be very weary of using this command. Do some research (http://www.codecoffee.com/tipsforlinux/articles/036.html).

I don't see anything that would be cause for waryness.  What do you mean?

I've used dd in Linux and Windows both, never had a problem.
Title: Re: Disc Imaging
Post by: Ergot on April 21, 2006, 03:31:55 am
What would be the proper command? Can you do whole harddrives at a time or do you need to do the separate partitions individually?
Title: Re: Disc Imaging
Post by: Sidoh on April 21, 2006, 03:33:45 am
Maybe he's talking about this?
Quote
Some people believe dd means ``Destroy Disk'' or ``Delete Data'' because if it is misused, a partition or output file can be trashed very quickly. Since dd is the tool used to write disk headers, boot records, and similar system data areas, misuse of dd has probably trashed many hard disks and file systems.
Title: Re: Disc Imaging
Post by: MyndFyre on April 21, 2006, 03:36:14 am
What would be the proper command? Can you do whole harddrives at a time or do you need to do the separate partitions individually?

In Linux, it would be:

dd bs=1M if=/dev/hda of=/dev/hdb --progress
That copies hard disk A to hard disk B including partition data.

Windows was something like:
dd bs=1M if=\\?\Device\Harddisk0\Partition0 of=\\?\Device\Harddisk1\Partition0 --progress

The Windows \\?\Device namespace (the \\Global?\ namespace in Win2000)'s Partition0 of Harddisk objects is the actual device transparent of the filesystem.

Maybe he's talking about this?
Quote
Some people believe dd means ``Destroy Disk'' or ``Delete Data'' because if it is misused, a partition or output file can be trashed very quickly. Since dd is the tool used to write disk headers, boot records, and similar system data areas, misuse of dd has probably trashed many hard disks and file systems.

Oh, I see.  Morons used it and it broke, therefore it's an evil destructive command.  Much like the "restore" command of DOS.  Morons should be required to have a license to breathe.  I would revoke it if I was king.
Title: Re: Disc Imaging
Post by: Ergot on April 21, 2006, 03:37:29 am
Why BS=1M and I'm guessing --progress means verbosely ?
Title: Re: Disc Imaging
Post by: Hdx on April 23, 2006, 01:59:44 am
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
Title: Re: Disc Imaging
Post by: Ergot on April 23, 2006, 02:14:27 am
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
I guess... weird way to do it though :\.
Title: Re: Disc Imaging
Post by: deadly7 on April 23, 2006, 02:16:42 am
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
cfdisk
Title: Re: Disc Imaging
Post by: Hdx on April 23, 2006, 02:20:44 am
I guess... weird way to do it though :\.
Yell at joe
~-~(HDX)~-~
Title: Re: Disc Imaging
Post by: Newby on April 23, 2006, 11:49:31 pm
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
cfdisk

I love you.
Title: Re: Disc Imaging
Post by: Quik on April 23, 2006, 11:56:02 pm
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
cfdisk

I love you.

Hahaha, that's so bad.
Title: Re: Disc Imaging
Post by: MyndFyre on April 24, 2006, 01:18:54 am
Why BS=1M and I'm guessing --progress means verbosely ?

Adding --progress updates stdio with information about how far the operation has come.

BS=1M is a pretty good size for block buffer copy size.  I think dd defaults to 1 kb block sizes, which would result in 1024 more reads at a time per megabyte of disk space, whereas larger block sizes tend to strain your memory manager.
Title: Re: Disc Imaging
Post by: deadly7 on April 26, 2006, 12:48:56 am
Code: [Select]
sudo cat /dev/hda > /dev/hdbWorked, 0.o
Fun, Thanks, anyone anyone know a GUI for formatting/partitionsing a disc? I know fdisk, but any utilities with a GUI?
~-~(HDX)~-~
cfdisk

I love you.
Was I horribly wrong?
Edit: I'm horribly wrong. Whatever.
I read that as "disk" which would mean "hard disk."
Title: Re: Disc Imaging
Post by: Newby on April 26, 2006, 08:55:20 am
:D!