Direkt zum Hauptbereich

Backup NICHT mit dd

Aus irgendeinem #$@%&!-Grund geht partimage auf meinem eeepc nicht, meldet jeweils beim *Erstellen* des Images: "image Lesefehler Bitmap block 0".

Hab allerdings diesen Beitrag gefunden:
dd usually the *ABSOLUTELY WRONG* tool to use for pushing around file
systems, since you have to issue the "count" command to cut off the dd
at the end of the partition absolutely correctly or you will leave off
the last few bits of your partition and filesystem, or start copying the
*next* partition and filesystem. It also guarantees you a dd image
exactly the size of the partition on disk instead of the size of the
file system, which may be *vastly* smaller and thus much easier to save
and faster to write.

http://forum.soft32.com/linux2/Resize-Partition-dd-ftopict45930.html

Wie dem auch sei, man kann ja immer noch mit dd images erstellen,(hoffe ich).
Hier ne Anleitung:
http://www.debianhelp.co.uk/ddcommand.htm

full hard disk copy

dd if=/dev/hdx of=/dev/hdy
dd if=/dev/hdx of=/path/to/image
dd if=/dev/hdx | gzip > /path/to/image.gz

Hdx could be hda, hdb etc. In the second example gzip is used to compress the image if it is really just a backup.

Restore Backup of hard disk copy

dd if=/path/to/image of=/dev/hdx

gzip -dc /path/to/image.gz | dd of=/dev/hdx

MBR backup

In order to backup only the first few bytes containing the MBR and the partition table you can use dd as well.

dd if=/dev/hdx of=/path/to/image count=1 bs=512

MBR restore

dd if=/path/to/image of=/dev/hdx

Add "count=1 bs=446" to exclude the partition table from being written to disk. You can manually restore the table.

Kommentare

Beliebte Posts aus diesem Blog

Sterbezahlen Deutschland - Was läuft schief, bei CORRECTIV? (Samuel Eckert)

Samuel Eckert manipuliert wissend Statistiken um Aufmerksamkeit zu erzeugen, und niemand interessiert's.   https://youtu.be/rJzeZ-TRMRI Mein Kommentar zu dem Video: Hmm, ein paar Fragen:  Auf S.4 des Slides/ Minute 6 des Videos sieht man Ende 2020 einen deutlichen Anstieg der Sterberate auf 25tsd gegenüber durchschnittlich 18tsd /KW, das sind 30% mehr Tote. Aber gegen Ende des Videos behauptest Du, in keiner Altersgruppe gäbe in diesem Jahr eine Zunahme der Sterberate, woher kommt dann die Zunahme. Ist unsere Bevölkerung plötzlich um 30% gewachsen? Haben wir innerhalb weniger Wochen 30% mehr Alte?  Für Sterbefälle liegen alle Daten bis 2020 vor, aber für die Bevölkerungszahlen liegen bei den von dir genannten Quellen (Statistisches Bundesamt) für 2020 noch keine Zahlen vor. Wo kommen also Deine Zahlen auf Slide 6 / Minute 10 her, hast Du Dir die ausgedacht? Da du behauptest, die deutliche Steigerung bei den Toten kommt durch das Bevölkerungswachstum, ist es komisch, dass ...

migrating from kmail to thunderbird

While I gave up local mails and subordinated entirely to google meanwhile, my partner still wants to be independant and prefers local mails. Since KMail seemst to be wrecked, I have to migrate her mails to the old mbox format of thunderbird. This one-command-recipe worked for me. I replaced Archive/ by e.g. .kde/share/apps/kmail/mail/inbox and sarchive by sMBOXinbox . To import  MBOXinbox they simply have to be copied to   ~/.thunderbird/.....default/Mail/Local\ Folders . Converting Maildir to mbox via mutt Ran into an issue today where I needed to convert a Maildir containing over 50k messages to mbox format and couldn’t really find any good tools. So I found  this blog post  about using mutt to do it. Unfortunately, it converted one Maildir to another. =( One crucial piece is missing, so here is the one-liner in all its glory: $ mutt -f Archive/ -e 'set mbox_type=mbox; set confirmcreate=no; \ set delete=no; push "T.* ;sarchive "' The above convert...

Durch die letzte Generation erhöht sich die durchschnittlich jährliche Stauzeit deutlich weniger als von 40h auf 40,06h

  Bis zum 20. Februar 2022 registrierte die Berliner Polizei 44 Blockaden , bei denen 180 Menschen vorläufig festgenommen wurden. https://de.m.wikipedia.org/wiki/Letzte_Generation#:~:text=Bis%20zum%2020.%20Februar%202022,180%20Menschen%20vorl%C3%A4ufig%20festgenommen%20wurden. Laut diesen taz Bericht zu den extremsten Demos war der letzte Aktivist nach drei Stunden beseitigt https://taz.de/Letzte-Generation-in-Berlin/!5927344/ Verkehrs-Durchfloss Ernst Reuter Platz laut https://www.berlin.de/sen/uvk/mobilitaet-und-verkehr/verkehrsmanagement/verkehrserhebungen/#strassenverkehrszaehlung Verkehr auf den Zufahrtsstraßen in Tausend pro 24h beide Richtungen 43,4+24,1+13,5+42,7+29 =151,7 k/24h  (dadurch jedes Auto doppelt gezählt, kompensiert höheres Aufkommen morgens) in 3h: 151,7k/24h * 3h = 151,7k *3/24 = 19'000 3h warten: 57'000h  Das ist sehr grob überschätzt: diese 19000 Autos kommen ja nur peu a peu dazu und stehen nicht alle komplette 3h, außerdem weichen viele Autos aus...