Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stage4 ervaringen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Fri Dec 21, 2007 4:07 am    Post subject: Stage4 ervaringen Reply with quote

Hoi,

Ik ben nu heel tevreden over mijn Gentoo installatie, maar ik wil mijn hardeschijf herpartioneren en daarom had ik gedacht of een stage4 tarball te maken en deze achteraf opnieuw terug te zetten. Nu heb ik daar nog geen ervaring mee en wou vragen of iemand dit al wel gelukt is of niet gelukt is. Welk script heb je gebruikt? ...?
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
merlijn
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 161
Location: Den Haag, Holland

PostPosted: Sun Dec 23, 2007 6:14 pm    Post subject: Reply with quote

Ik ben niet zo heel bekend met wat een stage4 exact inhoud, maar als je vrije ruimte hebt om al je dingen te backuppen is het in principe een fluitje van een cent. Het is handig om van te voren even te bedenken hoe je nieuwe indeling eruit gaat zien. Wat ik zou doen is een tijdelijke schijf (of usb disk) in je pc hangen en een livecd booten, je oude / mounten onder /mnt/gentoo/ en alle onderliggende partitie ook daaronder mounten, en de backup schijf mounten als /mnt/tmp/. Nu voor elke nieuwe partitie maak je een tar op de backup schijf, als voorbeeldje voor als je /usr en /home op aparte partities wilt hebben naast je /:

Code:
cd /mnt/gentoo/usr/
tar zcvf /mnt/tmp/usr.tar.gz *
cd /mnt/gentoo/home/
tar zcvf /mnt/tmp/home.tar.gz *
cd /mnt/gentoo/
rm -rf home/*
rm -rf usr/*
tar zcvf /mnt/tmp/root.tar.gz *


Nu kan je je oude schijf unmounten, herpartitioneren, mkfs draaien en remouten en vervolgens weer de hele troep terug zetten:

Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda5 /mnt/gentoo/home
mount /dev/sda6 /mnt/gentoo/usr
cd /mnt/tmp/
tar zxvf -C /mnt/gentoo/ root.tar.gz
tar zxvf -C /mnt/gentoo/usr/ usr.tar.gz
tar zxvf -C /mnt/gentoo/home/ home.tar.gz


nu even /etc/fstab aanpassen en je bent weer klaar voor actie, denk er alleen nog aan dat je ook je /boot/ directory overzet als je die hebt.

Succes.
_________________
Gigabyte G33-DS3R, E6850, 4gb ddr2-800, 8800GT, Acer AL2623W - amd64
MacBookPro 2.4ghz, 2gb ddr2-667 - ~x86

Code:
ROOT="/mnt/coffeecup/" USE="sugar extra-sugar milk" emerge --update --deep --verbose --oneshot coffee
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Sun Dec 23, 2007 9:07 pm    Post subject: Reply with quote

Ik gebruik dit script.
_________________
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
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Mon Dec 24, 2007 6:00 am    Post subject: Reply with quote

nixnut wrote:
Ik gebruik dit script.

Dat script heb ik inderdaad ook gevonden.
Als je die tarball gemaakt hebt, kan je die gewoon uitpakken in de lege root en alles werkt weer gewoon?
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
Taipou
n00b
n00b


Joined: 24 Dec 2007
Posts: 5

PostPosted: Mon Dec 24, 2007 11:45 pm    Post subject: Reply with quote

Interessant onderwerp. Zal er zelf ook eens naar kijken. Lijkt me handig om een stage4 backup te maken na een verse installatie :)

Aries-Belgium wrote:
nixnut wrote:
Ik gebruik dit script.

Dat script heb ik inderdaad ook gevonden.
Als je die tarball gemaakt hebt, kan je die gewoon uitpakken in de lege root en alles werkt weer gewoon?

Ik zou me kunnen voorstellen dat de onderstaande link je een stuk op weg helpt.

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

Hierin wordt het restore proces beschreven. Succes!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch 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