Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux komplett von einer platte auf die andere kopieren+boot
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
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 530

PostPosted: Thu Feb 06, 2003 7:26 pm    Post subject: linux komplett von einer platte auf die andere kopieren+boot Reply with quote

jo, also was muß beachtet werden
warum kopiert cp keine hidden files?
mache ich cp -R /.* /mnt/hdb/ rattert er ewig rum und bleibt bei proc irgendwas flush stehn

ok nehmen wir einmal an, ich hätte es tatsächlich geschafft alle dateien inklusive verstecken dateien rüberzukopieren, was dann? ich hab /etc/fstab schon geändert, aber trotzdem werden die alten partitionen gebootet (von hdc) . beim booten der neuen partition meit er /mnt/.initrc existiert nicht beim mounten oder laden von devfs. es ist aber da!
muß ich noch mtab ändern oder WAS soll ich noch tun. echt keine lust nochmal 11 stunden für eine frische stage1 compilierung zu verschwenden, geschweige denn die ganzen sachen die ich jetzt schon dazucompiliert hab.
Back to top
View user's profile Send private message
ajordan
Guru
Guru


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

PostPosted: Thu Feb 06, 2003 11:10 pm    Post subject: Reply with quote

du must deinem bootloader schon sagen, das er jetzt von einer anderen Partition booten soll und ggf. auch den Bootloader auf der neuen Partition installieren.

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

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


Joined: 21 Jan 2003
Posts: 36
Location: Vienna

PostPosted: Thu Feb 06, 2003 11:43 pm    Post subject: Reply with quote

Also ich hab das erst diese Woche mit einem Redhat System bei einem Freund von mir gemacht:

1. mkdir /ziel
2. mkdir /quelle

3. mount /dev/hdXy /ziel
4. mount -o bind / /quelle

5. cd /quelle

6. find -mount -print | cpio -pdm /ziel <- Kopiert alles inklusive Berechtigungen, die du bei deinem cp vergessen hast (cp -Rp)

Für jede gemounte Partition ist Schritt 1-6 zu machen (z.b. wenn /home auf einer anderen Part. liegt).

Danach natürlich /etc/fstab anpassen, grub Konfiguration (/boot/grub/grub.conf) anpassen damit er auch dann von der neuen Platte hochfährt, oder wenn die /boot Partition auf der neuen Platte liegt, auch dort grub installieren:

# grub
grub> root (hd0,0) <- natürlich anpassen
grub> setup (hd0)
grub> quit

-> Hat jedenfalls wunderbar funktioniert.
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: Fri Feb 07, 2003 8:21 am    Post subject: Reply with quote

versuch mal das Script aus diesem Thread ; zumindest bei mir hat's funktioniert. :)
https://forums.gentoo.org/viewtopic.php?t=28123
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 530

PostPosted: Fri Feb 07, 2003 4:19 pm    Post subject: Reply with quote

hehe hab ich alles gemacht
wisst ihr wie einfach es war?

cp /dev/hdc3 /dev/hdb3
cp /dev/hdc1 /dev/hdb1
lilo.conf editieren
lilo
fstab editieren
reboot

das bringt mich auf die idee, eigentlich kann man ja somit auch iso images mounten bzw an einen cdbrenner schicken oder an eine 1gig platte.
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 530

PostPosted: Sun Feb 09, 2003 9:05 am    Post subject: Reply with quote

also irgendwas stimmt hier nicht
meine 20 gig platte (hdb) scheint sich in eine 4 gig platte verwandelt zu haben nachdem ich die 4gig platte (hdc) da draufkopiert habe
Code:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb3              3794936   2914880    687276  81% /
tmpfs                     2048       164      1884   9% /mnt/.init.d
/dev/hda1             10241404   8790304   1451100  86% /mnt/drivec
/dev/hda5             20482840  20195112    287728  99% /mnt/drived
/dev/hda6             29318592  24892460   4426132  85% /mnt/drivee
tmpfs                   127760         0    127760   0% /dev/shm
/dev/hdc               4136348     32828   3893400   1% /download
Back to top
View user's profile Send private message
ajordan
Guru
Guru


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

PostPosted: Sun Feb 09, 2003 3:57 pm    Post subject: Reply with quote

ja ist auch klar, wenn du direkt von den devices kopierst. Wenn du nur kopieren willst, passe /etc/fstab und /etc/lilo.conf an, installiere lilo neu, mounte Source und Zieldevice und kopiere dann etwa so:
Code:
mount /dev/src /mnt/src
mount /dev/dest /ziel
cd /mnt/src/
cp -a ./[a-y]* /ziel


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

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


Joined: 20 Jan 2003
Posts: 530

PostPosted: Sun Feb 09, 2003 5:10 pm    Post subject: Reply with quote

gibts keine möglichkeit das zu fixen? ohne die ganzen daten wieder rüber auf aud hdc zu bringen neu zu formatieren und die einzelnen bäume wieder rüberzuschieben? mit anderen worten, wie heist der chkdsk befehl für linux
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