[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Kopiera system från en disk till en annan



Daniel Löfquist wrote:
Så här ligger det till...
Jag har för närvarande min root-partition / på en partition på en disk.
Nu vill jag göra en kopia av denna partition fast den ska kopieras över
till en partition på en annan disk och den nya partitionen är inte exakt
lika stor som den gamla (den är lite större). Hur gör jag detta på bästa
möjliga vis? Jag vill alltså kopiera hela systemet (förrutom /home som
finns på en annan partition) från en partition till en annan och sedan
kunna byta diskarna och starta upp maskinen från den nya disken med
kopian på.
Jag hoppas att det där var tydligt nog :-P


Det skulle kunne gøres med dd. Noget i denne retning: dd if=/dev/hd(old) of=/dev/hd(new) dd er en block-kopiering, se 'man dd' eller 'dd --help'.

'cp -pr old new' kan måske også bruges, men det bedste er nok at bruge tar, for at sikre en præcis kopiering.

Uanset metode vil det være nødvendigt at justere fstab og geninstallere lilo eller grub. Kan gøres fra old med mount new og chroot new.

Du bør også have Knoppix (eller lignende), hvis der ikke kan bootes efter operationen.

I disse to links findes tips til løsning:
copying/cloning root partition
http://lists.debian.org/debian-user/2001/11/msg00830.html
Migration of a Linux installation from a old to a new bigger disk.
http://crashrecovery.org/CrashRecoveryKit/iso/2.4.24/HOWTO.resize2fs.html



--
Med venlig hilsen

Jørgen Heesche
mailto:sslug@sslug
Registered Linux User #401007


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-04-01, 02:02 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *