Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Image from one HD to another?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
midnightlightning
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2004
Posts: 79

PostPosted: Fri May 19, 2006 5:24 pm    Post subject: Image from one HD to another? Reply with quote

I've been trying to get my 170Mhz Sparc 5 to get installed with Gentoo, but it's been causing me a bundle of problems (as several websites said it would). The resolution for most was to build Linux on another box (luckily I have an 85Mhz box as well) and simply move the hard drive. I now have one drive set up just the way I want (installed Gentoo and emerged all packages I'll be wanting). But since I want both these Sparc boxes to be running Gentoo, I'd rather not have to go through that whole process again to set up another hard drive.

Which is why I'm here. Since each box has sleds for two hard drives, is there a simple command to 'image' or 'clone' the contents of 'sda' to 'sdb'? From Gentoo or the "ok" prompt?

Thanks!
_________________
"Any sufficiently advanced technology is indistinguisable from magic." -- Arthur C. Clarke
Back to top
View user's profile Send private message
tiketti
n00b
n00b


Joined: 29 Apr 2003
Posts: 32
Location: Finland

PostPosted: Fri May 19, 2006 6:58 pm    Post subject: Reply with quote

Create stage4 and restore it to another HD with similar partition scheme?

http://blinkeye.ch/mediawiki/index.php/GNU/Linux_System_Backup_Script_%28stage4%29

After moving 2nd HD back to original host, boot up with live cd, chroot and do the silo-stuff to make it bootable.

Or just copy over and do the silo with boot cd and chrooted enviroment

http://www.linuxquestions.org/questions/showthread.php?t=274076
_________________
Gentoo on x86, sparc, alpha, amd64, embedded
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Fri May 19, 2006 8:36 pm    Post subject: Reply with quote

if the 2 partitions are the exact same size....
use dd
dd if=/dev/sda1 of=/dev/sdb1
http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.html

make sure to do a quick time test and change the block size to its optimal rate if doing something large
Back to top
View user's profile Send private message
midnightlightning
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2004
Posts: 79

PostPosted: Mon May 22, 2006 7:08 pm    Post subject: Reply with quote

Thanks for the suggestions; I was able to use just the 'cp -dprx /path-from /path-to' method to get the other system booted off of a cloned disk. Now, to see if it will stay booted, or if I just got lucky...
_________________
"Any sufficiently advanced technology is indistinguisable from magic." -- Arthur C. Clarke
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Mon May 22, 2006 7:41 pm    Post subject: Reply with quote

there are benefits to both methods, the easies to understand is cp -a (archive)
For mounted volumes (I've only read) the idea is to use cpio
for an exact clone, dd is the best, fasted, and kicks the lama's ass (IMHO)
Back to top
View user's profile Send private message
Toady
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 161
Location: South Wales, UK

PostPosted: Tue May 23, 2006 10:56 am    Post subject: Reply with quote

I tend to use:

find . -xdev | cpio -pm /new/path

that will find everything on the current device and copy it to the mount point you ask it to.
you would probably have to chroot to the new disk and sort out silo afterwards tho.
_________________
Toady

Gentoo Laptop
3.1.10-gentoo-r1, Intel Core 2 Duo (32bit)
Gnome on the desk, Intel in the box, on-board everything, but it all works!
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Tue May 23, 2006 1:48 pm    Post subject: Reply with quote

Toady wrote:
...you would probably have to chroot to the new disk and sort out silo afterwards tho.

A serious question: What is silo?
Back to top
View user's profile Send private message
tiketti
n00b
n00b


Joined: 29 Apr 2003
Posts: 32
Location: Finland

PostPosted: Tue May 23, 2006 2:13 pm    Post subject: Reply with quote

coolsnowmen wrote:
A serious question: What is silo?


Sparc Improved boot LOader.
_________________
Gentoo on x86, sparc, alpha, amd64, embedded
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum