Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
quickly copy partition tables?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
deque
n00b
n00b


Joined: 28 Apr 2003
Posts: 53

PostPosted: Thu Jun 17, 2004 5:13 pm    Post subject: quickly copy partition tables? Reply with quote

I am working on doing many gentoo installs to similar machines with identical hard disks thgat I want to RAID together using software RAID. Is there a quick and easy way to copy partition tables from one drive to another so I don't have to go in and manually define them 24 times? thanks!
_________________
-Regards-

-Deque-
Back to top
View user's profile Send private message
kiezpro
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 126
Location: Yes

PostPosted: Thu Jun 17, 2004 5:30 pm    Post subject: Reply with quote

I haven't used it myself yet, but you may want to take a look at sfdisk - it seems like you can automate partitioning with it quite easily. I haven't installed it explicitly, yet it's on my system, so I guess it's default for any gentoo box.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7301
Location: Groton, Massachusetts USA

PostPosted: Fri Jun 18, 2004 1:12 am    Post subject: Reply with quote

You could use dd to create an exact copy of the MBR (which includes the partition table) from one disk to another.
Code:
# dd if=/dev/hda of=/dev/hdb bs=512 count=1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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