Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Festplatte kopieren
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Sun Mar 02, 2003 7:04 pm    Post subject: Festplatte kopieren Reply with quote

Hi,

Habe eine fertig eingerichtete 200GB Platte die ich 1:1 kopieren möchte.
Leider steht mir als "Klonplatte" nur eine 40GB zur Verfügung und meine
bisherigen Versuche mit DriveImage oder PartitionImage sind kläglich
gescheitert.
kann ich mit cp oder tar den kompletten Inhalt der Ur-Platte auf die neu kopieren, ohne das es Probleme mit den Rechten gibt? Kennt noch jemand andere Lösungswege?

/dev/hda1 boot 100MB ext3
/dev/hda2 swap 256MB
/dev/hda3 / Rest reiserfs

Besten Dank schon mal & Gruß
Detlef
Back to top
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Sun Mar 02, 2003 7:53 pm    Post subject: Reply with quote

Wenn der Platz auf der neuen Platte ausreicht, ist es am einfachsten, du erstellst die entsprechenden Partitionen auf der Zielplatte, mountest sie unter /ptemp, kopierst deine Installation mit cp -a /[a-o,q-z]* /ptemp, erstellst auf der Zielpartition dein /proc-Verzeichnis neu und passt ggf. deine grub.conf/lilo.conf und fstab an.

Alex
_________________
http://spitfire.homelinux.net/
http://spitfire.spittix.de/

GNU/LinuX mobile Dokumentation
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Sun Mar 02, 2003 11:34 pm    Post subject: Reply with quote

Hi Alex,
Quote:
kopierst deine Installation mit cp -a /[a-o,q-z]* /ptemp

Muß ich da nicht rekursiv kopieren?
Code:
cp -aR /[a-o,q-z]* /ptemp
Ich frage nur sicherheitshalber noch mal. Leider sind die Man-Pages nicht so meine Stärke.:-(

Danke
Detlef
Back to top
View user's profile Send private message
sieter
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2003
Posts: 111

PostPosted: Sun Mar 02, 2003 11:54 pm    Post subject: Reply with quote

cp -a macht das schon rekursiv...
aber trotzdem, was ist an
# man cp
so schwer?: :wink:

-----------schnipp--------
-a, --archive
Preserve as much as possible of the structure and attributes of
the original files in the copy (but do not preserve directory
structure). Equivalent to -dpR.

--------------schnipp-----
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Mon Mar 03, 2003 7:34 am    Post subject: Reply with quote

Quote:

aber trotzdem, was ist an
# man cp
so schwer?

Ich hätte man cp etwas aufmerksamer lesen sollen...Aber nee, ich habe es nur überflogen und dafür die Beschreibung auf pro-linux gelesen.
Da stand natürlich nix von
Quote:
-a Equivalent to -dpR

Trozdem hab ich meine Probleme mit dem man-Pages. Ich verstehe die Syntax manchmal nicht so ganz. Und spätestens wenn´s ins eingemachte geht (auf das [a-o,q-z]* wäre ich nicht gekommen) ist´s vorbei. Und wenn man es dann vorgemacht bekommt, haut man sich auf die Stirn und sagt: Na logo, da wir alles außer p* kopiert.

Vielleicht kann mir jemand in diesem Zusammenhang gute Lektüre emfehlen.

Danke für die Hilfe
Detlef
Back to top
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Mon Mar 03, 2003 8:18 pm    Post subject: Reply with quote

Die beste Lektuere nuetzt wenig, wenn man sie nur "ueberfliegt". RTFM is manchmal eben doch schon der Weg zum Ziel, vor allem, wenn man Dinge tun moechte, mit denen man sich noch nicht so oft beschaeftigt hat.
Bedenke bitte auch, das in diese OnlineDokumentation sehr viel Arbeit gesteckt wurde, die du vor allem dadurch ehren kannst, das du sie auch nutzt.

Alex
_________________
http://spitfire.homelinux.net/
http://spitfire.spittix.de/

GNU/LinuX mobile Dokumentation
Back to top
View user's profile Send private message
schroedinger
n00b
n00b


Joined: 15 Jan 2003
Posts: 43
Location: Vienna

PostPosted: Tue Mar 04, 2003 8:29 am    Post subject: Reply with quote

Hi
Kennst du den 'dd' Befehl? Starte mit der Gentoo-Livecd.
Deine 3 Partition ist hda3 und nehmen wir an deine 40 GB Platte ist hdb.
Die einfachste Möglichkeit wäre (nur weiss ich nicht ob das auch wirklich funktioniert) 'dd if=/dev/hda of=/dev/hdc bs=1024'.

Die zweite Möglichkeit wäre deine 40 GB zu partitonieren --> hdb1,hdb2,hdb3 und 'dd if=/dev/hda[1-3] of=/dev/hdc[1-3] bs=1024' auszuführen.
_________________
Imagination is more important than knowledge
Back to top
View user's profile Send private message
tux-fan
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 131
Location: Paderborn, Germany

PostPosted: Tue Mar 04, 2003 9:36 am    Post subject: Reply with quote

Mit dem Script aus diesem Topic hat das "klonen", von einer Platte auf eine Andere, bei mir hervorragend funktioniert.
( komplette Installation von meiner alten 16 GB auf neue 40GB Platte)

https://forums.gentoo.org/viewtopic.php?t=28123

Das Script hat Alles, inclusive /dev usw. mit den richtigen Rechten auf die neue Platte kopiert.
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Tue Mar 04, 2003 11:55 pm    Post subject: Reply with quote

Hat nach der Anleitung von ajordan bestens geklappt :-)

Danke Euch allen!
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Fri Jun 27, 2003 9:10 am    Post subject: Reply with quote

so, hab das jetzt gemacht mit cp -a /mnt/gentoo_old/[a-o,q-z]* /mnt/gentoo_new/.

nun sagt er beim booten "modprobe: can't locate module /dev/parpart" und noch ungefäht 50 weitere mit /dev/ttys01 bis /dev/ttys39.
Back to top
View user's profile Send private message
basramm
n00b
n00b


Joined: 24 Nov 2002
Posts: 56
Location: Düsseldorf, Germany

PostPosted: Fri Jun 27, 2003 9:46 am    Post subject: Reply with quote

Versuch doch mal alle Einträge in /dev zu löschen. Du brauchst /dev nur als Mountpoint, DevFS füllt das dann selber mit seinen Einträgen.
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Fri Jun 27, 2003 9:48 am    Post subject: Reply with quote

hmm, hab schon mal rausgefunden, das es am autostart von cupsd liegt. komtm auch auf der alten platte. starte ich cups später von hand ist das problem nicht.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Fri Jun 27, 2003 1:12 pm    Post subject: Reply with quote

Das Thema war erst jetzt ein paar Postings weiter schonmal dran.

https://forums.gentoo.org/viewtopic.php?t=63366

Im unteren Teil hab ich dazu meinen Kommentar abgegeben, der Dir dabei weiterhelfen sollte.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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