Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
probleme mit dd
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
$yntaxmonster
n00b
n00b


Joined: 25 Nov 2004
Posts: 11

PostPosted: Thu Dec 22, 2005 3:21 pm    Post subject: probleme mit dd Reply with quote

Also ich hab da so ein merkwürdiges Problem:

Ich hab mir eine neue harddisk gekauft (SATA2) und möchte nun meine akutelle root-partition auf die neue harddisk imagen:

mit dd:

Code:
dd if=/dev/sda6 of=/dev/sdc6 bs=1024 count=6846828


tja das scheint zu funktionieren, aber ich kann die partition nicht mounten:

Code:
mount -t reiserfs /dev/sdc6 /mnt/gentoo2
mount: Operation not supported


führ ich nun:
Code:
reiserfsck /dev/sdc6

aus gibt es sehr viele fehler und ich werde aufgefordert --rebuild-tree auszuführen. nach der ausführung mit --rebuild-tree kann ich das laufwerk mounten, aber dann kann ich das laufwerk nicht chroot (en) weil dann bekomm ich folgende fehlermeldung:

Code:
chroot /mnt/gentoo2/ /bin/bash
chroot: cannot run command '/bin/bash': Exec format error


ich hab keinen plan was das problem ist.
bin dankbar für jede hilfe
Back to top
View user's profile Send private message
Coogee
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 184
Location: E.U.

PostPosted: Thu Dec 22, 2005 11:30 pm    Post subject: Reply with quote

Wieso mit dd? Nur um beim Kopieren ein bißchen Zeit zu sparen?
Für dd müssen beide Festplatten identisch sein (Zylinder, Sektoren...) und außerdem genau gleich partitioniert sein.

Ein simples "cp -a ..." oder "rsync -a ..." ist 1000x sicherer und funktioniert (habe ich selbst schon -zigmal durchgeführt).
fdisk -> mkreiserfs -> mount -> cp -a oder rsync -a -> fertig.

Zu diesem Thema gibt's übrigens schon sehr viele Beiträge.
Back to top
View user's profile Send private message
76062563
l33t
l33t


Joined: 16 Aug 2004
Posts: 637
Location: 127.0.0.1

PostPosted: Fri Dec 23, 2005 10:49 am    Post subject: Reply with quote

Coogee wrote:
... Für dd müssen beide Festplatten identisch sein (Zylinder, Sektoren...) und außerdem genau gleich partitioniert sein...

Das stimmt nicht... Ich hab mit dd schon die verschiedensten Festplatten in der Gegend rumkopiert.
Ich gebe dir allerdings recht, dass cp und rsyn deutlich elegantere Methoden sind.
@ $yntaxmonster gibt es einen Grund warum du bs und count mit angibst? Wenn du die Platte 1:1 spiegeln willst reicht ein dd if=/dev/sda6 of=/dev/sdc6
_________________
gentoo - compile your own world
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