"Ghosting" Linux

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Postby A-Wing » Mon Jul 18, 2005 12:14 pm

nelz wrote:
A-Wing wrote:You ever tried to cp a /dev directory? or any virtual sockets?


cp -x will fix that, copying it if it is static and skipping it if it is handled dynamically by devfs or udev.


True, I'm thinking scp for some reason, which is a pain in the arse to copy stuff with dev directories in without taring first, I'm doing far to much ssh work lately.
Although I don't believe scp will copy the bootsector so you would need to reinstall grub/lilo
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

Postby Nobber » Mon Jul 18, 2005 1:14 pm

cp is also good for copying entire partitions. Many's the time I've done a

1. cp /dev/hdaX /somewhere/on/2nd/hdd/hdaX.img
2. repartition /dev/hda
3. mount hdaX.img /source -o loop
4. mount /dev/hdaY /target
5. cp -a /source/* /target

just for a laugh (or even seriously).
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

GNU OpenSource Ghosting Cloning and Imaging with Linux

Postby CoolAJ86 » Mon Aug 01, 2005 11:17 am

In the gentoo wiki there is a little repository of such guides.

http://gentoo-wiki.com/OpenSource_Ghost ... ing_Guides
User avatar
CoolAJ86
 
Posts: 1
Joined: Mon Aug 01, 2005 11:15 am

Previous

Return to Help!

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron