-
Senior Member
registered user
Well, I tried Ghost because normally this is a no fuss operation and make
booting copies of windows systems so I had hoped it would work for Linux too. It takes 3 clicks so clone my winxp to another disk so I find it easy to use compared to commandline tools.
But as far as I understand, dd should be easy:
like
dd disk1 disk2
So I cross my fingers that no funky stuff will happens as lilo and the
like is not my cup of tea.
-
Senior Member
registered user
windowism
Yeah it should work fine.
dd doesn't need to know anything about the filesystem, it could be NTFS for all it cares!!
Just as a general hint though you'll find Linux a lot easier when you use native tools on it rsather than windows ones.
there are a whole load of 'utility' applications in the windows world that simply don't need to exist in linux becuase its native. Quite often ex-windows users get bogged down in trying to do something the familair way rather than the native way.
-
Senior Member
registered user
Indeed. In windows I rarly use the Shell, but on Linux its my
best friend.
The only reason I tried ghost was because the docs stated in could
clone ext3 systems, but apprently only in their dreams. 
I have been using computers for more than 20 years, so I didn't
expect using Linux would be the same as WinXp, but I really like knoppix as its not as nerdish as it used to be. I only had to read a little bit of docs
to connect to the server and get printers to work.
All in all a very impressive piece of software to get for free. I even gave my mom a knoppix and she still thinks its an XP
The only trap I seem to jump all the time is forgetting to umount
my cdrom drive and get that ehh? feeling when nothing happens when I
press eject..
-
Senior Member
registered user
gowator::
Since you have used dd, can you tell me how long time cloning
20gb disk will take ?
There is no progress indication at all so I wonder.
I booted on my knop cd after learning that you don't umount your boot drive
and just said
sudo dd if=/dev/hda of=/dev/hdb
None of the hds seemed to be mounted so I cross my finders.
I can hear the hds working so something is going on, I just hope
I didn't tell it to copy it byte by byte as that would properly take a very
long time.
-
Senior Member
registered user
Don't worry
It will take a while, perhaps even a couple of hours depending on the blocksize and stuff.
Its normal for them not to be mounted, when you mount you actually mount a filesystem, but what youre doing is a level belwo the filesystem, its just a bit by bit copy.
-
Senior Member
registered user
It worked!!! I have booted it right now 
Thanks JohnB and gowater and others for being so helpful.
With 1m as bloksize, it took 2.8h to copy 20 gb.
I booted on the knoppix cd as I had no idea how I could
avoid having the primary drive mounted otherwise.
Would it have worked if the source drive was mounted while dd'ing it?
Thanks.
Best Regards from Denmark.
-
Senior Member
registered user
Source
Theoretcially YES!
But personally I think you did it the safest way! (I would have probably done the same)
It might have been faster not from the boot Cd since more memory means it writes more at once but the important thing was it worked !
p.s. it was John B who posted it, not me!
however, Ill try and find some good links for you on native linux tools.
The O'Reilly powertools book (linux or UNIX) is great for some stuff like this! Her's a sample from my bookmarks becuaase I never remember the exact syntax
http://www.linuxdevcenter.com/pub/a/...lpt/18_16.html
Hmm, I guess I wasn't so far off with the 2 hours then.
It might not be fast but its reliable!
-
Senior Member
registered user
Re: Source

Originally Posted by
gowator
Theoretcially YES!
But personally I think you did it the safest way! (I would have probably done the same)
dd:ing a mounted filesystem will result in the copy also being in the mounted state, which means it might be inconsistent and it will be "dirty" the next time it is mounted. Usually things can still be fixed automatically but there are no guarantees. This is less of a problem with logging filesystems like ext3 or reiserfs, whenever you are dd:ing an ext2 filesystem it is important that it is not mounted.
-
Senior Member
registered user
Well, the system has 1gb so the boot from cd should not steal that much.
There appeared to be a huge gain setting the bloksize to 1m compared
to the default. I tried to run for 10 mins with both settings
and the 1M blocksize had almost copied twice the amount of the default
setting. Setting to higher blocksize didn't give much more for unknown reasons.
Thanks for the great link! (bookmarked)
>p.s. it was John B who posted it, not me!
I know. I said thanks to him too. You have both been very
helpfull.
Yes, your guess of 2h was very good. 
Actually, I would not call it
slow as it copies ALL of the 20gb disk in less than 3 hours.
Last time I copied the same(!) disk using xxcopy from a dos
boot it spend +3 hours and that was only the files not byte to byte copy.
Now I just so happy as I have a cloned system already setup for the
network, printers, kylix, compglibc, and tons of other setup stuff.
Thanks!!
-
Senior Member
registered user
thx
windos_no_thanks: I knew somewhere I'd just forgotten WHY.
I think its Ok so long as you mount it RO.
metavoid, that a good point. The FREESPACE is copied but by bit too.
You might want to look at the 'magic tar' too.
This has the advantage of only looking at used space and you can use the compress options too. It also gets round the live filesystem problem windos_.. brought up but it won't copy the MBR....
However you can copy the MBR explicitly after or even just remake it with lilo using a bootable Cd.
cpio is another option for this sort of thing!
Similar Threads
-
By hollex in forum Hardware & Booting
Replies: 2
Last Post: 07-07-2005, 11:45 AM
-
By bcalder in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 01-06-2005, 03:57 PM
-
By jasperlevink in forum Hardware & Booting
Replies: 2
Last Post: 09-22-2003, 10:59 PM
-
By jledger in forum Customising & Remastering
Replies: 0
Last Post: 04-02-2003, 05:58 AM
-
By Alex1 in forum General Support
Replies: 4
Last Post: 03-22-2003, 10:59 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell PowerEdge R730 8 Bay Server 64Gb 1x80Gb SSD 3x900Gb SAS 2x12c v4CPU Proxmox
$620.00

Dell PowerEdge R430 4-LFF / 2-SSD Server 2.30Ghz 24-Core 32GB RAM + 400GB SSDs
$648.95

Dell Poweredge R620 10x 2.5" bay with 256GB (16x16gb) DDR3, 2x E5-2690v2, H710
$349.99

Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM)
$299.95