Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo stage 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pantoffel
n00b
n00b


Joined: 30 Jan 2003
Posts: 19

PostPosted: Sat Nov 04, 2006 6:57 pm    Post subject: gentoo stage 4 Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Nov 04, 2006 7:06 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Not about getting gentoo installed in a supported way.

See:
https://forums.gentoo.org/viewtopic-t-312817-highlight-stage4.html
http://gentoo-wiki.com/HOWTO_Gentoo_LiveCD_and_LiveUSB
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Mon Nov 06, 2006 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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