| View previous topic :: View next topic |
| Author |
Message |
deque n00b


Joined: 28 Apr 2003 Posts: 53
|
Posted: Thu Jun 17, 2004 5:13 pm Post subject: quickly copy partition tables? |
|
|
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 |
|
 |
kiezpro Tux's lil' helper


Joined: 13 May 2004 Posts: 126 Location: Yes
|
Posted: Thu Jun 17, 2004 5:30 pm Post subject: |
|
|
| 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 |
|
 |
cyrillic Watchman


Joined: 19 Feb 2003 Posts: 7301 Location: Groton, Massachusetts USA
|
Posted: Fri Jun 18, 2004 1:12 am Post subject: |
|
|
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 |
|
 |
|