View previous topic :: View next topic |
Author |
Message |
pantoffel n00b
Joined: 30 Jan 2003 Posts: 19
|
Posted: Sat Nov 04, 2006 6:57 pm Post subject: gentoo stage 4 |
|
|
Ok here goes. I want stage 4 to be automated.
What I got:
- my partition backed up in a tarrball
What I would like to be automated
- a live cd including a script that boots in init,
- creating partition table
- mkfs the partition
- restore the tarball
- fix/restore mbr
- reboot
Is this already possible? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
|
Back to top |
|
|
PMcCauley Apprentice
Joined: 14 Mar 2006 Posts: 283 Location: Alberta, Canada
|
Posted: Mon Nov 06, 2006 8:32 am Post subject: |
|
|
Hello Pantoffel, you have to be careful when automating such options but basically you would create a script to do these operations and have the livecd set to execute that. For the partition table just copy the first 512 bytes of the drive I this the partition table is 446-512 (I was trying to confirm this and apparently could be 448-512). Then you would mkfs, untar and reboot.
to get mbr(includes partition table): dd if=/dev/hda of=mbr bs=512 count=1
to set mbr(includes partition table): dd if=mbr of=/dev/hda bs=512 count=1
Patrick |
|
Back to top |
|
|
|