WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Linux, UNIX, Open Source

Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 11.05.2001, 20:22   #1
harakiri
Veteran
 
Registriert seit: 19.04.2000
Beiträge: 444


harakiri eine Nachricht über ICQ schicken
Frage partition image mit dd (disc duplicate)?

hallo,

ich möchte mir mit linux ein image meiner win-partition (c:, fat32) machen. dafür will ich den befehl dd verwenden. da dieser befehl IMHO gleich große quell- wie zielpartitionen benötigt muss ich wohl zunächst eine zweite partition gleicher größe erstellen. soweit - sogut.
nun hänge ich aber ein bissi

(i) mit welchem linux-tool formatiere ich die "backup-partition" dann und in welchem file-system? ich möchte nämlich diese partition dann unter windows _nicht_ sehen
(ii) wie lautet der richtige dd befehl um dann die partition zu sichern und
(iii) muss ich vor jedem zurückspielen die wiederherzustellende partition (also c: ) formatieren oder werden bei dd ohnehin die alten daten überschrieben?

bin mir dessen bewusst, dass es einen haufen (kostenpflichtiger) win/dos-programme dafür gibt, aber nachdem ich linux schon installiert habe...

thx & lg

hara kiri
harakiri ist offline   Mit Zitat antworten
Alt 11.05.2001, 21:24   #2
Don Manuel
Inventar
 
Benutzerbild von Don Manuel
 
Registriert seit: 08.02.2001
Beiträge: 9.977


Standard

Im letzten LINUX-Intern wurde auch ein Weg beschrieben:
http://www.pcpraxis-networld.de/cont...linuxint&idx=9
Don Manuel ist offline   Mit Zitat antworten
Alt 11.05.2001, 23:41   #3
harakiri
Veteran
 
Registriert seit: 19.04.2000
Beiträge: 444


harakiri eine Nachricht über ICQ schicken
Standard

hmm...schaut ganz interessant aus...ist aber nicht ganz das was ich suche...trotzdem danke

wie schon vorher beschrieben - es geht mir eigentlich nur um das format der "hidden partition" und mit welchen fdisk-linux-äquivalent ich das machen kann sowie um den korrekten dd befehl. der müsste etwa so lauten:

dd if=dev/hda1 of=dev/hdb1 bs=512 count=0

oder eben so ähnlich...

harakiri ist offline   Mit Zitat antworten
Alt 11.05.2001, 23:51   #4
Don Manuel
Inventar
 
Benutzerbild von Don Manuel
 
Registriert seit: 08.02.2001
Beiträge: 9.977


Standard

Hab ich aus der Hilfe von QNX gschwind rauskopiert, hope it helps!

dd

Convert a file while copying it (UNIX)

Syntax:


dd [if=input_file] [of=output_file] [options]


Options:

if=input_file
Read from input_file instead of the standard input.
of=output_file
Write to output_file instead of the standard output. Unless conv=notrunc
is given, truncate the file to the size specified by seek= (0 bytes if
seek= isn't given).
ibs=bytes
Read bytes bytes at a time.
obs=bytes
Write bytes bytes at a time.
bs=bytes
Read and write bytes bytes at a time. Override ibs and obs.
cbs=bytes
Convert bytes bytes at a time.
skip=blocks
Skip blocks ibs-sized blocks at start of input.
seek=blocks
Skip blocks obs-sized blocks at start of output.
count=blocks
Copy only blocks ibs-sized input blocks.
conv=conversion[,conversion...]
Convert the file as specified by the conversion arguments. Conversions
are:
ascii
Convert EBCDIC to ASCII.
ebcdic
Convert ASCII to EBCDIC.
ibm
Convert ASCII to alternate EBCDIC.
block
Pad newline-terminated records to size of cbs, replacing newline with
trailing spaces.
unblock
Replace trailing spaces in cbs-sized block with newline.
lcase
Change uppercase characters to lowercase.
ucase
Change lowercase characters to uppercase.
swab
Swap every pair of input bytes. Unlike the UNIX dd, this works when an
odd number of bytes are read. If the input file contains an odd number
of bytes, the last byte is simply copied (since there's nothing to swap
it with).
noerror
Continue after read errors.
notrunc
Don't truncate the output file.
sync
Pad every input block to size of ibs with trailing NULs.

------------------------------------------------------------------------

All numbers can be followed by a multiplier:

b Blocks (*512).
k Kbytes (*1024).
w Words (*2).
xm Multiply by m.

------------------------------------------------------------------------


Description:

This manual page documents the GNU version of dd. The dd utility copies
a file (from the standard input to the standard output, by default) with
a user-selectable blocksize, while optionally performing conversions on
it. It's meant for writing raw data directly to devices such as tape and
disk or writing over the network, with control over blocking factors and
character set translations.
This command may be used for copying partial files. The block size, skip
count, and number of blocks to copy can be specified. Where sizes are
expected, they are in bytes. However, the letters w, b, or k may be
appended to the number to indicate words (2 bytes), blocks (512 bytes),
or K (1024 bytes), respectively. When dd is finished, it reports the
number of full and partial blocks read and written.

Examples:

Copy file file1 to file2, converting all text to lowercase letters:

dd if=file1 of=file2 conv=lcase


Exit status:

>0 An error occurred.
0 The copy/translate operation was successful.


Author:

GNU

See also:
Don Manuel ist offline   Mit Zitat antworten
Alt 12.05.2001, 00:05   #5
harakiri
Veteran
 
Registriert seit: 19.04.2000
Beiträge: 444


harakiri eine Nachricht über ICQ schicken
Standard

ja danke, zumindest der dd befehl sollte mich nicht mehr vor unlösbare rätsel stellen...

nachdem ich das ganze eh erst in ein paar tagen angehen werde wart ich noch etwas ob nicht die prozedur vielleicht doch noch jemanden bekannt ist...sonst werd ich halt noch ein komplettes backup brennen und dann einfach ausprobieren

wobei es nicht sooo schwer ist und ich das verfahren schon mal wo laufen gesehen hab, nur dass ich mich eben nicht mehr genau erinnern kann

ausserdem finde ich das auch ziemlich praktisch für pc`s von tanten, neffen und sonstigen installations- und dateilöschwütigen bekannten (sämtliche namen sind frei erfunden; etwaige ähnlichkeiten zu lebenden personen sind rein zufällig ). alle notewendigen tool sind auf einer linux-bootdisk enthalten und dadurch dass die "backup-partition" nicht von windows erkannt wird ist diese auch ziemlich geschützt...da reduziert sich der jährliche (oder auch öfters autretende) frühjahrs-neuinstallations-putz auf 15min...
harakiri ist offline   Mit Zitat antworten
Alt 12.05.2001, 00:14   #6
Don Manuel
Inventar
 
Benutzerbild von Don Manuel
 
Registriert seit: 08.02.2001
Beiträge: 9.977


Standard

Daß man mit der TweakUI für ONU's Laufwerke (=Partitionen) verstecken kann, weißt aber schon, oder?
Don Manuel ist offline   Mit Zitat antworten
Alt 12.05.2001, 02:08   #7
harakiri
Veteran
 
Registriert seit: 19.04.2000
Beiträge: 444


harakiri eine Nachricht über ICQ schicken
Frage

nein, wusste ich nicht

aber wird dadurch - im gegensatz zu der linux-lösung - nicht die laufwerksreihenfolge durcheinander gebracht?
wenn ich z.b. auf einem system mit nur einer partition c: und einem cd-rom dann als d: eine c/2 partition habe (um eben auf d: ein image von c: speicher zu können) und dort dann mit tweakui "ausblende" - ist dann das cd-rom weiterhin d: oder wird es auf e: verdrängt?
harakiri ist offline   Mit Zitat antworten
Alt 12.05.2001, 17:23   #8
Don Manuel
Inventar
 
Benutzerbild von Don Manuel
 
Registriert seit: 08.02.2001
Beiträge: 9.977


Standard

Nixda wirda umtauft! Nein, die Laufwerke werden einfach ausgeblendet.
http://download.cnet.com/downloads/1...I&cn=&ca=10001
Don Manuel ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:05 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag